Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JCR Jackrabbit User Manager 2.0.4
-
None
Description
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.
Attachments
Issue Links
- is related to
-
SLING-6747 User Manager: Support setting nested user properties
- Closed