Skip to content

is webdav supported? #580

Closed
Closed

Description

@jakop345

is webdav supported?

ncw edit

There is a go library here which could be helpful: https://github.com/studio-b12/gowebdav

Activity

  1. ncw commented on Jul 13, 2016

    @ncw
    Member

    Not currently. It might help with #382 also. I'll put it on the list :-)

  2. added this to the milestone on Aug 25, 2016
  3. nandhp commented on Sep 1, 2016

    @nandhp

    Box also supports WebDAV, so this might help with #97 also. However, I don't know if it would be as efficient as using the Box-specific API.

  4. richo67 commented on Nov 8, 2016

    @richo67

    Would be great to have WebDAV support. I have Synology NAS and it exports all files system as WebDAV (among other ways). I am sure many other system offers WebDAV access.

  5. ardhipoetra commented on Nov 23, 2016

    @ardhipoetra

    Seconded webDAV support. This can increase compatibility and reach a large user base. So far I'm happy with rclone especially with the mount implementation.

  6. jrz commented on Jan 20, 2017

    @jrz

    Using duplicati instead.

  7. deurk commented on Jan 30, 2017

    @deurk

    Would that make rclone support OwnCloud then?

  8. jrz commented on Jan 30, 2017

    @jrz

    It should. OwnCloud files can be stored and retrieved using webdav

  9. drohm commented on Feb 18, 2017

    @drohm

    Would love to see support for this so that owncloud/nextcloud would work.

  10. wouterch commented on Apr 26, 2017

    @wouterch

    Would be really appreciated!

  11. amunhoz commented on May 19, 2017

    @amunhoz

    Since ACD is off now, this will be important.
    We can get unlimited space in other services with a cheaper price with that.
    https://www.opendrive.com/
    https://www.box.com/

  12. ajkis commented on May 19, 2017

    @ajkis

    Open drive looks amazing it would be great for cold storage.
    Did not notice any bandwith or file limitation, now the question is what kind of speed we can achieve.

    p.s. Open Drive have full API support: https://www.opendrive.com/api

  13. j0hnsen commented on May 27, 2017

    @j0hnsen

    What is the status here @ncw ?

  14. calisro commented on May 27, 2017

    @calisro
    Member

    @j0hnsen why don't you do a pull request and finish it off.

  15. 29 remaining items

  16. WebSpider commented on Oct 16, 2017

    @WebSpider

    Also, I can report this patch doesnt work with stackstorage.com ... they seem to lack the possibility to find out the mtime, so all syncs are full syncs.

    Will grab soms logs in the next run.

  17. aquac commented on Oct 17, 2017

    @aquac

    @ncw thanks a lot!
    I ttested 'copy' and 'sync' with owncloud.

    While the former works fine, the latter doesn't seem to do anything. Is sync already supported ?

  18. ncw commented on Oct 22, 2017

    @ncw
    Member

    Here is a roundup of replies - sorry for the my absence from this thread:

    @scotta thanks for testing with BigCommerce

    Can you check with -vv --dump-headers that rclone is sending an Authorization: header. Use --dump-auth to see it.

    @donmega hmm, that is strange - the code is supposed to be filtering those out. Can you send me the result of rclone lsd -vv --dump-bodies remote:a/problem/directory - preferably a directory with not much in it that shows the problem.

    @WebSpider wrote:

    It does appear that when you include " in the URL, a strange error 'first path segment in URL cannot contain colon' is returned.

    Do you mean when you put a " in the rclone path, eg rclone ls \"dir\" or in the config file?

    @WebSpider wrote:

    Also, I can report this patch doesnt work with stackstorage.com ... they seem to lack the possibility to find out the mtime, so all syncs are full syncs.

    rclone should still do a partial sync, just testing the size and existence of the file. If you try a run with -vv rclone should log more stuff.

    @aquac wrote:

    I tested 'copy' and 'sync' with owncloud.
    While the former works fine, the latter doesn't seem to do anything. Is sync already supported ?

    Both sync and copy should work just fine. If you did a copy first, then a sync, the sync will do nothing as it has nothing to do.

  19. Rick7C2 commented on Oct 22, 2017

    @Rick7C2

    @ncw I am having the same problem as @donmega using webdav to connect to put.io webdav server.

    I have run the command specified above on a dir with one dir in it and two files in that. However this log shows everything in the webdav, so unfortunately it is very long.

    Here are the acctual contents of putio:Default

    /Default

    /Hotel.Transylvania.The.Series.S01E28E29.720p.DSNY.WEBRip.AAC2.0.x264-TVSmash[rarbg]

    Hotel.Transylvania.The.Series.S01E28E29.Best.Flap.Ever-Thumb.and.Thumber.720p.DSNY.WEB-DL.AAC2.0.x264-TVSmash.mkv
    RARBG.txt

    Command issued...

    rclone lsd -vv --dump-bodies putio:Default &>rclone-putio.txt

    And here are the contents of rclone-putio.txt
    https://gist.github.com/Rick7C2/5f0a1867e1022ec8d8d64e164df7ff4a (Truncated)

    https://gist.githubusercontent.com/Rick7C2/5f0a1867e1022ec8d8d64e164df7ff4a/raw/fd007c54a5a86c1a2925429fda18e514ab2dad31/rclone-putio.txt (Un-Truncated)

    Also when trying to copy or move a whole folder from this webdav to gdrive it doesn't create the subfolders. All of the subfolders are empty files.

    command...
    rclone copy putio:TV/ gdrive:Incoming/TV/testtv/

    However if I try to copy or move a file with direct path it works.
    command...
    rclone move putio:TV/The.X.Factor.S14E15.Judges.Houses.1.1080p.AMZN.WEBRip.DDP2.0.x264-NTb[rarbg]/The.X.Factor.S14E15.Judges.Houses.1.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb.mkv gdrive:Incoming/TV/The.X.Factor.S14E15.Judges.Houses.1.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb.mkv

  20. Rick7C2 commented on Oct 22, 2017

    @Rick7C2

    @ncw Also it seems that rclone thinks that the directory's are files.

    When I run rclone lsd while it shows all the funky errors as stated above it doesn't show the dirs at the bottom.

    But when I run rclone ls it shows the dirs below the error lines.

    rclone lsd putio: &>/root/putio-lsd.txt
    https://gist.github.com/Rick7C2/2a2d95a1a0e702aee84e4759f9015082

    rclone ls putio: &>/root/putio-ls.txt
    https://gist.github.com/Rick7C2/9d0e1ee26c0f40ab0fc6d77bec3e245f

    Here is the dirs in the root dir.

    putio:

    Default
    Movies
    TV

    This could be why when copying what I stated above makes the putio folders a file in the target.

  21. ncw commented on Oct 22, 2017

    @ncw
    Member

    @Rick7C2 I see what is going on.

    In the response the name is /Movies - whereas rclone is expecting the name to end in a /. The RFC says collections MUST end in / so this is non RFC compliant. But hey, we live in the real world ;-)

    The other odd thing about the response is it does a recursive listing of everything - I would expect it to only list the top level directory

    Maybe those two facts together mean that it isn't treating each directory as a collection but but there is just one collection.... It does have a resource type of collection though.

    I suspect I'm going to need to sign up for a put.io account to fix this unless anyone wants to lend me some credentials?

    <D:response>
      <D:href>/Movies</D:href>
      <D:propstat>
        <D:prop>
          <D:supportedlock>
            <D:lockentry xmlns:D="DAV:">
              <D:lockscope>
                <D:exclusive/>
              </D:lockscope>
              <D:locktype>
                <D:write/>
              </D:locktype>
            </D:lockentry>
          </D:supportedlock>
          <D:getlastmodified>Sat, 14 Oct 2017 21:27:51 GMT</D:getlastmodified>
          <D:resourcetype>
            <D:collection xmlns:D="DAV:"/>
          </D:resourcetype>
          <D:displayname>Movies</D:displayname>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    </D:response>

    Compared to a file

    <D:response>
      <D:href>/Default/dir/file.mkv</D:href>
      <D:propstat>
        <D:prop>
          <D:getcontenttype>video/x-matroska</D:getcontenttype>
          <D:supportedlock>
            <D:lockentry xmlns:D="DAV:">
              <D:lockscope>
                <D:exclusive/>
              </D:lockscope>
              <D:locktype>
                <D:write/>
              </D:locktype>
            </D:lockentry>
          </D:supportedlock>
          <D:getcontentlength>577333002</D:getcontentlength>
          <D:getlastmodified>Sun, 22 Oct 2017 19:16:47 GMT</D:getlastmodified>
          <D:getetag>"14effa7b24ef76002269670a"</D:getetag>
          <D:resourcetype>
          </D:resourcetype>
          <D:displayname>file.mkv</D:displayname>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    </D:response>
  22. Rick7C2 commented on Oct 22, 2017

    @Rick7C2

    @ncw I will share my putio account with you so you can fix this.
    I have sent the details to [email protected] Title: PUT.io account details for rclone/issues/580

  23. added a commit that references this issue on Oct 23, 2017
  24. ncw commented on Oct 23, 2017

    @ncw
    Member

    Here is a new beta which should work fine with put.io. It should be more compatible in general too :-)

    https://beta.rclone.org/v1.38-037-g6df1f6fa/ (uploaded in 15-30 mins)

    I updated the webdav docs with a section on put.io.

  25. Rick7C2 commented on Oct 24, 2017

    @Rick7C2

    After limited testing it seems to be working as intended except for one thing.

    When I run rclone ls It still lists the files recursively Instead of only listing the files in the current dir. Other than that I haven't found any problems. Tomorrow I will have more time to tinker with it.

    Thanks @ncw !

  26. scotta commented on Oct 24, 2017

    @scotta

    @ncw Thank you for replying. Here's the dump of connecting to BigCommerce. I went through config choosing webdav and other. The username is an email address and the password a BigCommerce generated 64 character string. Apologies if I've misconfigured something, first time user. I've modified the store URL and basic auth value for privacy.

    2017/10/24 14:45:16 DEBUG : rclone: Version "v1.38-037-g6df1f6faβ" starting with parameters ["./rclone" "-vv" "--dump-headers" "--dump-auth" "lsd" "bigcommerce:"]
    2017/10/24 14:45:16 INFO : webdav root '': Modify window not supported
    2017/10/24 14:45:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    2017/10/24 14:45:16 DEBUG : HTTP REQUEST (req 0xc420103500)
    2017/10/24 14:45:16 DEBUG : PROPFIND /dav/ HTTP/1.1
    Host: store-redacted.mybigcommerce.com
    User-Agent: rclone/v1.38-037-g6df1f6faβ
    Authorization: Basic RANDOMJnWUY0zY70mkPXtpO6rm=
    Depth: 1
    Accept-Encoding: gzip

    2017/10/24 14:45:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    2017/10/24 14:45:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    2017/10/24 14:45:17 DEBUG : HTTP RESPONSE (req 0xc420103500)
    2017/10/24 14:45:17 DEBUG : HTTP/1.1 401 Unauthorized
    Transfer-Encoding: chunked
    Cache-Control: no-cache
    Connection: keep-alive
    Content-Type: application/xml; charset=utf-8
    Date: Tue, 24 Oct 2017 03:45:17 GMT
    Server: openresty
    Www-Authenticate: Digest realm="SabreDAV",qop="auth",nonce="59eeb74ddb1be",opaque="df58bdff8cf60599c939187d0b5c54de"
    X-Bc-Stapler: 1
    X-Newrelic-App-Data: PxQDVV5bARADUlZUBgEBREgTYVYAMhEDXhFZAUxRW1xvSnoUQhVcDzgZZzMpM356fiBBMUNeRQM4bWRWExMGEUQwVxdMXWhuZABbJVAXEU5UGAdRVlMIHwBKUVEDAQNKSQAaEVZeUVtVB11WCApVAVBQD1ATTVUDCEVSPA==

    2017/10/24 14:45:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    2017/10/24 14:45:17 ERROR : : error listing: couldn't list files: No 'Authorization: Digest' header found. Either the client didn't send one, or the server is misconfigured
    2017/10/24 14:45:17 Failed to lsd: couldn't list files: No 'Authorization: Digest' header found. Either the client didn't send one, or the server is misconfigured

  27. ncw commented on Oct 25, 2017

    @ncw
    Member

    @Rick7C2 wrote

    When I run rclone ls It still lists the files recursively Instead of only listing the files in the current dir. Other than that I haven't found any problems. Tomorrow I will have more time to tinker with it.

    rclone ls lists recursively by default. Use rclone --max-depth 1 ls to not do that.

    @scotta wrote:

    Thank you for replying. Here's the dump of connecting to BigCommerce. I went through config choosing webdav and other. The username is an email address and the password a BigCommerce generated 64 character string.

    I think you configured it right - I see the problem now. BigCommerce is asking for Digest authentication whereas rclone is only supplying basic authentication. I'll have to read up on exactly how to implement that...


    Here is a new beta which has a fix which will probably improve put.io with subdirectories, and a compatiblility fix for server side moves and copies

    https://beta.rclone.org/v1.38-043-ge612673e/ (uploaded in 15-30 mins)

  28. Nicolaius commented on Nov 12, 2017

    @Nicolaius

    Hello,
    I'm using a webdav remote encrypted.
    When I try to upload a file with a name greater than 79 chars i have error "method not allowed" while with lower name the upload is ok.
    I inform you if it is useful.
    Thanks for the useful program.

  29. ncw commented on Nov 15, 2017

    @ncw
    Member

    @scotta sorry for the delay in responding! If you are still interested in getting webdav fixed with bigcommerce then please make a new issue on github with the details you put in above and I'll take a look for the 1.40 release.

    @Nicolaius I think that is probably a limitation of the server you are using, not rclone unfortunately.

    Otherwise I think this issue is now done - if there is anything I've missed please open a new issue!

    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions