-
Notifications
You must be signed in to change notification settings - Fork 184
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
bump reva #8649
bump reva #8649
Conversation
ef3a5eb
to
2bd0191
Compare
Findings:
|
I get the 404 from this line ocis/vendor/github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/move.go Lines 165 to 169 in 2bd0191
with old/new webdav, ocis/vendor/github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/ocdav.go Lines 336 to 338 in 2bd0191
|
This is weird, this is not supposed to happen, almost the same code is running in line 144 of move.go.... |
Yeah, only difference is that the |
@saw-jan yes but the same code is running in copy.go properly.... |
@saw-jan cs3org/reva#4582 @aduffeck saw the issue :) |
2bd0191
to
10bc55e
Compare
https://drone.owncloud.com/owncloud/ocis/32956/18/6 Scenario Outline: user copies a file from a project space with a different role to a project space with the manager role # /drone/src/tests/acceptance/features/apiSpacesShares/copySpaces.feature:47
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API # GraphContext::theAdministratorHasGivenTheRoleUsingTheGraphApi()
And user "Brian" has created a space "Project1" with the default quota using the Graph API # SpacesContext::theUserHasCreatedASpaceByDefaultUsingTheGraphApi()
And user "Brian" has created a space "Project2" with the default quota using the Graph API # SpacesContext::theUserHasCreatedASpaceByDefaultUsingTheGraphApi()
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt" # SpacesContext::userHasUploadedFile()
And user "Brian" has shared a space "Project2" with settings: # SpacesContext::userHasSharedSpace()
| shareWith | Alice |
| role | <to_role> |
And user "Brian" has shared a space "Project1" with settings: # SpacesContext::userHasSharedSpace()
| shareWith | Alice |
| role | <from_role> |
When user "Alice" copies file "/project1.txt" from space "Project1" to "/project1.txt" inside space "Project2" using the WebDAV API # SpacesContext::userCopiesFileFromAndToSpaceBetweenSpaces()
Then the HTTP status code should be "201" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
And for user "Alice" the space "Project2" should contain these entries: # SpacesContext::userTheSpaceShouldContainEntries()
| /project1.txt |
And for user "Alice" the content of the file "/project1.txt" of the space "Project2" should be "Project1 content" # SpacesContext::checkFileContent()
Examples:
| from_role | to_role |
| manager | manager |
Failed step: Then the HTTP status code should be "201"
HTTP status code 409 is not the expected value 201
Failed asserting that 409 matches expected '201'. |
10bc55e
to
767dbfa
Compare
2b07b18
to
aef8661
Compare
These two tests also need statuscode adjustment: apiSpacesDavOperation/moveByFileId.feature:741
apiSpacesDavOperation/moveByFileId.feature:742 |
aef8661
to
21fb1c1
Compare
21fb1c1
to
6ddac23
Compare
Quality Gate passedIssues Measures |
Bugfix: Prevent copying a file to a parent folder
When copying a file to its parent folder, the file would be copied onto the parent folder, moving the parent to the trash-bin.
#1230