Bug 33199 - The Report method of WebDav(Versioning) does not set the header "Content-Type: text/html;charset=utf-8"
Summary: The Report method of WebDav(Versioning) does not set the header "Content-Type...
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Versioning (show other bugs)
Version: 2.1
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 16:06 UTC by Yuri Trachuk
Modified: 2005-09-07 03:48 UTC (History)
0 users



Attachments
a file modified for bug resolution (10.27 KB, patch)
2005-09-07 11:48 UTC, Francesco Paladino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Trachuk 2005-01-21 16:06:18 UTC
The Report method of WebDav(Versioning) does not set the header "Content-Type: 
text/html;charset=utf-8"
Example :

REPORT http://is0065:8080/slide/files/Test/VersionFile.txt HTTP/1.1
Pragma: no-cache
Proxy-Connection: Keep-Alive
User-Agent: DriveOnWeb 2.08
Content-Type: text/xml
Accept-Language: de
Content-Length: 181
Accept: */*
Host: is0065:8080
Cookie: JSESSIONID=4EE87CF8E78B3C8746A2316D244154C8

<?xml version='1.0' encoding='utf-8'?><D:version-tree 
xmlns:D='DAV:'><D:prop><D:version-name/><D:creator-displayname/><D:successor-
set/><D:label-name-set/></D:prop></D:version-tree>

The answer from Slide:

HTTP/1.1 207 Multi-Status
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 CET
Transfer-Encoding: chunked
Date: Fri, 21 Jan 2005 14:31:54 GMT
Server: Apache-Coyote/1.1

608
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
    <D:response>
        <D:href>/slide/history/1/1.0</D:href>
        <D:propstat>
and so on ...

Thank you
Comment 1 Francesco Paladino 2005-09-07 11:48:46 UTC
Created attachment 16328 [details]
a file modified for bug resolution

I am new in slide bugzilla, I make excuses myself for my written English.  I
have resolved the problem modifying the file
"src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java" v 1,74

adding at line 193 the following text:
   "resp.setContentType(TEXT_XML_UTF_8);"