X Tutup
Skip to content

Moving a file out of a share corrupts its versions #321

@phil-davis

Description

@phil-davis

With Master Key encryption
Against core master:
https://drone.owncloud.com/owncloud/encryption/2260/51/18

Against core 10.9.1RC1
https://drone.owncloud.com/owncloud/encryption/2260/91/18

Scenario: enable file versioning and check the history of changes from multiple users while moving file in/out of a subfolder                      # /var/www/owncloud/testrunner/tests/acceptance/features/apiVersions/fileVersionAuthor.feature:75
    Given user "Alice" has created folder "/test"                                                                                                    # FeatureContext::userHasCreatedFolder()
    And group "grp1" has been created                                                                                                                # FeatureContext::groupHasBeenCreated()
    And user "Alice" has been added to group "grp1"                                                                                                  # FeatureContext::userHasBeenAddedToGroup()
    And user "Brian" has been added to group "grp1"                                                                                                  # FeatureContext::userHasBeenAddedToGroup()
    And user "Carol" has been added to group "grp1"                                                                                                  # FeatureContext::userHasBeenAddedToGroup()
    And user "Alice" has shared folder "/test" with group "grp1"                                                                                     # FeatureContext::userHasSharedFileWithGroupUsingTheSharingApi()
    And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"                                                # FeatureContext::userHasUploadedAFileWithContentTo()
    And user "Brian" has uploaded file with content "uploaded content brian" to "/test/textfile0.txt"                                                # FeatureContext::userHasUploadedAFileWithContentTo()
    And user "Carol" has uploaded file with content "uploaded content carol" to "/test/textfile0.txt"                                                # FeatureContext::userHasUploadedAFileWithContentTo()
    When user "Brian" moves file "/test/textfile0.txt" to "/textfile0.txt" using the WebDAV API                                                      # FeatureContext::userMovesFileUsingTheAPI()
    And user "Brian" uploads file with content "uploaded content brian after moving file outside subfolder" to "/textfile0.txt" using the WebDAV API # FeatureContext::userUploadsAFileWithContentTo()
    And user "Brian" moves file "/textfile0.txt" to "/test/textfile0.txt" using the WebDAV API                                                       # FeatureContext::userMovesFileUsingTheAPI()
    Then as "Alice" file "/test/textfile0.txt" should exist                                                                                          # FeatureContext::asFileOrFolderShouldExist()
    When user "Alice" gets the number of versions of file "/test/textfile0.txt"                                                                      # FilesVersionsContext::userGetsFileVersions()
    Then the number of versions should be "3"                                                                                                        # FeatureContext::theNumberOfVersionsShouldBe()
    And the content of version index "1" of file "/test/textfile0.txt" for user "Alice" should be "uploaded content carol"                           # FilesVersionsContext::theContentOfVersionIndexOfFileForUserShouldBe()
      HTTP status code 500 is not the expected value 200
      Failed asserting that 500 matches expected '200'.

The fail happens at the same step in both test pipelines.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup