Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14863

Undertow o.w.e.undertow.security.AccountImpl setRoles param self-assign

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 24.0.0.Final
    • 24.0.0.Beta1
    • Web (Undertow)
    • None

      The method "setRoles" calls on a parameter instead of the self-named instance variable.
      https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/undertow/src/main/java/org/wildfly/extension/undertow/security/AccountImpl.java#L80

      void setRoles(final Set<String> roles) {
              this.roles.clear();
              roles.addAll(roles);
          }
      

      must be

      void setRoles(final Set<String> roles) {
              this.roles.clear();
              this.roles.addAll(roles);
          }
      

              xf01213 Boris Unckel (Inactive)
              xf01213 Boris Unckel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: