You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/01/06 15:11:16 UTC

DO NOT REPLY [Bug 50550] New: PropFind 404 error after MkCol succes

https://issues.apache.org/bugzilla/show_bug.cgi?id=50550

           Summary: PropFind 404 error after MkCol succes
           Product: Tomcat 5
           Version: 5.5.31
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlets:WebDAV
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: maarten.van.hulsentop@gmail.com


A propfind call on a resource returns a 404 error when executed after a mkcol
for the same resource. The mkcol should be preceeded with a propfind to trigger
the issue. 

Steps to reproduce - See the following access log;
  127.0.0.1 - - [06/Jan/2011:14:09:19 +0100] "PROPFIND
/webdav/output/f469e3d6-e536-4072-82da-d989acaf57a2/ HTTP/1.1" 404 1084
  127.0.0.1 - - [06/Jan/2011:14:09:19 +0100] "MKCOL
/webdav/output/f469e3d6-e536-4072-82da-d989acaf57a2/ HTTP/1.1" 201 -
  127.0.0.1 - - [06/Jan/2011:14:09:19 +0100] "PROPFIND
/webdav/output/f469e3d6-e536-4072-82da-d989acaf57a2/ HTTP/1.1" 404 1084

When the first request would be omitted, the third request would have been
succesful, as the following access log shows;
  127.0.0.1 - - [06/Jan/2011:14:10:39 +0100] "MKCOL
/webdav/output/81a97360-ea49-44d3-b764-d8c7e60e885e/ HTTP/1.1" 201 -
  127.0.0.1 - - [06/Jan/2011:14:10:39 +0100] "PROPFIND
/webdav/output/81a97360-ea49-44d3-b764-d8c7e60e885e/ HTTP/1.1" 207 628

Note: After a few seconds, the response to propfind for that resource is OK
again. This suggests this has to do with caching.

Note2: This situation sounds similar to call 21288 (FIXED - 'DirContext caching
problem with Dreamweaver 6 when recursively creating directories').

Reproducable using a jackrabbit client;

____
    HttpClient client = new HttpClient();

    String newDir = "http://localhost:8080/webdav/output/" + UUID.randomUUID()
+ "/";

    // Comment out this request to make second propfind succesful
    HttpMethod propFindMethod1 = new PropFindMethod(newDir);
    client.executeMethod(propFindMethod1);
    propFindMethod1.releaseConnection();

    HttpMethod mkcolMethod = new MkColMethod(newDir);
    client.executeMethod(mkcolMethod);
    mkcolMethod.releaseConnection();

    HttpMethod propFindMethod = new PropFindMethod(newDir);
    client.executeMethod(propFindMethod);
    propFindMethod.releaseConnection();
____

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50550] PropFind 404 error after MkCol succes

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50550

--- Comment #1 from Mark Thomas <ma...@apache.org> 2011-01-06 13:12:33 EST ---
Fixed in 7.0.x and will be included in 7.0.6 onwards.

Proposed for 6.0.x and 5.5.x.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50550] PropFind 404 error after MkCol succes

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50550

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Mark Thomas <ma...@apache.org> 2011-01-20 12:17:20 EST ---
Fixed in 5.5.x and will be included in 5.5.32 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50550] PropFind 404 error after MkCol succes

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50550

--- Comment #2 from Mark Thomas <ma...@apache.org> 2011-01-20 12:03:35 EST ---
Fixed in 6.0.x and will be included in 6.0.31 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50550] PropFind 404 error after MkCol succes

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50550

--- Comment #4 from Jim Jagielski <ji...@apache.org> 2011-01-20 14:23:43 EST ---
Will be in 5.5.32

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org