On Mon, Jun 28, 2010 at 8:55 PM, Evgeny Goldin <[email protected]> wrote:

>
> Hi,
>
> When I try to use Spring 3 RestTemplate to call Artifactory REST API I
> always get 406 (Not Acceptable) even though I have Apache Commons
> HttpClient
> set with credentials. When I use HttpClient directly it works.
>
> Is there anybody else who experienced similar issue with Spring 3
> RestTemplate? I suspect it is buggy ..
>

I believe the Spring queries set a content-type header that is not accepted
by Artifactory's REST API and that's why you get a 406. Can you check with
one method that fails and let us know which one and what was the content
type value?


>
> Also, is there a way to configure Artifactory so that anonymous user can
> invoke any REST call without sending credentials? It didn't work for me
> even
> after I provided it a "delete" permissions.
> I understand it is a security bridge but it would be nice to disable a
> "privileged user" REST requirement just for a while.
>

Are you trying to issue a DELETE query as anonymous? If you gave the
anonymous user delete rights then it should work and it looks like a bug -
feel free to open an issue.


> Thank you!
>
>
>
> -----
> Best regards,
> Evgeny
> http://evgeny-goldin.com/
>
> --
> View this message in context:
> http://forums.jfrog.org/REST-API-returns-406-Not-Acceptable-when-working-with-Spring-3-RestTemplate-tp5231906p5231906.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to