Hi David,

You are correct in the need to enable indexing of XML files for XPath
searches to work, but you are actually pointing your XPath search to a WAR
file, which is a ZIP variant (XPath searches the indexed contents of XML
files).
However, I noticed that you reference the "last downloaded by" field - are
you meaning to address the download statistics on this WAR file, or is it a
field in a different XML?

On Thu, Jul 19, 2012 at 2:12 PM, davide <[email protected]> wrote:

> Artifactory version 2.6.1.
>
> I am trying the following xpath search to search in artifacts' metadata:
>
>
> http://localhost:8080/artifactory/api/search/xpath?name=MyFile.war&metadata=1&xpath=//lastDownloadedBy&val=admin
>
> But always receive an error 400 "Bad Request" whatever I try.
>
> I read here:
>
> http://wiki.jfrog.org/confluence/display/RTF/POM+and+XML+Search
>
> that xpath searches are not enabled by default, so have edited the
> artifactory.system.properties file to enable this, and restarted
> Artifactory, and uploaded a new test artifact, but still get the same
> result.
>
> This feature is not noted in the documentation as requiring Artifactory
> Pro.
>
> Thanks.
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Error-400-Bad-Request-on-xpath-Search-tp7578118.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to