Do not extend share info from FS for pending federated shares#37216
Merged
DeepDiver1975 merged 1 commit intomasterfrom Apr 7, 2020
Merged
Do not extend share info from FS for pending federated shares#37216DeepDiver1975 merged 1 commit intomasterfrom
DeepDiver1975 merged 1 commit intomasterfrom
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Codecov Report
@@ Coverage Diff @@
## master #37216 +/- ##
=========================================
Coverage 64.87% 64.87%
- Complexity 19146 19147 +1
=========================================
Files 1269 1269
Lines 74947 74948 +1
Branches 1331 1331
=========================================
+ Hits 48625 48626 +1
Misses 25930 25930
Partials 392 392
Continue to review full report at Codecov.
|
DeepDiver1975
approved these changes
Apr 7, 2020
11 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Pending federated shares have no related filesystem item so extending them via
View::getFileInfoleads to errors in the log fileRelated Issue
Motivation and Context
Share info requested by id via OCS was empty for pending federated shares.
How Has This Been Tested?
curl -u admin:admin http://localhost/owncloud-core/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/pendingcurl -u admin:admin http://localhost/owncloud-core/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/22 -vExpected behaviour
information of the share shown
Actual behaviour
HTTP code 200 but empty content
in the log file
Types of changes
Checklist: