"Depth not supported" error in log

Nov 9, 2012 at 7:26 AM

Hi All,

I have an SVN bridge at IIS referring to my TFS repo. For about a week it worked perfectly but suddenly stopped (looks like after a certain commit) and writes an error in the its log under iis (See below).  Is there any way to understand and fix the root cause?  or a workaround?  thanks.

Message  : Depth not supported:
Request  : PROPFIND /NetworX/Dev/FP501/visionSchedule/Web/visionExport.jsp HTTP/1.1
<?xml version="1.0" encoding="utf-16"?>
<propfind xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="DAV:">
  <prop>
    <lockdiscovery xmlns="DAV:" />
  </prop>
</propfind>

Exception:
   System.InvalidOperationException: Depth not supported:
   at SvnBridge.Handlers.PropFindHandler.GetFolderInfo(TFSSourceControlProvider sourceControlProvider, String depth, String path, Nullable`1 version, Boolean loadPropertiesFromFile)
   at SvnBridge.Handlers.PropFindHandler.WritePathResponse(TFSSourceControlProvider sourceControlProvider, String requestPath, String depth, PropData data, Stream outputStream)
   at SvnBridge.Handlers.PropFindHandler.HandleProp(TFSSourceControlProvider sourceControlProvider, String requestPath, String depthHeader, String labelHeader, PropData data, Stream outputStream)
   at SvnBridge.Handlers.PropFindHandler.Handle(IHttpContext context, TFSSourceControlProvider sourceControlProvider)
   at SvnBridge.Handlers.RequestHandlerBase.Handle(IHttpContext context, IPathParser pathParser, NetworkCredential credentials)
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection)
   at SvnBridgeServer.SvnBridgeHttpHandler.ProcessRequest(HttpContext context)

Stack Trace:
   at SvnBridge.Handlers.PropFindHandler.GetFolderInfo(TFSSourceControlProvider sourceControlProvider, String depth, String path, Nullable`1 version, Boolean loadPropertiesFromFile)
   at SvnBridge.Handlers.PropFindHandler.WritePathResponse(TFSSourceControlProvider sourceControlProvider, String requestPath, String depth, PropData data, Stream outputStream)
   at SvnBridge.Handlers.PropFindHandler.HandleProp(TFSSourceControlProvider sourceControlProvider, String requestPath, String depthHeader, String labelHeader, PropData data, Stream outputStream)
   at SvnBridge.Handlers.PropFindHandler.Handle(IHttpContext context, TFSSourceControlProvider sourceControlProvider)
   at SvnBridge.Handlers.RequestHandlerBase.Handle(IHttpContext context, IPathParser pathParser, NetworkCredential credentials)
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection)
   at SvnBridgeServer.SvnBridgeHttpHandler.ProcessRequest(HttpContext context)

Headers:

Connection: TE
Connection: Keep-Alive
Content-Length: 118
Content-Type: text/xml; charset="utf-8"
Accept-Encoding: gzip
Authorization: Basic Q09SUFxJdmFuLkthc2NoZW5rbzoxUTJ3M2U0cjV0
Host: 10.106.41.211:8081
TE: trailers
User-Agent: SVN/1.7.4 SVNKit/1.7.4-v1 (http://svnkit.com/) r9190_v20120510_1337
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

 

 

Nov 9, 2012 at 7:50 AM

All I can say is:

likely coincidentally (happened to stumble upon this requirement) fixed in my updated patchset:

commit 82168c438c6493921f03e1e8a3c4fd5a165b0033
Date:   Fri Oct 5 16:25:32 2012 +0200

    PROPFIND: should assume "Depth: infinity" as default when unspecified.

 

Haven't posted an update of my patchset tracker yet (want to do some more local testing).

Nov 9, 2012 at 10:56 AM

Hi am42, 

Looking forward to having your fix hopefully working and uploaded soon! Anyway, a lot of people behind me are waiting for this issue to go away, so may the force be with you! :)

Nov 19, 2012 at 9:44 AM

I just appended my current patchset to my tracker item, which contains a fix (hopefully) for this Depth issue.

Nov 19, 2012 at 5:50 PM

testing...