You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A file/folder can be shared with other groups, users and via link (using a random token). In the oc_share table, the expiration date is per row (i.e. share / type), but the UI only allows to specify a single expiration date.
Especially the following does not work as expected:
"Share with link" and "Set expiration date"
"Share with group"
Actual behaviour:
The link share has an expiration date, the group share does not.
Solution a) (most flexible)
Allow setting expiration date for each share type.
Solution b)
Make sure that the single expiration date is used for all share types.
Okay, after some investigation. When the share item is created for the first time, the expiration date does not exist (and is alos hidden). Now when it is already available, we should also add it to the ajax call and put it into the database.
Yeah, adding individual expiration dates would make the interface very complex and it would become difficult to comprehend. For now, there should only be the single date.
Activity
karlitschek commentedon Oct 18, 2013
@schiesbn
nickvergessen commentedon Feb 19, 2014
This is even more strange:
So atm I would set the expiration date for both in first place and leave "adding a unique expiration date for each option" for later.
nickvergessen commentedon Feb 19, 2014
Okay, after some investigation. When the share item is created for the first time, the expiration date does not exist (and is alos hidden). Now when it is already available, we should also add it to the ajax call and put it into the database.
Set expiration date by default when creating a share
Set expiration date by default when creating a share
Only set expiration date when the checkbox is selected
jancborchardt commentedon Mar 12, 2014
Yeah, adding individual expiration dates would make the interface very complex and it would become difficult to comprehend. For now, there should only be the single date.
Add a fallback for old share() calls without expirationDate.
Set expiration date by default when creating a share
Only set expiration date when the checkbox is selected
Add a fallback for old share() calls without expirationDate.
Fix line length and string concatenation for scrutinizer
Automatically copy the share expiration date when new shares are created
Automatically copy the share expiration date when new shares are created
Automatically copy the share expiration date when new shares are created