Repository navigation
Fix DAV exceptions, some will still return false now - #13791
Merged
Merged
Conversation
Since the Storage interface isn't ready to work directly with exceptions like Forbidden and NotFound, the DAV storage has been adapted to still return false when expected.
Contributor
Author
|
Fixes #13754 |
|
A new inspection was created. |
|
Refer to this link for build results (access rights to CI server needed): |
Contributor
|
makes sense 👍 |
Contributor
|
Tests are passing again: I give a halt 👍 because I cannot judge on the actual change, but just on the outcome ;) |
Contributor
|
The DAV storage is used by s2s as well - right? Needs to be tested as well from my understanding |
Contributor
Author
|
Yes, true. It might work even better than before because most of the API calls expect to return false instead of throwing exceptions. |
Contributor
|
Cant find any problem with s2s |
Contributor
|
here we go then - THX for testing |
DeepDiver1975
added a commit
that referenced
this pull request
Feb 3, 2015
Fix DAV exceptions, some will still return false now
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.
Since the Storage interface isn't ready to work directly with exceptions
like Forbidden and NotFound, the DAV storage has been adapted to still
return false when expected. (I know it looks ugly, but it's a quickfix for now)
In the future we'll want to make all storage implementations work with exceptions, and that will make it possible to change the unit test to expect that. For now: using return false when it makes sense.
@MorrisJobke please run the webdav unit tests (I tested this with the owncloud.php test suite)
Please review @icewind1991 @DeepDiver1975