Skip to content
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

Merged
merged 1 commit into from
Sep 1, 2015

Conversation

rullzer
Copy link
Contributor

@rullzer rullzer commented Aug 28, 2015

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?

@PVince81
Copy link
Contributor

👍 looks good

@PVince81
Copy link
Contributor

@schiesbn can you review this too ?

@PVince81
Copy link
Contributor

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.

@ghost
Copy link

ghost commented Aug 29, 2015

🚀 Test PASSed.🚀
chuck

@SergioBertolinSG
Copy link
Contributor

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.

@PVince81
Copy link
Contributor

@SergioBertolinSG have a look at #18651 to be able to set the date

@PVince81
Copy link
Contributor

The other PR was merged.

@rullzer can you rebase so we get the change here too so @SergioBertolinSG can retest ?

@rullzer rullzer force-pushed the more_ocs_share_data branch from 300f802 to d54b497 Compare August 30, 2015 13:42
@scrutinizer-notifier
Copy link

A new inspection was created.

@rullzer
Copy link
Contributor Author

rullzer commented Aug 30, 2015

Rebased.
@PVince81 and @SergioBertolinSG please check

@ghost
Copy link

ghost commented Aug 30, 2015

🚀 Test PASSed.🚀
chuck

@PVince81
Copy link
Contributor

The expiration date appears with extra "00:00:00" in the XML response.
Can you hack the response it to strip these away ?
The goal is to make it match the format of the input.

We can do the clean solution for this later as part of your other ticket.

@PVince81
Copy link
Contributor

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.

@PVince81
Copy link
Contributor

PVince81 commented Sep 1, 2015

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.

👍

@PVince81
Copy link
Contributor

PVince81 commented Sep 1, 2015

@SergioBertolinSG can you test this ?

@SergioBertolinSG
Copy link
Contributor

👍 it works, but I've seen another problem with public shares #18731

PVince81 pushed a commit that referenced this pull request Sep 1, 2015
Return permissions and expiration on create share responses
@PVince81 PVince81 merged commit 0d4562c into master Sep 1, 2015
@PVince81 PVince81 deleted the more_ocs_share_data branch September 1, 2015 10:29
@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants