I am trying to deploy an artifact to my local instance of Artifactory using the REST API but have been unable to do so. I suspect that I have the artifact-to-be-deployed in the wrong location, but I can't figure out what location it is supposed to be in.
So in my root directory, I have the artifact (ivy.xml -- yes, I'm trying to deploy the ivy file directly) and a script which sends the PUT request: PUT /ext-releases-local2/org/apache/ant/ant-contrib/1.0b3/ivy.xml But this returns a '404 not found' error. I've also tried PUT /artifactory/ext-releases-local2/org/apache/ant/ant-contrib/1.0b3/ivy.xml This returns the error '500: Failed to save resource'. In the Artifactory log, the corresponding error is: 2011-02-02 13:18:36,855 [pool-1-thread-24] [WARN ] (o.a.c.x.EntityResolvingContentHandler:122) - Received the following error during xml parsing: 'Premature end of file.'. 2011-02-02 13:18:36,856 [pool-1-thread-24] [WARN ] (o.a.j.JcrServiceImpl:870) - Ignoring bad XML stream while importing '/repositories/ext-releases-local2/org/apache/ant/ant-contrib/1.0b3/ivy-1.0b3.xml/artifactory:xml': processing event: -1. 2011-02-02 13:18:36,857 [pool-1-thread-24] [ERROR] (o.a.w.s.RepoFilter :171) - Sending HTTP error code 500: Failed to save resource 'ext-releases-local2:org/apache/ant/ant-contrib/1.0b3/ivy-1.0b3.xml'. I am guessing that the 'Premature end of file' error is returned because I'm sending a null XML stream through to the server. Hence my suspicion that I have the file in the wrong place. I've tried locating the artifact at artifactory/ext-releases-local2/org/apache/ant/ant-contrib/1.0b3/ivy.xml and at ext-releases-local2/org/apache/ant/ant-contrib/1.0b3/ivy.xml on my client, but this also doesn't bring the desired result; I still can't deploy. What am I doing wrong? Thanks, Jerry -- View this message in context: http://forums.jfrog.org/Failure-deploying-artifact-through-API-tp5985955p5985955.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
