Using WebDAV to Browse Repository

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using WebDAV to Browse Repository

jonnyt

I'm trying to build a process that browses (enumerates) our 3.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?

--
View this message in context: http://www.nabble.com/Using-WebDAV-to-Browse-Repository-tp23543037p23543037.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Using WebDAV to Browse Repository

Yoav Landman
Administrator
You are right - there's a bug with listing the root directory of a repo. It is already fixed on the trunk (http://issues.jfrog.org/jira/browse/RTFACT-1691).
Thanks for reporting this.

Yoav

On Thu, May 14, 2009 at 6:32 PM, jonnyt <[hidden email]> wrote:

I'm trying to build a process that browses (enumerates) our 3.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?

--
View this message in context: http://www.nabble.com/Using-WebDAV-to-Browse-Repository-tp23543037p23543037.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users