-
Notifications
You must be signed in to change notification settings - Fork 113
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
fixed the response code when copying the file from shares to personal space #4775
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one thing, since there was no red ci, i expect we have not tested this code path in the past... could you add some tests for httpDownloadRes.StatusCode == http.StatusForbidden
.
just in case, why do you return nil instead of the err?
THANKS 🤗
From an API test point-of-view, I think test coverage is related to issue owncloud/ocis#8428 To verify the fix at the API level, someone would need to add a test scenario to the ocis API tests, then make that test run here (an extra PR from here that uses the new branch in ocis as the source for the tests). But maybe you are just referring to unit tests? @fschade I am not sure what level of test you mean. |
Yes exactly, not a logic test, more like a behavior test :) |
We have a PR owncloud/ocis#9437 to cover the behavior but not merged because it was not fixed yet. We will test and report if the fixes worked with the new test scenarios. |
Also, we do not have secure-view role test scenarios in |
We return the nil because the error will be handled as a 500 |
Related Issue #9482