Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot crete folder on Webdav: I/O error unsupported file type #6573

Closed
cyberduck opened this issue Mar 2, 2012 · 4 comments
Closed

Cannot crete folder on Webdav: I/O error unsupported file type #6573

cyberduck opened this issue Mar 2, 2012 · 4 comments
Assignees
Labels
bug fixed webdav WebDAV Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

Daggerquill created the issue

When attempting to create folder 'testfolder1' on WebDAV server via https, I get error:

I/O Error: cannot create folder testfolder1
Unsupported Media Type

Other WebDAV functions (authentication, file upload/download, etc.) appear to work normally.

I first noticed when attempting to connect to a Xythos WebDAV (Apache Tomcat/Coyote) server on OS X 10.7.3, but it seems server and platform agnostic, and probably related to Ticket #6540

The problem seems to have been introduced at some point in the 4.1.x or 4.2.x tree. I was able to create a Folder as recently as this morning using 4.0.5, but creation fails consistently since upgrading to 4.2.1 around noon today.

Log snippet:

MKCOL /users/*****/testfolder1/ HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 0
Host: ***.***.edu
Connection: Keep-Alive
User-Agent: Cyberduck/4.2.1 (Mac OS X/10.7.3) (i386)
Cookie: XythosSessionID1=[B@1361731--2017326351; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893
Cookie2: $Version=1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
HTTP/1.1 415 Unsupported Media Type
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Pragma: no-cache
Date: Fri, 02 Mar 2012 17:57:02 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 63

Full log, from authentication to failure:
{{{
PROPFIND /users// HTTP/1.1
Depth: 1
Content-Type: text/xml; charset=utf-8
Content-Length: 99
Host: ..edu
Connection: Keep-Alive
User-Agent: Cyberduck/4.2.1 (Mac OS X/10.7.3) (i386)
HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Date: Fri, 02 Mar 2012 18:13:39 GMT
WWW-Authenticate: BASIC realm="
.
.edu"
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 182
PROPFIND /users/
/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset=utf-8
Content-Length: 99
Host: ..edu
Connection: Keep-Alive
User-Agent: Cyberduck/4.2.1 (Mac OS X/10.7.3) (i386)
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Set-Cookie: xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; Expires=Sat, 03-Mar-2012 18:13:40 GMT; Path=/; Secure
Set-Cookie: XythosSessionID1=[B@1361731--2017326351; Expires=Sat, 03-Mar-2012 18:13:40 GMT; Path=/; Secure
Date: Fri, 02 Mar 2012 18:13:39 GMT
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
MKCOL /users/
/testfolder1/ HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 0
Host: ..edu
Connection: Keep-Alive
User-Agent: Cyberduck/4.2.1 (Mac OS X/10.7.3) (i386)
Cookie: XythosSessionID1=[B@1361731--2017326351; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893
Cookie2: $Version=1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
HTTP/1.1 415 Unsupported Media Type
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Pragma: no-cache
Date: Fri, 02 Mar 2012 18:13:55 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 63
MKCOL /users/
****/testfolder1/ HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 0
Host: ..edu
Connection: Keep-Alive
User-Agent: Cyberduck/4.2.1 (Mac OS X/10.7.3) (i386)
Cookie: XythosSessionID1=[B@1361731--2017326351; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893
Cookie2: $Version=1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
HTTP/1.1 415 Unsupported Media Type
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Pragma: no-cache
Date: Fri, 02 Mar 2012 18:13:59 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 63

@cyberduck
Copy link
Collaborator Author

Daggerquill commented

For comparison, this is the log from a successful run on 4.0.2, from login to folder creation.

Although I don't know if it's significant, what immediately stands out is that 4.2.1 appends a trailing slash to the uri in the MKCOL request where 4.0.2 didn't:

PROPFIND /users/***** HTTP/1.1
Content-Type: text/xml; charset=utf-8
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Host: ***.***.edu
Content-Length: 207
Depth: 0

HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Date: Fri, 02 Mar 2012 18:25:51 GMT
WWW-Authenticate: BASIC realm=***.***.edu
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 182

PROPFIND /users/***** HTTP/1.1
Content-Type: text/xml; charset=utf-8
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Content-Length: 207
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
Host: ***.***.edu
Depth: 0

HTTP/1.1 207 Multi-Status
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Set-Cookie: xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; Expires=Sat, 03-Mar-2012 18:25:53 GMT; Path=/; Secure
Set-Cookie: XythosSessionID1=[B@1361731--2017326351; Expires=Sat, 03-Mar-2012 18:25:53 GMT; Path=/; Secure
Date: Fri, 02 Mar 2012 18:25:53 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 813

PROPFIND /users/*****/ HTTP/1.1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
Content-Type: text/xml; charset=utf-8
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Host: myfiles.fordham.edu
Cookie: $Version=0; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; $Path=/
Cookie: $Version=0; XythosSessionID1=[B@1361731--2017326351; $Path=/
Content-Length: 207
Depth: 0

HTTP/1.1 207 Multi-Status
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Date: Fri, 02 Mar 2012 18:25:53 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 813

PROPFIND /users/*****/ HTTP/1.1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
Content-Type: text/xml; charset=utf-8
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Host: ***.***.edu
Cookie: $Version=0; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; $Path=/
Cookie: $Version=0; XythosSessionID1=[B@1361731--2017326351; $Path=/
Content-Length: 207
Depth: 1

HTTP/1.1 207 Multi-Status
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Date: Fri, 02 Mar 2012 18:25:53 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 13962

MKCOL /users/*****/testfodler1 HTTP/1.1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Host: myfiles.fordham.edu
Cookie: $Version=0; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; $Path=/
Cookie: $Version=0; XythosSessionID1=[B@1361731--2017326351; $Path=/

HTTP/1.1 201 Created
HTTP/1.1 201 Created
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Pragma: no-cache
Date: Fri, 02 Mar 2012 18:26:08 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 0

PROPFIND /users/*****/ HTTP/1.1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
Content-Type: text/xml; charset=utf-8
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Host: ***.***.edu
Cookie: $Version=0; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; $Path=/
Cookie: $Version=0; XythosSessionID1=[B@1361731--2017326351; $Path=/
Content-Length: 207
Depth: 0

HTTP/1.1 207 Multi-Status
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Date: Fri, 02 Mar 2012 18:26:08 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 813

PROPFIND /users/*****/ HTTP/1.1
Authorization: Basic anNhdmFnZTprYWx5cHNPNTc3NQ==
Content-Type: text/xml; charset=utf-8
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.7.3) (i386)
Host: ***.***.edu
Cookie: $Version=0; xyc_XythosGroupDigest1=2CE8CEE95E83148FDAA840036333042790F1D893; $Path=/
Cookie: $Version=0; XythosSessionID1=[B@1361731--2017326351; $Path=/
Content-Length: 207
Depth: 1

HTTP/1.1 207 Multi-Status
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Date: Fri, 02 Mar 2012 18:26:09 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 14546

@cyberduck
Copy link
Collaborator Author

@dkocher commented

This is most possibly caused by the Content-Type: text/xml; charset=utf-8 header in the MKCOL request.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fixed in Sardine.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In e7ac5d7.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed webdav WebDAV Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants