Closing a file opened for writing can give incorrect error
Submitted by Ross Lagerwall
Assigned to gvf..@..e.bugs
Link to original bug (#727117)
Description
It should give an IS_DIRECTORY error, but instead:
$ gvfs-save dav://localhost:8080/dav/d2 help Error closing: HTTP Error: Moved Permanently
The HTTP debug output: Queued new job 0xc77ab0 (GVfsJobCloseWrite)
PUT /dav/d2 HTTP/1.1 Soup-Debug-Timestamp: 1395873208 Soup-Debug: SoupSessionAsync 1 (0xc55220), SoupMessage 12 (0xc733b0), SoupSocket 7 (0xc74ba0) Host: localhost:8080 Content-Type: application/octet-stream Accept-Encoding: gzip, deflate User-Agent: gvfs/1.18.3 Accept-Language: en-us, en;q=0.9 Connection: Keep-Alive
help
< HTTP/1.1 301 Moved Permanently
< Soup-Debug-Timestamp: 1395873208
< Soup-Debug: SoupMessage 12 (0xc733b0)
< Date: Wed, 26 Mar 2014 22:33:28 GMT
< Server: Apache/2.4.9 (Unix)
< Location: http://localhost:8080/dav/d2/
< Content-Length: 237
< Keep-Alive: timeout=5, max=100
< Connection: Keep-Alive
< Content-Type: text/html; charset=iso-8859-1
<
<
< <html>``<head>
< <title>
301 Moved Permanently</title>
< </head>``<body>
< <h1>
Moved Permanently</h1>
< <p>
The document has moved here</a>
.</p>
< </body>``</html>
job_close_write send reply
Version: git master