Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1577

Cannot create new user through userManager neither add custom properties to user or group

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Jackrabbit User Manager 2.0.4
    • JCR
    • 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

          Activity

            People

              justinedelson Justin Edelson
              davide Davide Giannella
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: