TheProjecter / sardine

Automatically exported from code.google.com/p/sardine
0 stars 0 forks source link

Irrelevant circular redirect exception thrown #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Access to a webdav url without trailing / that redirects your to trailing / 
version

What is the expected output? What do you see instead?

Redirection should be followed. Exception is thrown.

What version of the product are you using?

307

On what operating system?

Windows

What webdav server are you hitting?

private server (apache + mod_dav)

What is in the server error logs?
****ip**** - davadmin [17/Nov/2011:11:15:41 +0000] "PROPFIND /webdav HTTP/1.1" 
301 317 "-" "Sardine/307"

Stack trace + http client log:
2011-11-17 12:16:13 DavFolder [DEBUG] Begin listing http://rmibeta.oma.be/webdav
2011-11-17 12:16:13 wire [DEBUG] >> "PROPFIND /webdav HTTP/1.1[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "Depth: 1[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "Content-Type: text/xml; 
charset=utf-8[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "Content-Length: 99[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "Host: some.server.com[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "Connection: Keep-Alive[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "User-Agent: Sardine/307[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "Authorization: Basic **********[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] >> "<?xml version="1.0" encoding="UTF-8" 
standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>"
2011-11-17 12:16:13 wire [DEBUG] << "HTTP/1.1 301 Moved Permanently[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "Date: Thu, 17 Nov 2011 11:15:41 
GMT[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "Server: Apache/2.2.3 (Red Hat)[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "Location: 
http://rmibeta.oma.be/webdav/[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "Content-Length: 317[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "Connection: close[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "Content-Type: text/html; 
charset=iso-8859-1[\r][\n]"
2011-11-17 12:16:13 wire [DEBUG] << "[\r][\n]"
2011-11-17 12:16:13 DavFolder [DEBUG] Error listing content of 
http://rmibeta.oma.be/webdav
org.apache.http.client.ClientProtocolException
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
    at com.googlecode.sardine.impl.SardineImpl.execute(SardineImpl.java:684)
    at com.googlecode.sardine.impl.SardineImpl.list(SardineImpl.java:339)
    at company.dav.client.data.DavFolder.loadFolder(DavFolder.java:63)
    at company.dav.client.data.DavFolder.ensureContent(DavFolder.java:43)
    at company.dav.client.data.DavFolder.getLength(DavFolder.java:138)
    at org.apache.pivot.wtk.TreeView$BranchHandler.<init>(TreeView.java:453)
    at org.apache.pivot.wtk.TreeView.monitorBranch(TreeView.java:1875)
    at org.apache.pivot.wtk.TreeView.setBranchExpanded(TreeView.java:1743)
    at org.apache.pivot.wtk.skin.terra.TerraTreeViewSkin.mouseDown(TerraTreeViewSkin.java:1624)
    at org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseDown(Component.java:461)
    at org.apache.pivot.wtk.Component.mouseDown(Component.java:2757)
    at org.apache.pivot.wtk.Container.mouseDown(Container.java:727)
    at org.apache.pivot.wtk.Container.mouseDown(Container.java:727)
    at org.apache.pivot.wtk.Container.mouseDown(Container.java:727)
    at org.apache.pivot.wtk.Container.mouseDown(Container.java:727)
    at org.apache.pivot.wtk.Container.mouseDown(Container.java:727)
    at org.apache.pivot.wtk.Container.mouseDown(Container.java:727)
    at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:840)
    at java.awt.Component.processEvent(Component.java:6053)
    at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
    at java.awt.Component.dispatchEventImpl(Component.java:4651)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:616)
    at java.awt.EventQueue$2.run(EventQueue.java:614)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.apache.http.client.CircularRedirectException: Circular redirect 
to 'http://rmibeta.oma.be/webdav/'
    at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:168)
    at com.googlecode.sardine.impl.SardineImpl$1.getRedirect(SardineImpl.java:218)
    at org.apache.http.impl.client.DefaultRequestDirector.handleResponse(DefaultRequestDirector.java:1021)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:482)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    ... 48 more

Original issue reported on code.google.com by tch...@gmail.com on 17 Nov 2011 at 11:20

GoogleCodeExporter commented 9 years ago
I cannot replicate the issue. We have a test in 
FunctionalSardineTest#testRedirectPermanently that test the additional 
automatic  redirect strategies implemented for PROPFIND, HEAD and LOCK.

Original comment by dkocher@sudo.ch on 17 Nov 2011 at 4:52

GoogleCodeExporter commented 9 years ago
Hello,

i made some quick check with your test.

Indeed it sucess in listing.... The first time. If you request the same list 
from sardine a second time it fails. list() is propably reusing some datas, 
sees the same url on a move twice, but on different calls, and fail on 
successive calls.

Code to reproduce:

    @Test
    public void testRedirectPermanently() throws Exception
    {
        Sardine sardine = SardineFactory.begin();
        final String url = "http://sudo.ch/dav/anon/sardine";
        try
        {
            // Test extended redirect handler for PROPFIND
            List<DavResource> resources = sardine.list(url);
            assertNotNull(resources);
            resources = sardine.list(url);
            assertNotNull(resources);
        }
        catch (SardineException e)
        {
            // Should handle a 301 response transparently
            fail("Redirect handling failed");
        }
    }

suggested fix:
reset the redirect strategy before each request to sardine. 
DefaultRedirectStrategy is a statefull objet.

output with wire debug:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
2011/11/17 18:11:54:629 CET [DEBUG] ThreadSafeClientConnManager - Get 
connection: HttpRoute[{}->http://sudo.ch], timeout = 0
2011/11/17 18:11:54:634 CET [DEBUG] ConnPoolByRoute - 
[HttpRoute[{}->http://sudo.ch]] total kept alive: 0, total issued: 0, total 
allocated: 0 out of 20
2011/11/17 18:11:54:634 CET [DEBUG] ConnPoolByRoute - No free connections 
[HttpRoute[{}->http://sudo.ch]][null]
2011/11/17 18:11:54:634 CET [DEBUG] ConnPoolByRoute - Available capacity: 2 out 
of 2 [HttpRoute[{}->http://sudo.ch]][null]
2011/11/17 18:11:54:634 CET [DEBUG] ConnPoolByRoute - Creating new connection 
[HttpRoute[{}->http://sudo.ch]]
2011/11/17 18:11:54:770 CET [DEBUG] DefaultClientConnectionOperator - 
Connecting to sudo.ch:80
2011/11/17 18:11:54:808 CET [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2011/11/17 18:11:54:818 CET [DEBUG] RequestAuthCache - Auth cache not set in 
the context
2011/11/17 18:11:54:818 CET [DEBUG] DefaultHttpClient - Attempt 1 to execute 
request
2011/11/17 18:11:54:818 CET [DEBUG] DefaultClientConnection - Sending request: 
PROPFIND /dav/anon/sardine HTTP/1.1
2011/11/17 18:11:54:818 CET [DEBUG] wire - >> "PROPFIND /dav/anon/sardine 
HTTP/1.1[\r][\n]"
2011/11/17 18:11:54:819 CET [DEBUG] wire - >> "Depth: 1[\r][\n]"
2011/11/17 18:11:54:819 CET [DEBUG] wire - >> "Content-Type: text/xml; 
charset=utf-8[\r][\n]"
2011/11/17 18:11:54:819 CET [DEBUG] wire - >> "Content-Length: 99[\r][\n]"
2011/11/17 18:11:54:819 CET [DEBUG] wire - >> "Host: sudo.ch[\r][\n]"
2011/11/17 18:11:54:819 CET [DEBUG] wire - >> "Connection: Keep-Alive[\r][\n]"
2011/11/17 18:11:54:820 CET [DEBUG] wire - >> "User-Agent: 
Sardine/UNAVAILABLE[\r][\n]"
2011/11/17 18:11:54:820 CET [DEBUG] wire - >> "[\r][\n]"
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> PROPFIND /dav/anon/sardine 
HTTP/1.1
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> Depth: 1
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> Content-Type: text/xml; 
charset=utf-8
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> Content-Length: 99
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> Host: sudo.ch
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> Connection: Keep-Alive
2011/11/17 18:11:54:820 CET [DEBUG] headers - >> User-Agent: Sardine/UNAVAILABLE
2011/11/17 18:11:54:821 CET [DEBUG] wire - >> "<?xml version="1.0" 
encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>"
2011/11/17 18:11:54:880 CET [DEBUG] wire - << "HTTP/1.1 301 Moved 
Permanently[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Date: Thu, 17 Nov 2011 17:11:42 
GMT[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Server: Apache/2.2.21 (FreeBSD) 
DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 SVN/1.7.1 
mod_ssl/2.2.21 OpenSSL/1.0.0e[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Location: 
http://sudo.ch/dav/anon/sardine/[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Content-Length: 415[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Keep-Alive: timeout=5, 
max=100[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Connection: Keep-Alive[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "Content-Type: text/html; 
charset=iso-8859-1[\r][\n]"
2011/11/17 18:11:54:882 CET [DEBUG] wire - << "[\r][\n]"
2011/11/17 18:11:54:883 CET [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 301 Moved Permanently
2011/11/17 18:11:54:883 CET [DEBUG] headers - << HTTP/1.1 301 Moved Permanently
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Date: Thu, 17 Nov 2011 
17:11:42 GMT
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Server: Apache/2.2.21 
(FreeBSD) DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 
SVN/1.7.1 mod_ssl/2.2.21 OpenSSL/1.0.0e
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Location: 
http://sudo.ch/dav/anon/sardine/
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Content-Length: 415
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Keep-Alive: timeout=5, max=100
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Connection: Keep-Alive
2011/11/17 18:11:54:883 CET [DEBUG] headers - << Content-Type: text/html; 
charset=iso-8859-1
2011/11/17 18:11:54:887 CET [DEBUG] DefaultHttpClient - Connection can be kept 
alive for 5000 MILLISECONDS
2011/11/17 18:11:54:888 CET [DEBUG] DefaultHttpClient - Redirecting to 
'http://sudo.ch/dav/anon/sardine/' via HttpRoute[{}->http://sudo.ch]
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<!DOCTYPE HTML PUBLIC 
"-//IETF//DTD HTML 2.0//EN">[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<html><head>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<title>301 Moved 
Permanently</title>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "</head><body>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<h1>Moved Permanently</h1>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<p>The document has moved <a 
href="http://sudo.ch/dav/anon/sardine/">here</a>.</p>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<hr>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "<address>Apache/2.2.21 (FreeBSD) 
DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 SVN/1.7.1 
mod_ssl/2.2.21 OpenSSL/1.0.0e Server at sudo.ch Port 80</address>[\n]"
2011/11/17 18:11:54:889 CET [DEBUG] wire - << "</body></html>[\n]"
2011/11/17 18:11:54:890 CET [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2011/11/17 18:11:54:890 CET [DEBUG] RequestAuthCache - Auth cache not set in 
the context
2011/11/17 18:11:54:890 CET [DEBUG] DefaultHttpClient - Attempt 2 to execute 
request
2011/11/17 18:11:54:890 CET [DEBUG] DefaultClientConnection - Sending request: 
PROPFIND /dav/anon/sardine/ HTTP/1.1
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "PROPFIND /dav/anon/sardine/ 
HTTP/1.1[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "Depth: 1[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "Content-Type: text/xml; 
charset=utf-8[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "Content-Length: 0[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "Host: sudo.ch[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "Connection: Keep-Alive[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "User-Agent: 
Sardine/UNAVAILABLE[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] wire - >> "[\r][\n]"
2011/11/17 18:11:54:890 CET [DEBUG] headers - >> PROPFIND /dav/anon/sardine/ 
HTTP/1.1
2011/11/17 18:11:54:890 CET [DEBUG] headers - >> Depth: 1
2011/11/17 18:11:54:890 CET [DEBUG] headers - >> Content-Type: text/xml; 
charset=utf-8
2011/11/17 18:11:54:891 CET [DEBUG] headers - >> Content-Length: 0
2011/11/17 18:11:54:891 CET [DEBUG] headers - >> Host: sudo.ch
2011/11/17 18:11:54:891 CET [DEBUG] headers - >> Connection: Keep-Alive
2011/11/17 18:11:54:891 CET [DEBUG] headers - >> User-Agent: Sardine/UNAVAILABLE
2011/11/17 18:11:54:964 CET [DEBUG] wire - << "HTTP/1.1 207 
Multi-Status[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Date: Thu, 17 Nov 2011 17:11:42 
GMT[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Server: Apache/2.2.21 (FreeBSD) 
DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 SVN/1.7.1 
mod_ssl/2.2.21 OpenSSL/1.0.0e[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Vary: Accept-Encoding[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Content-Length: 5841[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Keep-Alive: timeout=5, 
max=99[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Connection: Keep-Alive[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "Content-Type: text/xml; 
charset="utf-8"[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] wire - << "[\r][\n]"
2011/11/17 18:11:54:965 CET [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 207 Multi-Status
2011/11/17 18:11:54:965 CET [DEBUG] headers - << HTTP/1.1 207 Multi-Status
2011/11/17 18:11:54:965 CET [DEBUG] headers - << Date: Thu, 17 Nov 2011 
17:11:42 GMT
2011/11/17 18:11:54:965 CET [DEBUG] headers - << Server: Apache/2.2.21 
(FreeBSD) DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 
SVN/1.7.1 mod_ssl/2.2.21 OpenSSL/1.0.0e
2011/11/17 18:11:54:965 CET [DEBUG] headers - << Vary: Accept-Encoding
2011/11/17 18:11:54:965 CET [DEBUG] headers - << Content-Length: 5841
2011/11/17 18:11:54:966 CET [DEBUG] headers - << Keep-Alive: timeout=5, max=99
2011/11/17 18:11:54:966 CET [DEBUG] headers - << Connection: Keep-Alive
2011/11/17 18:11:54:966 CET [DEBUG] headers - << Content-Type: text/xml; 
charset="utf-8"
2011/11/17 18:11:54:966 CET [DEBUG] DefaultHttpClient - Connection can be kept 
alive for 5000 MILLISECONDS
2011/11/17 18:11:54:984 CET [DEBUG] wire - << "<"
2011/11/17 18:11:54:984 CET [DEBUG] wire - << "?"
2011/11/17 18:11:54:984 CET [DEBUG] wire - << "x"
2011/11/17 18:11:54:984 CET [DEBUG] wire - << "m"
2011/11/17 18:11:54:985 CET [DEBUG] wire - << "l version="1.0" encoding="ut"
2011/11/17 18:11:54:988 CET [DEBUG] wire - << "f"
2011/11/17 18:11:54:988 CET [DEBUG] wire - << "-"
2011/11/17 18:11:54:988 CET [DEBUG] wire - << "8"
2011/11/17 18:11:54:988 CET [DEBUG] wire - << """
2011/11/17 18:11:54:988 CET [DEBUG] wire - << "?"
2011/11/17 18:11:54:988 CET [DEBUG] wire - << ">"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:multistatus 
xmlns:D="DAV:">[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:response xmlns:lp1="DAV:" 
xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" 
xmlns:lp2="http://apache.org/dav/props/">[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << 
"<D:href>/dav/anon/sardine/</D:href>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:propstat>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:prop>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << 
"<lp1:resourcetype><D:collection/></lp1:resourcetype>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << 
"<lp1:creationdate>2011-11-17T17:05:47Z</lp1:creationdate>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<lp1:getlastmodified>Thu, 17 Nov 
2011 17:05:47 GMT</lp1:getlastmodified>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << 
"<lp1:getetag>"1767a-200-4b1f13b4d50c0"</lp1:getetag>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:supportedlock>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:989 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << 
"<D:lockscope><D:shared/></D:lockscope>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "</D:supportedlock>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "<D:lockdiscovery/>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << 
"<D:getcontenttype>httpd/unix-directory</D:getcontenttype>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "</D:prop>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "<D:status>HTTP/1.1 200 
OK</D:status>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "</D:propstat>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "</D:response>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "<D:response xmlns:lp1="DAV:" 
xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" 
xmlns:lp2="http://apache.org/dav/props/">[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << 
"<D:href>/dav/anon/sardine/single/</D:href>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "<D:propstat>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "<D:prop>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << 
"<lp1:resourcetype><D:collection/></lp1:resourcetype>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << 
"<lp1:creationdate>2011-04-01T14:51:48Z</lp1:creationdate>[\n]"
2011/11/17 18:11:54:990 CET [DEBUG] wire - << "<lp1:getlastmodified>Fri, 01 Apr 
2011 14:51:48 GMT</lp1:getlastmodified>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << 
"<lp1:getetag>"17685-200-49fdc8ca3a900"</lp1:getetag>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "<D:supportedlock>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << 
"<D:lockscope><D:shared/></D:lockscope>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "</D:supportedlock>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "<D:lockdiscovery/>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << 
"<D:getcontenttype>httpd/unix-directory</D:getcontenttype>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "</D:prop>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "<D:status>HTTP/1.1 200 
OK</D:status>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "</D:propstat>[\n]"
2011/11/17 18:11:54:991 CET [DEBUG] wire - << "</D:response>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<D:response xmlns:lp1="DAV:" 
xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" 
xmlns:lp2="http://apache.org/dav/props/">[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<D:href>/dav/anon/sardine/multiple/</D:href>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<D:propstat>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<D:prop>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<lp1:resourcetype><D:collection/></lp1:resourcetype>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<lp1:creationdate>2011-06-23T08:46:02Z</lp1:creationdate>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<lp1:getlastmodified>Thu, 23 Jun 
2011 08:46:02 GMT</lp1:getlastmodified>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<lp1:getetag>"1767b-200-4a65d1d626680"</lp1:getetag>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<D:supportedlock>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<D:lockscope><D:shared/></D:lockscope>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:992 CET [DEBUG] wire - << "</D:supportedlock>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:lockdiscovery/>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << 
"<D:getcontenttype>httpd/unix-directory</D:getcontenttype>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "</D:prop>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:status>HTTP/1.1 200 
OK</D:status>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "</D:propstat>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "</D:response>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:response xmlns:lp1="DAV:" 
xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" 
xmlns:lp2="http://apache.org/dav/props/">[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << 
"<D:href>/dav/anon/sardine/7a5c15a4-916b-41d8-90af-5fbe0863afe5</D:href>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:propstat>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:prop>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<lp1:resourcetype/>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << 
"<lp1:creationdate>2011-05-30T13:28:26Z</lp1:creationdate>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << 
"<lp1:getcontentlength>2</lp1:getcontentlength>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<lp1:getlastmodified>Mon, 30 May 
2011 13:28:26 GMT</lp1:getlastmodified>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << 
"<lp1:getetag>"1760b-2-4a47e43225280"</lp1:getetag>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << 
"<lp2:executable>F</lp2:executable>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:supportedlock>[\n]"
2011/11/17 18:11:54:993 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:lockscope><D:shared/></D:lockscope>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:supportedlock>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:lockdiscovery><D:activelock>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "<D:depth>infinity</D:depth>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:timeout>Infinite</D:timeout>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "<D:locktoken>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << 
"<D:href>opaquelocktoken:0d3cadb3-c08a-e011-b81d-001a4bcce768</D:href>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:locktoken>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:activelock>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:lockdiscovery>[\n]"
2011/11/17 18:11:54:994 CET [DEBUG] wire - << "</D:prop>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<D:status>HTTP/1.1 200 
OK</D:status>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "</D:propstat>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "</D:response>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<D:response xmlns:lp1="DAV:" 
xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" 
xmlns:lp2="http://apache.org/dav/props/">[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<D:href>/dav/anon/sardine/5c0dc396-3aed-40b3-a4b9-1182d655b9bd</D:href>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<D:propstat>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<D:prop>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<lp1:resourcetype/>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<lp1:creationdate>2011-05-30T13:29:15Z</lp1:creationdate>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<lp1:getcontentlength>2</lp1:getcontentlength>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<lp1:getlastmodified>Mon, 30 May 
2011 13:29:15 GMT</lp1:getlastmodified>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<lp1:getetag>"1760c-2-4a47e460e00c0"</lp1:getetag>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<lp2:executable>F</lp2:executable>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<D:supportedlock>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:995 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:lockscope><D:shared/></D:lockscope>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:supportedlock>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:lockdiscovery><D:activelock>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "<D:depth>infinity</D:depth>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:timeout>Infinite</D:timeout>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "<D:locktoken>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << 
"<D:href>opaquelocktoken:0c0699f4-c08a-e011-b81d-001a4bcce768</D:href>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:locktoken>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:activelock>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:lockdiscovery>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:prop>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "<D:status>HTTP/1.1 200 
OK</D:status>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:propstat>[\n]"
2011/11/17 18:11:54:996 CET [DEBUG] wire - << "</D:response>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<D:response xmlns:ns0="DAV:" 
xmlns:ns1="SAR:" xmlns:ns2="hello" xmlns:ns3="http://my.namespace.com" 
xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/" 
xmlns:lp2="http://apache.org/dav/props/">[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<D:href>/dav/anon/sardine/metadata.txt</D:href>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<D:propstat>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<D:prop>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<ns1:mykey>my&value2</ns1:mykey>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<ns2:mykey>my<value3</ns2:mykey>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<lp1:resourcetype/>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<lp1:creationdate>2011-11-17T16:49:46Z</lp1:creationdate>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<lp1:getcontentlength>5</lp1:getcontentlength>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<lp1:getlastmodified>Thu, 17 Nov 
2011 16:49:46 GMT</lp1:getlastmodified>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<lp1:getetag>"17b5b-5-4b1f102059e80"</lp1:getetag>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<lp2:executable>F</lp2:executable>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<D:supportedlock>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<D:lockscope><D:exclusive/></D:lockscope>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << "<D:lockentry>[\n]"
2011/11/17 18:11:54:997 CET [DEBUG] wire - << 
"<D:lockscope><D:shared/></D:lockscope>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << 
"<D:locktype><D:write/></D:locktype>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "</D:lockentry>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "</D:supportedlock>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "<D:lockdiscovery/>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << 
"<D:getcontenttype>text/plain</D:getcontenttype>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "</D:prop>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "<D:status>HTTP/1.1 200 
OK</D:status>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "</D:propstat>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "</D:response>[\n]"
2011/11/17 18:11:54:998 CET [DEBUG] wire - << "</D:multistatus>[\n]"
2011/11/17 18:11:55:020 CET [DEBUG] ThreadSafeClientConnManager - Released 
connection is reusable.
2011/11/17 18:11:55:020 CET [DEBUG] ConnPoolByRoute - Releasing connection 
[HttpRoute[{}->http://sudo.ch]][null]
2011/11/17 18:11:55:020 CET [DEBUG] ConnPoolByRoute - Pooling connection 
[HttpRoute[{}->http://sudo.ch]][null]; keep alive for 5000 MILLISECONDS
2011/11/17 18:11:55:021 CET [DEBUG] ConnPoolByRoute - Notifying no-one, there 
are no waiting threads
2011/11/17 18:11:55:028 CET [DEBUG] ThreadSafeClientConnManager - Get 
connection: HttpRoute[{}->http://sudo.ch], timeout = 0
2011/11/17 18:11:55:028 CET [DEBUG] ConnPoolByRoute - 
[HttpRoute[{}->http://sudo.ch]] total kept alive: 1, total issued: 0, total 
allocated: 1 out of 20
2011/11/17 18:11:55:028 CET [DEBUG] ConnPoolByRoute - Getting free connection 
[HttpRoute[{}->http://sudo.ch]][null]
2011/11/17 18:11:55:028 CET [DEBUG] DefaultHttpClient - Stale connection check
2011/11/17 18:11:55:029 CET [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2011/11/17 18:11:55:029 CET [DEBUG] RequestAuthCache - Auth cache not set in 
the context
2011/11/17 18:11:55:029 CET [DEBUG] DefaultHttpClient - Attempt 1 to execute 
request
2011/11/17 18:11:55:029 CET [DEBUG] DefaultClientConnection - Sending request: 
PROPFIND /dav/anon/sardine HTTP/1.1
2011/11/17 18:11:55:029 CET [DEBUG] wire - >> "PROPFIND /dav/anon/sardine 
HTTP/1.1[\r][\n]"
2011/11/17 18:11:55:029 CET [DEBUG] wire - >> "Depth: 1[\r][\n]"
2011/11/17 18:11:55:029 CET [DEBUG] wire - >> "Content-Type: text/xml; 
charset=utf-8[\r][\n]"
2011/11/17 18:11:55:029 CET [DEBUG] wire - >> "Content-Length: 99[\r][\n]"
2011/11/17 18:11:55:030 CET [DEBUG] wire - >> "Host: sudo.ch[\r][\n]"
2011/11/17 18:11:55:030 CET [DEBUG] wire - >> "Connection: Keep-Alive[\r][\n]"
2011/11/17 18:11:55:030 CET [DEBUG] wire - >> "User-Agent: 
Sardine/UNAVAILABLE[\r][\n]"
2011/11/17 18:11:55:030 CET [DEBUG] wire - >> "[\r][\n]"
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> PROPFIND /dav/anon/sardine 
HTTP/1.1
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> Depth: 1
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> Content-Type: text/xml; 
charset=utf-8
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> Content-Length: 99
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> Host: sudo.ch
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> Connection: Keep-Alive
2011/11/17 18:11:55:030 CET [DEBUG] headers - >> User-Agent: Sardine/UNAVAILABLE
2011/11/17 18:11:55:030 CET [DEBUG] wire - >> "<?xml version="1.0" 
encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>"
2011/11/17 18:11:55:053 CET [DEBUG] wire - << "HTTP/1.1 301 Moved 
Permanently[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Date: Thu, 17 Nov 2011 17:11:42 
GMT[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Server: Apache/2.2.21 (FreeBSD) 
DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 SVN/1.7.1 
mod_ssl/2.2.21 OpenSSL/1.0.0e[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Location: 
http://sudo.ch/dav/anon/sardine/[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Content-Length: 415[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Keep-Alive: timeout=5, 
max=98[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Connection: Keep-Alive[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "Content-Type: text/html; 
charset=iso-8859-1[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] wire - << "[\r][\n]"
2011/11/17 18:11:55:054 CET [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 301 Moved Permanently
2011/11/17 18:11:55:055 CET [DEBUG] headers - << HTTP/1.1 301 Moved Permanently
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Date: Thu, 17 Nov 2011 
17:11:42 GMT
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Server: Apache/2.2.21 
(FreeBSD) DAV/2 PHP/5.3.8 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 
SVN/1.7.1 mod_ssl/2.2.21 OpenSSL/1.0.0e
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Location: 
http://sudo.ch/dav/anon/sardine/
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Content-Length: 415
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Keep-Alive: timeout=5, max=98
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Connection: Keep-Alive
2011/11/17 18:11:55:055 CET [DEBUG] headers - << Content-Type: text/html; 
charset=iso-8859-1
2011/11/17 18:11:55:055 CET [DEBUG] DefaultHttpClient - Connection can be kept 
alive for 5000 MILLISECONDS
2011/11/17 18:11:55:056 CET [DEBUG] DefaultClientConnection - Connection shut 
down
2011/11/17 18:11:55:056 CET [DEBUG] ThreadSafeClientConnManager - Released 
connection is not reusable.
2011/11/17 18:11:55:056 CET [DEBUG] ConnPoolByRoute - Releasing connection 
[HttpRoute[{}->http://sudo.ch]][null]
2011/11/17 18:11:55:056 CET [DEBUG] ConnPoolByRoute - Notifying no-one, there 
are no waiting threads

Original comment by tch...@gmail.com on 17 Nov 2011 at 5:17

GoogleCodeExporter commented 9 years ago
Calling 

this.context.removeAttribute(DefaultRedirectStrategy.REDIRECT_LOCATIONS);

in the various execute() methods of Sardine seems to solve the issue.

Original comment by tch...@gmail.com on 17 Nov 2011 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by dkocher@sudo.ch on 18 Nov 2011 at 9:01

GoogleCodeExporter commented 9 years ago
Either we clear the attribute before every request or don't reuse the redirect 
handler.

Original comment by dkocher@sudo.ch on 18 Nov 2011 at 9:10

GoogleCodeExporter commented 9 years ago
In r308.

Original comment by dkocher@sudo.ch on 18 Nov 2011 at 9:16