Thanks Felix. You're right, sort of an edge case where we need a set of user administration screens but for managing externally registered users to allow for user pwd resets, profile updates, etc by an administrator. My thought was to have a protected sling UI on author server (or even a standalone web app on tomcat) but making sling calls to jackrabbit user manager on publish instance via ajax queries or apache commons httpclient.
I will avoid the tidy servlet and use the .2.json or .infinity.json depending on what data is needed. Thanks again. Sarwar On Sat, Apr 14, 2012 at 12:21 PM, Felix Meschberger <[email protected]>wrote: > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Day Communique" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/day-communique?hl=en. > >
