[ https://issues.apache.org/jira/browse/SLING-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Edelson resolved SLING-1577. ----------------------------------- Fix Version/s: JCR Jackrabbit User Manager 2.0.6 Resolution: Fixed fixed in r958690 comment added in SLING-920 about adding -enableassertions in the Hudson build. This would have caught this issue sooner. > Cannot create new user through userManager neither add custom properties to > user or group > ----------------------------------------------------------------------------------------- > > Key: SLING-1577 > URL: https://issues.apache.org/jira/browse/SLING-1577 > Project: Sling > Issue Type: Bug > Components: JCR > Affects Versions: JCR Jackrabbit User Manager 2.0.4 > Reporter: Davide Maestroni > Assignee: Justin Edelson > Fix For: JCR Jackrabbit User Manager 2.0.6 > > > When trying to create a new user by calling: > curl -F:name=newUser -Fpwd=password -FpwdConfirm=password > http://localhost:8080/sling/system/userManager/user.create.html > an assertion exception is thrown: > <html> > <head> > <title>Error while processing /system/userManager/user</title> > </head> > <body> > <h1>Error while processing /system/userManager/user</h1> > <table> > <tbody> > <tr> > <td>Status</td> > <td><div id="Status">500</div></td> > </tr> > <tr> > <td>Message</td> > <td><div id="Message">java.lang.AssertionError</div></td> > </tr> > <tr> > <td>Location</td> > <td><a href="/cms/system/userManager/user" > id="Location">/cms/system/userManager/user</a></td> > </tr> > <tr> > <td>Parent Location</td> > <td><a href="/cms/system/userManager" > id="ParentLocation">/cms/system/userManager</a></td> > </tr> > <tr> > <td>Path</td> > <td><div id="Path">/system/userManager/user</div></td> > </tr> > <tr> > <td>Referer</td> > <td><a href="" id="Referer"></a></td> > </tr> > <tr> > <td>ChangeLog</td> > <td><div id="ChangeLog"><pre></pre></div></td> > </tr> > </tbody> > </table> > <p><a href="">Go Back</a></p> > <p><a href="/cms/system/userManager/user">Modified Resource</a></p> > <p><a href="/cms/system/userManager">Parent of Modified Resource</a></p> > </body> > </html> > By debugging the request I found out that the assertion is thrown in the > constructor of the class > org.apache.sling.jackrabbit.usermanager.impl.helper.RequestProperty: > assert path.startsWith("/"); > where the path passed as parameter is "pwdConfirm". > The same problem arises when a custom property is added to other requests to > the userManager (such as group creation or update) and such property is > passed as parameter to the RequestProperty constructor. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.