Bug 33199

Summary: The Report method of WebDav(Versioning) does not set the header "Content-Type: text/html;charset=utf-8"
Product: Slide Reporter: Yuri Trachuk <yuriy_t>
Component: VersioningAssignee: Slide Developer List <slide-dev>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Attachments: a file modified for bug resolution

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);"