Do Shared-Links "expire", even without a specific Date set?

I have a request from a User who has created and send a Link over a Year ago, claiming the Link was now invalid even though she changed or deleted nothing.

I did update NC in the meantime with two major Versions, so my qquestions are:

  1. Do shared Links stay the same or can they change due to NC-Upgrades, f.e. from NC v18 to 20?
  2. Is there a general expiry-date for Links, f.e. after 12 Months?

TIA

I have experienced that same issue.

After a few months - most likely after an upgrade - people canā€™t access old shared links anymore even though they are still around.

Once I have visted that link, they can access it again.

I donā€™t know yet if it happens after point upgrades or proper version upgrades. But if anybody knows more about this, and how to keep links active that would be great.
The files/folders still are shared by that link. Still are in the ā€œsharedā€ overview as well.

(This instance is set to automatically have links expire after 14 days. So users have to actively uncheck that. They then think that the link should be there in perpetuity or until they delete the share.)

This behavior sounds a bit like whatā€™s described in the blue box here under Enforce expiration date:

https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/file_sharing_configuration.htm

Particularly the last sentence.

Thereā€™s a default but then there is an optional enforcement policy. Is it that by chance?

Correct link: File Sharing ā€” Nextcloud latest Administration Manual latest documentation

Yes that may be the fact.

Box ā€œNoteā€ in the link above

Users will not be able to set the expiration date further in the future than the enforced expiration date, although they will be able to set a more recent date. Also note that users will be able to update the expiration date again at a later point. The expiration date is based on the current date and not on the share creation date. The user will be able to extend the expiration date again whenever a previous expiration date is close to be reached.

@RuudschMaHinda
Also you can search ā€œEnforce expiration dateā€ at GitHub - nextcloud/server: ā˜ļø Nextcloud server, a safe home for all your data and then change to ā€œissuesā€ and sort ā€œnewestā€. There was e.g. a bug in older Nextcloud versions read here.

1 Like

In that case I misunderstood those settings.

I assumed all new shares expire after 14 days unless the user sets a different date. Even if they take away the checkmark for a permanent share link.

I put that in so that if they donā€™t care to check (which happened way too often), shared links expire after 14 days unless explicitly stated not to. I did not check ā€œEnforce expiration dateā€ - since I assumed thatā€™s the one that makes it impossible to share a link for longer than 14 days.

So, the way I am reading the docs here is:
I can not set a standard expiration date of 14 days, but still allow my users to do longer lasting public link shares?
If so, that kinda sucks. I really want links to expire after 14 days unless specifically stated not to by the user.

Hmmā€¦ :confused:

1 Like

That wouldnā€™t make any sense on its own. That would only make sense if you could enforce additional rules like minimum and maximum share periods. Otherwise the users would just set it to 31.12.2099, which would technically be the same as removing the checkmark.

This is exactly how it works when you donā€™t enforce the expiration date. On a new share the predefined expiration date is set by default, however, the user can change it at any time or uncheck the box, which means. ā€œNo expiration dateā€.

And yes, technically you are right. Users donā€™t have to explicitly confirm that they donā€™t want an expiration date, they have to un-check a box instead, so what weā€™re essentially talking about here, is just a formality.

In that case, this is not working, and as described in the very first post - links that have actively been unchecked (to technically last forever) still seem to stop working after something happening, or a certain amount of time.
Because I do not enforce the 14 days, since some use case scenarios need longer lasting shares.

I presume, as does the original poster, that after an update, or a whole version upgrade links stop working for some reason - even if they have no expiration date set.

In that case, I would say this is clearly a bug, and should be reported on GitHub.

Btw. Iā€™m not sure what the following note, which @devnull quoted from the admin manual, is supposed to tell usā€¦

Maybe itā€™s just me, but that doesnā€™t make any sense to me at all. When the expiration date is enforced in the admin settings, the field for the expiration date and the corresponding check mark are ā€œgreyed outā€. So what exactly does this note mean? Does it mean it will not be ā€œgreyed outā€ anymore, once the expiration date is close to be reached. How close to the expiration date will this happen? a day? a few hours? Only if there is a full moonā€¦? :wink:

Going by the docs the comment is right after they explain the ā€œenforce expiry dateā€ checkmark. Which is why I got confused as well.

Will be busy soon for the rest of today and all of tomorrow, but will open a bug report on github then. Makes sense. Once done, Iā€™ll link it here, so people can follow it in the future.

1 Like

Good day!
You can ask for a link to the article of this problem on github, I encountered the same problem after moving from OpenLDAP to AD authorization.