-
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
Return permissions and expiration on create share responses #18631
Conversation
👍 looks good |
@schiesbn can you review this too ? |
Looks like the API doesn't support passing expireDate on create, but only on update. @rullzer can you add it too ? You might be able to reuse code from the update code. |
I've actually tried to put an expiration date and it is not included. It is not just a documentation problem, it is really missing. |
@SergioBertolinSG have a look at #18651 to be able to set the date |
The other PR was merged. @rullzer can you rebase so we get the change here too so @SergioBertolinSG can retest ? |
Updated and added unit tests
300f802
to
d54b497
Compare
A new inspection was created. |
Rebased. |
The expiration date appears with extra "00:00:00" in the XML response. We can do the clean solution for this later as part of your other ticket. |
This is mostly because people might start using the response and put some workarounds in the API consumers, and then if we change it later they'd have to change again (API breakage) which we don't want. |
Talked with @rullzer and it seems that the get shares call already returns the date in this format. So for consistency we'll keep it that way for now for the new responses. In the future we can change the format of the response by adding a new response attribute. 👍 |
@SergioBertolinSG can you test this ? |
👍 it works, but I've seen another problem with public shares #18731 |
Return permissions and expiration on create share responses
On creation of a share return the set of permissions and the expiration date.
As requested in #18476.
Now if an expiration date is enforced the client directly gets the right date etc.
@SergioBertolinSG @PVince81 this was what you wanted right?