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
If you set the link_defaultExpDays / internal_defaultExpDays to a value (lets say 7) and set the shareapi_expire_after_n_days to 30,
the Front-End sets the day in 30 days as the default-value of the Datepicker while creating a new Share-Link.
I don't know how to pass the configured values to the Front-End, else I would've tried that.
Steps to reproduce
Set the default Sharing-Link-Expiration-Value to 30
Set link_defaultExpDays and internal_defaultExpDays to 7 as described in the wiki
Try to create a new Share-Link in the Web-UI on a File or Directory.
See which Date is set as default in the Datepicker of the Expiration.
It's set in 30 days, not in 7.
Expected behavior
As decribed in the wiki this should enable a default and max situation.
If internal_defaultExpDays and link_defaultExpDays where set to 7 and the shareapi_expire_after_n_days is still 30, the default value should be 7 days and the Share should be configured with a max Expiration-Date in 30 days in the Datepicker.
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
I think the link_defaultExpDays / internal_defaultExpDays value need to be passed to the Frontend if they are set.
And the Datepicker should display a value calculated by this Config-Values.
The text was updated successfully, but these errors were encountered:
I can confirm this problem, I can't create a share with an expiration date... always 1900 is set. In NC 27.1.6 and 28.0.1 tested. It is not possible to create a share.
I try to set the value to "01.02.2024" but its not working with the keyboard
Bug description
If you set the link_defaultExpDays / internal_defaultExpDays to a value (lets say 7) and set the shareapi_expire_after_n_days to 30,
the Front-End sets the day in 30 days as the default-value of the Datepicker while creating a new Share-Link.
Maybe an issue with the default-value of the Picker?
https://github.com/nextcloud/server/blob/2e10c9431068c43432a496d607667b0595c6cdae/apps/files_sharing/src/components/SharingEntryLink.vue#L495C90-L495C90
I don't know how to pass the configured values to the Front-End, else I would've tried that.
Steps to reproduce
It's set in 30 days, not in 7.
Expected behavior
As decribed in the wiki this should enable a default and max situation.
If internal_defaultExpDays and link_defaultExpDays where set to 7 and the shareapi_expire_after_n_days is still 30, the default value should be 7 days and the Share should be configured with a max Expiration-Date in 30 days in the Datepicker.
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
I think the link_defaultExpDays / internal_defaultExpDays value need to be passed to the Frontend if they are set.
And the Datepicker should display a value calculated by this Config-Values.
The text was updated successfully, but these errors were encountered: