-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Low
-
None
-
Affects Version/s: 5.4.2
-
Component/s: Performance, Repository (Subversion)
-
Severity 3 - Minor
This is a minor but it might have a performance issue and want to report it here for us to check further. During SVN checkout, we noticed that the svnkit library attempts to do this anonymously and when the authentication fails, then it uses the supplied credentials in the repo config. With SVN debugging enabled, I can see the following:
Apr 18, 2014 11:25:38 PM org.apache.catalina.loader.WebappClassLoader findClass FINE: findClass(net.sf.hibernate.collection.BagCustomizer) Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINE: DEFAULT: socket output stream requested... Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINEST: READ HTTP/1.1 401 Authorization Required Date: Fri, 18 Apr 2014 15:25:38 GMT Server: Apache WWW-Authenticate: Basic realm="VisualSVN Server" Content-Length: 401 Keep-Alive: timeout=5, max=2000 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 Apr 18, 2014 11:25:38 PM org.apache.catalina.loader.WebappClassLoader findClass FINER: findClassInternal(net.sf.hibernate.collection.BagCustomizer) Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINE: DEFAULT: socket output stream requested... Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINE: DEFAULT: socket output stream requested... Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINEST: SENT OPTIONS /svn/junit/trunk HTTP/1.1 Host: sultan-pc User-Agent: SVN/1.7.6 SVNKit/1.7.6 (http://svnkit.com/) r9487_v20121029_2008 Keep-Alive: Connection: TE, Keep-Alive TE: trailers Authorization: Basic YWRtaW46YWRtaW4= Content-Length: 0 Accept-Encoding: gzip Content-Type: text/xml; charset="utf-8" DAV: http://subversion.tigris.org/xmlns/dav/svn/depth DAV: http://subversion.tigris.org/xmlns/dav/svn/mergeinfo DAV: http://subversion.tigris.org/xmlns/dav/svn/log-revprops Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINE: DEFAULT: socket output stream requested... Apr 18, 2014 11:25:38 PM org.apache.catalina.loader.WebappClassLoader findClass FINER: --> Passing on ClassNotFoundException Apr 18, 2014 11:25:38 PM org.apache.catalina.loader.WebappClassLoader loadClass FINE: Delegating to parent classloader at end: org.apache.catalina.loader.StandardClassLoader@421e6b1c Apr 18, 2014 11:25:38 PM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINEST: READ HTTP/1.1 200 OK Date: Fri, 18 Apr 2014 15:25:38 GMT Server: Apache DAV: 1,2 DAV: version-control,checkout,working-resource DAV: merge,baseline,activity,version-controlled-collection DAV: http://subversion.tigris.org/xmlns/dav/svn/depth DAV: http://subversion.tigris.org/xmlns/dav/svn/log-revprops DAV: http://subversion.tigris.org/xmlns/dav/svn/atomic-revprops DAV: http://subversion.tigris.org/xmlns/dav/svn/partial-replay DAV: http://subversion.tigris.org/xmlns/dav/svn/inherited-props DAV: http://subversion.tigris.org/xmlns/dav/svn/inline-props DAV: http://subversion.tigris.org/xmlns/dav/svn/reverse-file-revs DAV: http://subversion.tigris.org/xmlns/dav/svn/mergeinfo MS-Author-Via: DAV Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK,CHECKOUT Content-Length: 0 Cache-Control: max-age=0 Expires: Fri, 18 Apr 2014 15:25:38 GMT Keep-Alive: timeout=5, max=1999 Connection: Keep-Alive Content-Type: text/plain
As can be seen, it hits in to an authorization required error before doing the basic authentication