Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-1042

Impossible to change user profile loginName, fullname, password

Bulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10.2, 2.10.3
    • 2.10.3
    • Core & storage
    • None

    Description

      Just try to change the logged in users profile, e. g. the password.

      The method
      UserManager#validateProfile(WikiContext, UserProfile)
      checks for duplicate entries but this check fails on the user profile that should be changed itself. If you change your password the manager finds an user profile with the same email adress and fails.
      The DefaultUserProfile#equals(Object) method should only test the uuid attribute and not the other attributes. This would be the best solution i think, but this could break other code that looks in maps an sets, for example.

      Or just check for equality of the uuid in UserManager#validateProfile(WikiContext, UserProfile).

      I would like to help here and with other open issues and can send patches.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            metskem Harry Metske
            eric.krausser Eric Kraußer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment