Hello James and William,

I've also got problems with putting content into checked out resources. I checked it 
with Slide 2.1 beta 1 release where it works. But the current CVS Slide produces an 
error. I did the following steps with DAV Explorer in an empty repository:

1. PUT             - a new resource
2. VERSION-CONTROL - put the new resource under version control
3. PROPFIND        - the server response looks correct

HTTP/1.1 207 Multi Status
Date: Fri, 20 Aug 2004 10:41:26 GMT
Server: Jetty/4.2.20 (Windows XP/5.1 x86 java/1.4.2_04)
Content-Type: text/xml; charset="UTF-8"
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
   <D:multistatus xmlns:D="DAV:">
      <D:response xmlns:D="DAV:">
         <D:href>/slide/files</D:href>
         <D:propstat>
            <D:prop>
               <D:displayname>files</D:displayname>
               <D:resourcetype>
                  <D:collection />
               </D:resourcetype>
               <D:getcontentlength>0</D:getcontentlength>
               <D:getlastmodified>Fri, 20 Aug 2004 10:40:04 GMT</D:getlastmodified>
               <D:lockdiscovery />
            </D:prop>
            <D:status>HTTP/1.1 200 OK</D:status>
         </D:propstat>
         <D:propstat>
            <D:prop>
               <D:getcontenttype />
               <D:checked-in />
               <D:checked-out />
               <D:version-name />
            </D:prop>
            <D:status>HTTP/1.1 404 Not Found</D:status>
         </D:propstat>
      </D:response>
      <D:response xmlns:D="DAV:">
         <D:href>/slide/files/acsac.html</D:href>
         <D:propstat>
            <D:prop>
               <D:displayname>acsac.html</D:displayname>
               <D:resourcetype />
               <D:getcontenttype>text/html</D:getcontenttype>
               <D:getcontentlength>28432</D:getcontentlength>
               <D:getlastmodified>Fri, 20 Aug 2004 10:41:07 GMT</D:getlastmodified>
               <D:lockdiscovery />
               <D:checked-in>
                  <D:href>/slide/history/1/1.0</D:href>
               </D:checked-in>
            </D:prop>
            <D:status>HTTP/1.1 200 OK</D:status>
         </D:propstat>
         <D:propstat>
            <D:prop>
               <D:checked-out />
               <D:version-name />
            </D:prop>
            <D:status>HTTP/1.1 404 Not Found</D:status>
         </D:propstat>
      </D:response>
   </D:multistatus>

4. CHECKOUT        - the server replies with 200 OK
5. PROPFIND        - the server response contains inconsistencies, note that the put
                     resource is marked as checked-out AND checked-in at the same time!

HTTP/1.1 207 Multi Status
Date: Fri, 20 Aug 2004 10:46:36 GMT
Server: Jetty/4.2.20 (Windows XP/5.1 x86 java/1.4.2_04)
Content-Type: text/xml; charset="UTF-8"
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
   <D:multistatus xmlns:D="DAV:">
      <D:response xmlns:D="DAV:">
         <D:href>/slide/files</D:href>
         <D:propstat>
            <D:prop>
               <D:displayname>files</D:displayname>
               <D:resourcetype>
                  <D:collection />
               </D:resourcetype>
               <D:getcontentlength>0</D:getcontentlength>
               <D:getlastmodified>Fri, 20 Aug 2004 10:45:27 GMT</D:getlastmodified>
               <D:lockdiscovery />
            </D:prop>
            <D:status>HTTP/1.1 200 OK</D:status>
         </D:propstat>
         <D:propstat>
            <D:prop>
               <D:getcontenttype />
               <D:checked-in />
               <D:checked-out />
               <D:version-name />
            </D:prop>
            <D:status>HTTP/1.1 404 Not Found</D:status>
         </D:propstat>
      </D:response>
      <D:response xmlns:D="DAV:">
         <D:href>/slide/files/acsac.html</D:href>
         <D:propstat>
            <D:prop>
               <D:displayname>acsac.html</D:displayname>
               <D:resourcetype />
               <D:getcontenttype>text/html</D:getcontenttype>
               <D:getcontentlength>28432</D:getcontentlength>
               <D:getlastmodified>Fri, 20 Aug 2004 10:45:55 GMT</D:getlastmodified>
               <D:lockdiscovery />
               <D:checked-in>
                  <D:href>/slide/history/1/1.0</D:href>
               </D:checked-in>
               <D:checked-out>
                  <D:href>/slide/history/1/1.0</D:href>
               </D:checked-out>
            </D:prop>
            <D:status>HTTP/1.1 200 OK</D:status>
         </D:propstat>
         <D:propstat>
            <D:prop>
               <D:version-name />
            </D:prop>
            <D:status>HTTP/1.1 404 Not Found</D:status>
         </D:propstat>
      </D:response>
   </D:multistatus>

6. PUT             - the server refuses to execute it. Maybe the server assumes the 
resource to be
                     checkedin, tries to auto-checkout it and fails.

HTTP/1.1 403 Forbidden
Date: Fri, 20 Aug 2004 10:41:48 GMT
Server: Jetty/4.2.20 (Windows XP/5.1 x86 java/1.4.2_04)
Content-Type: text/xml; charset="UTF-8"
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
   <D:error xmlns:D="DAV:">
      <D:checkout-of-checked-out-version-is-forbidden />
   </D:error>

7. UNCHECKOUT      - the server also refuses to execute this, because the resource is
                     assumed to be checkedin.

HTTP/1.1 409 Conflict
Date: Fri, 20 Aug 2004 10:42:08 GMT
Server: Jetty/4.2.20 (Windows XP/5.1 x86 java/1.4.2_04)
Content-Type: text/xml; charset="UTF-8"
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
   <D:error xmlns:D="DAV:">
      <D:must-be-checked-out-version-controlled-resource />
   </D:error>

So I think the problem becomes obvious in step 5. But I have no idea why the response 
from step 5 is produced. Hope this helps for fixing the bug.

Best regards
Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to