Skip to content

Uploading with old-chunking does not work #1343

@individual-it

Description

@individual-it

trying to upload the file does not show any issues, but the result cannot be listed

$ curl --user user0:123456 http://localhost:9140/remote.php/webdav/home/file-chunking-1234-2-0 --request PUT -d"AAA" -H "OC-Chunked:1"
$ curl --user user0:123456 http://localhost:9140/remote.php/webdav/home/file-chunking-1234-2-1 --request PUT -d"BBB" -H "OC-Chunked:1"
$ curl --user user0:123456 http://localhost:9140/remote.php/webdav/home --request PROPFIND | xmllint --format -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   854  100   854    0     0  50235      0 --:--:-- --:--:-- --:--:-- 50235
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
  <d:response>
    <d:href>/remote.php/webdav/home/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAwOmVjNzMwZGI3LTEyNjYtNDUwNC1iODYwLWQzMzNkMTliNTMxNw==</oc:id>
        <oc:fileid>MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjU1NDQwMDAwOmVjNzMwZGI3LTEyNjYtNDUwNC1iODYwLWQzMzNkMTliNTMxNw==</oc:fileid>
        <d:getetag>"d37e5cdffff691d3d6701109d75df380"</d:getetag>
        <oc:permissions>WCKDNVR</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <d:getcontenttype>httpd/unix-directory</d:getcontenttype>
        <oc:size>4096</oc:size>
        <d:getlastmodified>Tue, 21 Jan 2020 07:52:05 UTC</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category:DefectExisting functionality is not working as expectedType:Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions