Hi Sarwar

Am 14.04.2012 um 08:47 schrieb Sarwar Bhuiyan:

> Hi all,
> 
> I came across the Jackrabbit User Manager bundle (
> http://sling.apache.org/site/managing-users-and-groups-jackrabbitusermanager.html)
> and thought I'd try and install the jackrabbit user manager 2.2.0 bundle on
> CQ 5.4.  I apologize for posting to the sling users group if this is not
> appropriate.

Its probably kind of an edge case ;-)

> 
> Upon trying out
> 
>> curl -u admin:admin
> http://localhost:4502/system/userManager/user.tidy.1.json
> 
> I got an error like this:
> 
> The requested URL /system/userManager/user.tidy.1.json resulted in an error
> in com.day.cq.commons.servlets.TidyJsonServlet.
> 
> *Exception:*
> 
> javax.servlet.ServletException: Resource not adaptable to node:
> /system/userManager/user
> 
> at
> com.day.cq.commons.servlets.TidyJsonServlet.doGet(TidyJsonServlet.java:73)

Looks like the TidyJsonServlet is registered to handle JSON requests whose 
first selector is "tidy". So instead of the Sling user manager servlet the 
TidyJsonServlet is called.

I think this is kind of a problem of the CQ system you are using.

> 
> 
> When I change the request to be:
> 
>> curl -u admin:admin http://localhost:4502/system/userManager/user.1.json
> 
> I get the correct JSON response.
> 
> I have not touched or upgraded any of the other bundles in CQ 5.4.  My
> question is, what about the TidyServlet is breaking in that request?  Am I
> missing some newer sling bundle which is required by jackrabbit user
> manager 2.2.0?
> 
> By the way I tried running the curl command (with the tidy selector) on a
> standalone sling instance and that worked with no problems.

Yes, because standalone Sling does not have the CQ TidyJsonServlet so the 
expected user manager servlet is called.

> 
> Any help or direction would be greatly appreciated.

The only simple short-term solution I have to this is to not use the tidy 
selector ...

Regards
Felix

Reply via email to