Expiration Date While Sharing

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 28.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
PHP version (eg, 7.4): 8.1

The issue you are facing:
When sharing and trying to set a expiration date, it reverts to the current date and shows an error that it couldnt set it because the date is in the past

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Share File
  2. Set Expiration Date
  3. Confirm

I also see this in the console:
Uncaught TypeError: Cannot read properties of undefined (reading ‘share’)
at o. (SharesMixin.js:225:9)
at l (index.js:27:23)
ShareRequests.js:58

   POST https://next.cloud/ocs/v2.php/apps/files_sharing/api/v1/shares 404 (Not Found)

(anonymous) @ xhr.js:258
xhr @ xhr.js:49
p @ dispatchRequest.js:51
request @ Axios.js:146
(anonymous) @ Axios.js:185
(anonymous) @ bind.js:5
createShare @ ShareRequests.js:58
addShare @ SharingDetailsTab.vue:846
saveShare @ SharingDetailsTab.vue:826
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
En @ vue.runtime.esm.js:3033
e.$emit @ vue.runtime.esm.js:3732
click @ NcButton.mjs:185
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
i._wrapper @ vue.runtime.esm.js:7500
Show 14 more frames
Show less
ShareRequests.js:66 Error while creating share a {message: ‘Request failed with status code 404’, name: ‘AxiosError’, code: ‘ERR_BAD_REQUEST’, config: {…}, request: XMLHttpRequest, …}
createShare @ ShareRequests.js:66
await in createShare (async)
addShare @ SharingDetailsTab.vue:846
saveShare @ SharingDetailsTab.vue:826
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
En @ vue.runtime.esm.js:3033
e.$emit @ vue.runtime.esm.js:3732
click @ NcButton.mjs:185
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
i._wrapper @ vue.runtime.esm.js:7500
Show 8 more frames
Show less
SharingDetailsTab.vue:858 Error while adding new share a {message: ‘Request failed with status code 404’, name: ‘AxiosError’, code: ‘ERR_BAD_REQUEST’, config: {…}, request: XMLHttpRequest, …}
addShare @ SharingDetailsTab.vue:858
await in addShare (async)
saveShare @ SharingDetailsTab.vue:826
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
En @ vue.runtime.esm.js:3033
e.$emit @ vue.runtime.esm.js:3732
click @ NcButton.mjs:185
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
i._wrapper @ vue.runtime.esm.js:7500
Show 8 more frames
Show less
SharingDetailsTab.vue:829 TypeError: Cannot read properties of undefined (reading ‘type’)
at o.addShare (SharingTab.vue:346:1)
at En (vue.runtime.esm.js:3033:30)
at o.n (vue.runtime.esm.js:1832:20)
at En (vue.runtime.esm.js:3033:30)
at e.$emit (vue.runtime.esm.js:3732:17)
at o.saveShare (SharingDetailsTab.vue:829:1)
kn @ vue.runtime.esm.js:3065
wn @ vue.runtime.esm.js:3057
Tn @ vue.runtime.esm.js:3024
En @ vue.runtime.esm.js:3040
n @ vue.runtime.esm.js:1832
En @ vue.runtime.esm.js:3033
e.$emit @ vue.runtime.esm.js:3732
saveShare @ SharingDetailsTab.vue:829
await in saveShare (async)
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
En @ vue.runtime.esm.js:3033
e.$emit @ vue.runtime.esm.js:3732
click @ NcButton.mjs:185
En @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
i._wrapper @ vue.runtime.esm.js:7500
Show 15 more frames
Show less
SharingInput.vue:316 recommendations [{…}, ob: e]

That is a bug in Nextcloud 28.0.2 read e.g. here. A temp solution is to set globally the default exiration time. Hopefully it is solved tomorrow with Nextcloud 28.0.3.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.