-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty Expiration date results in "invalid date" entry #32056
Comments
hmmm ... just found out that sharing accepts |
Next fun(k)y thing. It still saves even tho validation returns an error 🤔 |
As the The greater problem is, that the real state of the share is not being shown. Only until a hard reload that is. |
@PVince81 I guess we would have to re-fetch the model from the backend upon opening the modal? |
Or a rewrite in vue.js? 🤔 |
hmm, does it mean we don't update the model upon closing the dialog ? or is the unsaved model kept somehow and reused upon reopening the dialog, in which case we need to reset it back to its original values ? |
The model is updated on save which is to be expected. But I there an easy way to re-fetch? Couldn't find any XHR going back and forth. |
I was thinking somewhere along the line of https://gist.github.com/jstnjns/3956504 |
might be simpler to just store the old values from |
I am going to address this as well. |
See this PR. #32540 Too much? |
Steps to reproduce
Expected behaviour
the UI should tell you that the expiration date is required and let you enter a correct date
Actual behaviour
after point 3 its not possible to enter a new date

after point 6 "Invalid date" is shown

problem happens only on master branch, cannot reproduce on stable10
Server configuration
Operating system:
Ubuntu 17.10
Web server:
Apache
Database:
MySQL
PHP version:
7.1
ownCloud version: (see ownCloud admin page)
10.1 (master branch)
Updated from an older ownCloud or fresh install:
fresh
Where did you install ownCloud from:
git
The content of config/config.php:
List of activated apps:
Are you using external storage, if yes which one: local/smb/sftp/...
local
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser:
FF 61
Operating system:
Ununtu 17.10
Logs
Browser log
after point 3 POST Request:
Response:
after point 4 PUT request:
response:
The text was updated successfully, but these errors were encountered: