owncloud / product

ownCloud Product Backlog
GNU Lesser General Public License v3.0
0 stars 1 forks source link

[OCIS][ocis storage][EOS-storage] setting mtime on files doesn't work #271

Open dpakach opened 3 years ago

dpakach commented 3 years ago

Trying to upload files with mtime doesnt works.

Test to demonstrate

  Scenario Outline: Get the mtime of a file shared by public link                                                                  # /home/dipakacharya/www/core/tests/acceptance/features/apiSharePublicLink1/createPublicLinkShare.feature:765
    Given using <dav_version> DAV path                                                                                             # FeatureContext::usingOldOrNewDavPath()
    And user "Alice" has uploaded a file to "file.txt" with mtime "Thu, 08 Aug 2019 04:18:13 GMT" using the WebDAV API             # FeatureContext::userUploadsFileWithContentToWithMtimeUsingTheWebdavApi()
    When user "Alice" creates a public link share using the sharing API with settings                                              # FeatureContext::userCreatesAPublicLinkShareWithSettings()
      | path        | file.txt |
      | permissions | read     |
    Then the HTTP status code should be "200"                                                                                      # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the mtime of file "file.txt" in the last shared public link using the WebDAV API should be "Thu, 08 Aug 2019 04:18:13 GMT" # PublicWebDavContext::theMtimeOfFileInTheLastSharedPublicLinkUsingTheWebdavApiShouldBe()

    Examples:
      | dav_version |
      | old         |
        Failed asserting that 'Tue, 13 Oct 2020 11:55:26 +0000' contains "Thu, 08 Aug 2019 04:18:13".
individual-it commented 3 years ago

same happens on EOS storage

micbar commented 3 years ago

fixed by https://github.com/cs3org/reva/pull/1874