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

SASL property com.sun.security.sasl.digest.utf8 does not behave as default when its default value is explicitely configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.Beta7
    • 1.1.5.Final, 1.2.0.Beta6
    • None
    • None
    • Hide
      1. Add property com.sun.security.sasl.digest.utf8 and set to true to configurable-sasl-server-factory [1]
        elements.add(SimpleConfigurableSaslServerFactory.builder().withName(NAME).withSaslServerFactory("elytron")
                    .addProperty("com.sun.security.sasl.digest.utf8", "true")
                    .addFilter(SaslFilter.builder().withPatternFilter(saslMechanismName).build()).build());
        
      2. build wildfly-core: mvn clean install -DskipTests
      3. cd wildfly-core/testsuite/elytron
      4. mvn clean test -Dtest=DigestMd5MgmtSaslTestCase
        and you can see this failed tests:
        Unable to find source-code formatter for language: collapse. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
        Failed tests: 
          DigestMd5MgmtSaslTestCase.testCorrectDigestMechPasses:61->AbstractMgmtSaslTestBase.assertDigestMechPassWhoAmI:281->AbstractMgmtSaslTestBase.lambda$assertDigestMechPassWhoAmI$9:281->AbstractMgmtSaslTestBase.assertWhoAmI:244 The whoami operation failed - java.net.ConnectException: WFLYPRT0053: Could not connect to remote://127.0.0.1:10567. The connection failed
          DigestMd5MgmtSaslTestCase.testCorrectMechanismPasses:56->AbstractMgmtSaslTestBase.assertMechPassWhoAmI:276->AbstractMgmtSaslTestBase.lambda$assertMechPassWhoAmI$8:276->AbstractMgmtSaslTestBase.assertWhoAmI:244 The whoami operation failed - java.net.ConnectException: WFLYPRT0053: Could not connect to remote://127.0.0.1:10567. The connection failed
        

      [1] https://github.com/wildfly/wildfly-core/blob/3.0.4.Final/testsuite/elytron/src/test/java/org/wildfly/test/integration/elytron/sasl/mgmt/AbstractMgmtSaslTestBase.java#L352

      Show
      Add property com.sun.security.sasl.digest.utf8 and set to true to configurable-sasl-server-factory [1] elements.add(SimpleConfigurableSaslServerFactory.builder().withName(NAME).withSaslServerFactory( "elytron" ) .addProperty( "com.sun.security.sasl.digest.utf8" , " true " ) .addFilter(SaslFilter.builder().withPatternFilter(saslMechanismName).build()).build()); build wildfly-core: mvn clean install -DskipTests cd wildfly-core/testsuite/elytron mvn clean test -Dtest=DigestMd5MgmtSaslTestCase and you can see this failed tests: Unable to find source-code formatter for language: collapse. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml Failed tests: DigestMd5MgmtSaslTestCase.testCorrectDigestMechPasses:61->AbstractMgmtSaslTestBase.assertDigestMechPassWhoAmI:281->AbstractMgmtSaslTestBase.lambda$assertDigestMechPassWhoAmI$9:281->AbstractMgmtSaslTestBase.assertWhoAmI:244 The whoami operation failed - java.net.ConnectException: WFLYPRT0053: Could not connect to remote: //127.0.0.1:10567. The connection failed DigestMd5MgmtSaslTestCase.testCorrectMechanismPasses:56->AbstractMgmtSaslTestBase.assertMechPassWhoAmI:276->AbstractMgmtSaslTestBase.lambda$assertMechPassWhoAmI$8:276->AbstractMgmtSaslTestBase.assertWhoAmI:244 The whoami operation failed - java.net.ConnectException: WFLYPRT0053: Could not connect to remote: //127.0.0.1:10567. The connection failed [1] https://github.com/wildfly/wildfly-core/blob/3.0.4.Final/testsuite/elytron/src/test/java/org/wildfly/test/integration/elytron/sasl/mgmt/AbstractMgmtSaslTestBase.java#L352

      SASL property com.sun.security.sasl.digest.utf8 does not behave as default when its default value is explicitely configured.
      When we ommit this explicit property setting then everything is fine.

      This property is described here [1] and true is default value. Property is defined in wildfly-core project org.wildfly.security.sasl.WildFlySasl.USE_UTF8.
      Here is how to set it [2].

      Please check Steps to Reproduce, there is how to update test.

      [1] https://doc-stage.usersys.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1/html-single/how_to_configure_server_security/#sasl_auth_mechanism_props_ref

      [2] https://doc-stage.usersys.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1/html-single/how_to_configure_server_security/#sasl_auth_mechanism_props_specify

              yborgess1@redhat.com Yeray Borges Santana
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: