Uploaded image for project: 'CXF-Fediz'
  1. CXF-Fediz
  2. FEDIZ-80

some default locale make Fediz tests failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.2.0
    • None
    • None
    • locale=fr

    Description

      With locale != "en" CXF-Fediz tests fails with :

      java.lang.ExceptionInInitializerError: null
      	at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
      	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
      	at java.util.ResourceBundle.getBundle(ResourceBundle.java:721)
      	at org.apache.wss4j.common.crypto.WSProviderConfig$4.<init>(WSProviderConfig.java:140)
      	at org.apache.wss4j.common.crypto.WSProviderConfig.initializeResourceBundles(WSProviderConfig.java:137)
      	at org.apache.wss4j.common.crypto.WSProviderConfig.init(WSProviderConfig.java:69)
      	at org.apache.wss4j.common.crypto.CryptoFactory.<clinit>(CryptoFactory.java:39)
      	at org.apache.cxf.fediz.core.config.FederationContext.getSigningKey(FederationContext.java:176)
      	at org.apache.cxf.fediz.core.metadata.MetadataWriter.getMetaData(MetadataWriter.java:200)
      	at org.apache.cxf.fediz.core.FederationProcessorImpl.getMetaData(FederationProcessorImpl.java:105)
      	at org.apache.cxf.fediz.core.FederationMetaDataTest.validateMetaDataNoAlias(FederationMetaDataTest.java:90)
      

      This is not a CXF-Fediz direct issue.
      This appears as a consequence of upgrade of wss4j from 1.6.12 (in CXF-Fediz 1.1.0) to 2.0.0-SNAPSHOT (in CXF-Fediz 1.2.0-SNAPSHOT)
      With 2.0.0-SNAPSHOT the resource bundle org\apache\xml\security\resource\xmlsecurity_xx.properties is missing. ("xx" standing for locale)

      (I not investigated why CXF-Fediz 1.1.0 runs with wss4J 1.6.12 without this resource bundle ? ...)

      A workaround (probably not the best) may be to add file \org\apache\xml\security\resource\xmlsecurity_xx.properties to src/test/resources or src/main/resources of each failing tested project of the Fediz suite.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            thierry.beucher Thierry Beucher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: