Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-6290

security-url-realm plugin is not compatible with 2.7.1-01

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: Security, Support Tools
    • Labels:
      None

      Description

      Hi, I found out, that the latest version of security-url-realm plugin does not work with the latest version, because org.sonatype.security.usermanagement.User was extended by a new status field. Following method in org.sonatype.security.realms.url.UrlRealm

          private User toUser( String userId, boolean addDefaultRole )
          {
              String defaultRole = urlRealmConfiguration.getConfiguration().getDefaultRole();
              String emailDomain = urlRealmConfiguration.getConfiguration().getEmailDomain();
      
              DefaultUser user = new DefaultUser();
              user.setEmailAddress( userId + "@" + emailDomain );
              user.setName( userId );
              user.setSource( SOURCE );
              user.setUserId( userId );
      
              if ( addDefaultRole )
              {
                  user.addRole( new RoleIdentifier( SOURCE, defaultRole ) );
              }
      
              return user;
         }
      

      should contain

      user.setStatus(UserStatus.active);
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jboss-04 David Hladky
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title