Hi,
The problem is that you're trying to send the configuration parameters
(path, repo) in the request body, but they are actually meant to be added
as request parameters.
On Sat, Jul 28, 2012 at 12:34 PM, sbhootna <[email protected]> wrote:
> Hi,
>
> I am running below command for Import Repository Content..using curl POST
>
> curl -X POST -D- -u admin:***** -H "Content-Type: text/xml" -d
> "path=/home/username/test1/&repo=test-
> repo-local" http://hostname/artifactory/api/import/repositories?
>
> below is the response, PLEASE let me know what wrong is there in the cmd...
>
> HTTP/1.1 200 OK
> Date: Sat, 28 Jul 2012 09:14:38 GMT
> Server: Apache
> Vary: Accept-Encoding
> Transfer-Encoding: chunked
> Content-Type: text/plain;charset=utf-8
>
> Starting Repositories Import of All repositories from null
> 400 : Source directory path may not be empty.
>
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Import-Repositories-method-not-working-tp7578142.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