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

PropertiesSecurityRealm does not catch DecodeException

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Use clear-password property file with MD5 passwords configuration. For example: (tested with user1)

      #$REALM_NAME=UsersRoles$
      user1=password1
      user2=password2
      admin=admin
      hr=hr
      
      Show
      Use clear-password property file with MD5 passwords configuration. For example: (tested with user1) #$REALM_NAME=UsersRoles$ user1=password1 user2=password2 admin=admin hr=hr

      Description

      Following exception is not enclosed into Realm exception when problem with properties file occure:

      org.wildfly.security.util.DecodeException: ELY03007: Invalid hex character
      org.wildfly.security.util.NumericIterator$5.calc(NumericIterator.java:1074)
      org.wildfly.security.util.NumericIterator$5.hasNext(NumericIterator.java:1090)
      org.wildfly.security.util.ByteIterator.drainTo(ByteIterator.java:1153)
      org.wildfly.security.util.ByteIterator.drain(ByteIterator.java:1165)
      org.wildfly.security.auth.realm.LegacyPropertiesSecurityRealm$1.verifyEvidence(LegacyPropertiesSecurityRealm.java:171)
      org.wildfly.security.auth.server.ServerAuthenticationContext$NameAssignedState.verifyEvidence(ServerAuthenticationContext.java:1680)
      org.wildfly.security.auth.server.ServerAuthenticationContext.verifyEvidence(ServerAuthenticationContext.java:655)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  honza889 Jan Kalina
                  Reporter:
                  honza889 Jan Kalina
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: