Open igsz opened 2 years ago
The problem is that the "resourcetype" element returned in the response is malformed. cadaver
requires that when you open a resource, it is a WebDAV collection, but because the resourcetype is not recognized it fails, hence the "(not WebDAV-enabled?)" message. I could clarify that message to be better, so I'll leave this open.
Can you report this to Bitrix support please? It is a programming error in the server code. In the response:
<D:response xmlns:ns0="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">
<D:href>/company/personal/user/1/disk/path/</D:href>
<D:propstat>
<D:prop>
<D:name>REG_ADMIN_FIRST_NAME REG_ADMIN_LAST_NAME</D:name>
<D:creationdate ns0:dt="dateTime.tz">2022-07-15T00:00:33Z</D:creationdate>
<D:getlastmodified ns0:dt="dateTime.rfc1123">Fri, 15 Jul 2022 14:47:38 GMT</D:getlastmodified>
<D:iscollection>1</D:iscollection>
<D:resourcetype><collection/></D:resourcetype>
<D:getcontenttype>httpd/unix-directory</D:getcontenttype>
....
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
they are missing the D: namespace prefix on the collection element:
<D:resourcetype><collection/></D:resourcetype>
should be
<D:resourcetype><D:collection/></D:resourcetype>
To work around this problem you can set "tolerant" mode in cadaver. i.e. cadaver -t $URL
I've moved this issue, to track an improved error message in the cadaver
repo.
Thank you for this very informative response! As it turns out, I cannot make Bitrix24 aware of their bug, because I have a free account, and only paid users can contact the support.
I understand that there is nothing you can do from your side. So feel free to close the issue when you are satisfied with your modifications. The workaround using the tolerant option is perfectly fine for me.
Describe the bug
When I try to access a WebDAV share on my bitrix24.de server, libneon terminates the connection with the message
207 Multi-Status
. Other WebDAV servers work fine, so it must be specific to bitrix24.de.Environment
To Reproduce
Happens everytime when connecting to a bitrix24 WebDAV server. The error also occurs with earlier versions of libneon.
Debugging output
This is the debug output with debugging of HTTP and XML enabled. Potentially sensitive info was masked by
xxxxxx...
.