Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6469

Users created with REST do not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.12.5
    • Fix Version/s: Backlog
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      CentOS 6.5 x86_64

      Description

      Sort of the opposite of NMS-6030, if I create a user with the REST API the user is not available for login immediately after creation. If I log in to the web UI as an admin and click the edit button for the new user, then click the Finish button that's enough to make the account work. Restarting OpenNMS also makes the account work. Touching the users and groups XML files does not help.

      I see that the UserRestService uses UserManager.save(OnmsUser user) rather than UserManager.saveUser(String name, User details) like all the web UI stuff does, but I hacked on UserRestService to convert the OnmsUser instance to a User instance and changed it to use saveUser but that didn't fix it. (I also added encryption to the supplied password while I was in there but I'll submit that as a separate enhancement).

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              schlend David Schlenk
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: