-
Enhancement
-
Resolution: Done
-
Critical
-
2.2.1.GA
I was unable to update or set new property on ModeShape resource through WebDav interface. I used PROPPATCH verb to create new property on previously created resource in Modeshape, the property was created (WebDav server returned 200 OK status code) then I retrieved all properties on this resource - I expected newly created property to be there, but it wasn't.
Here is log from wireshark:
PROPPATCH /modeshape-webdav/repository/eds/testFile HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.1 Content-Length: 158 Content-Type: text/xml; charset=UTF-8 Authorization: Basic YWRtaW46YWRtaW4= Host: 127.0.0.1:8080 <?xml version="1.0" encoding="UTF-8"?><D:propertyupdate xmlns:D="DAV:"><D:set><D:prop><D:myProperty>myValue</D:myProperty></D:prop></D:set></D:propertyupdate>HTTP/1.1 207 Multi-Status Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 01:00:00 CET X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 26 Oct 2010 14:20:22 GMT <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"><D:response><D:href>/modeshape-webdav/repository/eds/testFile</D:href> <D:propstat><D:prop><D:myProperty/></D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus>
after setting new property, looking it up in webdav's server, but there is no <D:my:Property>
PROPFIND /modeshape-webdav/repository/eds/testFile HTTP/1.1
Depth: infinity User-Agent: Jakarta Commons-HttpClient/3.1 Content-Length: 90 Content-Type: text/xml; charset=UTF-8 Authorization: Basic YWRtaW46YWRtaW4= Host: 127.0.0.1:8080 <?xml version="1.0" encoding="UTF-8"?><D:propfind xmlns:D="DAV:"><D:allprop/></D:propfind>HTTP/1.1 207 Multi-Status Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 01:00:00 CET X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 26 Oct 2010 14:20:22 GMT 330 <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:"><D:response><D:href>/modeshape-webdav/repository/eds/testFile</D:href> <D:propstat><D:prop><D:creationdate>2010-10-26T14:20:22Z</D:creationdate> <D:displayname><![CDATA[testFile]]></D:displayname> <D:getlastmodified>Tue, 26 Oct 2010 14:20:22 GMT</D:getlastmodified> <D:getcontentlength>0</D:getcontentlength> <D:getetag>W/"0-1288102822438"</D:getetag> <D:resourcetype/><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> <D:lockentry><D:lockscope><D:shared/></D:lockscope> <D:locktype><D:write/></D:locktype> </D:lockentry> </D:supportedlock> <D:lockdiscovery/><D:source></D:source> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus>
- is blocked by
-
MODE-1588 Decide how to support WebDAV needs
- Closed