« Return to Thread: Using WebDAV to Browse Repository

Using WebDAV to Browse Repository

by jonnyt :: Rate this Message:

Reply to Author | View in Thread

I'm trying to build a process that browses (enumerates) our 2.0.0 repository via WebDAV, to perform certain automated functions.  (I'm assuming that WebDAV is the best way to do it).  The goal is to be able to walk through the tree of artifacts and fetch certain ones that are found.

However, I'm not clear on the exact URL to use and how the initial WebDAV command should be structured.  I had expected that pointing the WebDAV client code to http://hostname/artifactory/libs-releases-local/ and executing a PROPFIND command, I'd get a list of the top-level items in the repository, but instead there is an HTTP 500 response with the exception below:

java.lang.RuntimeException: The repository 'libs-releases-local' rejected the artifact 'libs-releases-local:' due to its include/exclude patterns settings.

I am using the Jackrabbit WebDAV client implementation in my code.  The PROPFIND method is being constructed as:

new PropFindMethod(propfindUri, DavConstants.PROPFIND_ALL_PROP, DavConstants.DEPTH_1)

where "propfindUri" is the URL I mentioned above.

Any suggestions on how to accomplish this?

 « Return to Thread: Using WebDAV to Browse Repository