You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Geoff Capper <gc...@bigpond.com> on 2014/12/01 05:31:36 UTC
Permissions
Hi All,
I'm having trouble updating a node. I have things set up so anonymous
access is not allowed. My "logged in" user can create a node in the
system, but when it comes time to update a node I get:
org.apache.http.NoHttpResponseException: mysite.com:8080 failed to respond
at the client end. On the server the logs show the system responding
with a 401 and requesting credentials (I assume), but nothing further
happens.
I have the user's permissions set as jcr:all, from the node I want to
update downward e.g.: /content/orgNode.modifyAce.json with the permissions.
I've included the log entries below. Can anyone offer any hints?
Thanks,
Geoff
logs/request.log 01/Dec/2014:03:49:23 +0000 [19] -> POST
/content/orgNode HTTP/1.1
org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver:
Anonymous access not allowed by configuration - requesting credentials
logs/request.log 01/Dec/2014:03:49:23 +0000 [19] <- 401 - 333ms
logs/access.log 120.146.254.71 - - 01/Dec/2014:03:49:23 +0000 "POST
/content/orgNode HTTP/1.1" 401 - "-" "Apache-HttpClient/4.3.3 (java 1.5)"
Re: Permissions
Posted by Geoff Capper <gc...@bigpond.com>.
Hi Bertrand,
Thanks for the suggestion. I am using httpclient in my client, I will
try out with curl to see where the problem lies.
Thanks,
Geoff
On 1/12/2014 7:09 PM, Bertrand Delacretaz wrote:
> Hi,
>
> On Mon, Dec 1, 2014 at 5:31 AM, Geoff Capper <gc...@bigpond.com> wrote:
>> org.apache.http.NoHttpResponseException
> Looks like something coming from httpclient libraries, are you using
> this in your client? Or somewhere in your server-side code? If yes
> your client code might be failing to supply credentials.
>
> You might want to try using curl as a client, to see exactly what's happening.
>
> -Bertrand
>
>
Re: Permissions
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Mon, Dec 1, 2014 at 5:31 AM, Geoff Capper <gc...@bigpond.com> wrote:
> org.apache.http.NoHttpResponseException
Looks like something coming from httpclient libraries, are you using
this in your client? Or somewhere in your server-side code? If yes
your client code might be failing to supply credentials.
You might want to try using curl as a client, to see exactly what's happening.
-Bertrand