Repository navigation
[Share 2.0] Additional checks for share object creation - #21755
Merged
Merged
Conversation
|
By analyzing the blame information on this pull request, we identified @DeepDiver1975 to be a potential reviewer |
rullzer
force-pushed
the
share2_hardening_creation
branch
from
January 16, 2016 13:08
44d9f6a to
122a83c
Compare
Merged
Contributor
|
👍 code makes sense |
Contributor
There was a problem hiding this comment.
this results in an empty OCS body, kind of suboptimal, although it shouldn't happen ever
curl http://localhost/ocs/v1.php/apps/files_sharing/api/v1/shares -X POST -d 'shareType=0&shareWith=test2&path=foo'
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>403</statuscode>
<message></message>
</meta>
<data/>
</ocs>
Contributor
Author
There was a problem hiding this comment.
mmm uhm we could add extra info... but I plan to add a logger to the provider soon to log all things that can go wrong... if this happens to a user I'm not sure what to report back that will make any sense to them..
Contributor
There was a problem hiding this comment.
User does not exist anymore?
Contributor
|
Anyway, fine by me 👍 |
* We can't assume that the file still exists * We can't assume that the user/group still exists Basically we do not always nicely cleanup shares.
rullzer
force-pushed
the
share2_hardening_creation
branch
from
January 18, 2016 19:00
122a83c to
0939520
Compare
DeepDiver1975
added a commit
that referenced
this pull request
Jan 18, 2016
[Share 2.0] Additional checks for share object creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basically we do not always nicely cleanup shares.
CC: @schiesbn @nickvergessen @DeepDiver1975 @PVince81