You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carl Hall (JIRA)" <ji...@apache.org> on 2012/06/08 01:07:23 UTC
[jira] [Resolved] (SLING-2465) RequestDispatcher throws NullPointer
Exception when forwarding to /system/userManager/user.create.html
[ https://issues.apache.org/jira/browse/SLING-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Hall resolved SLING-2465.
------------------------------
Resolution: Fixed
Fix Version/s: JCR Jackrabbit User Manager 2.2.2
Eric Norman shared an approach on the mail list that outlines getting the user path more cleanly. I have applied his patch in revision 1347825.
> RequestDispatcher throws NullPointer Exception when forwarding to /system/userManager/user.create.html
> ------------------------------------------------------------------------------------------------------
>
> Key: SLING-2465
> URL: https://issues.apache.org/jira/browse/SLING-2465
> Project: Sling
> Issue Type: Bug
> Components: JCR, Servlets
> Affects Versions: JCR Jackrabbit User Manager 2.2.0
> Environment: Xubuntu
> Reporter: Chris Papademos
> Assignee: Carl Hall
> Priority: Critical
> Labels: Create, Request, RequestHandler, User, servlet, usermanager
> Fix For: JCR Jackrabbit User Manager 2.2.2
>
>
> @Component
> @Service(Servlet.class)
> @Properties({
> @Property(name = "service.description", value = "Creates a new User and sends an Activation Email to the given Address."),
> @Property(name = "service.vendor", value = "IPVS"),
> @Property(name = "sling.servlet.methods", value = "POST"),
> @Property(name = "sling.servlet.paths", value = "/satlab/user/create") })
> public class UserCreateServlet extends SlingAllMethodsServlet {
> @Override
> protected void doPost(SlingHttpServletRequest request,
> SlingHttpServletResponse response) throws ServletException,
> IOException {
>
> // Redirect Request to the Sling CreateUserServlet.
>
> RequestDispatcher dispatcher = request
> .getRequestDispatcher("/system/userManager/user.create.html");
> dispatcher.forward(request, response);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira