Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2043

Incorrect and confusing trace message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.14.2.Final, 2.0.0.Alpha10
    • 1.14.0.Final
    • HTTP
    • None

    Description

      org.wildfly.security.http.util.AggregateServerMechanismFactory

      has one incorrect trace message and one which could be more helpful:

      getMechanismNames has

      if (log.isTraceEnabled()) {
          log.tracef("No %s provided by factories in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), Arrays.toString(factories));
      }
      return names.toArray(new String[names.size()]);

      should that be

      if (log.isTraceEnabled()) {
      log.tracef("%s factories in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), Arrays.toString(factories));
      }
      return names.toArray(new String[names.size()]);

      ?

      Same message in createAuthenticationMechanism

      if (log.isTraceEnabled()) {
         log.tracef("No %s provided by factories in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), Arrays.toString(factories));
      }

      It would be useful if it supplied the mechanism e.g:

      if (log.isTraceEnabled()) {
      log.tracef("Mechanism %s not %s provided by factories in %s: %s", mechanism, HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), Arrays.toString(factories));
      }

       

       

      Attachments

        Activity

          People

            szaldana Sonia Zaldana (Inactive)
            mikeadouglass Mike Douglass
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: