Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160804

sun/security/tools/jarsigner/weaksize.sh fail on Solaris-x64 with non-English locale

XMLWordPrintable

      The test fail against JDK9 b125.
      Test log:
      #Test Results (version 2)
      #Thu Jun 30 19:59:27 PDT 2016
      #checksum:11ce5968e39bb96a
      #-----testdescription-----
      $file=/export/home/g11n/puppet/sandbox/bundle/test/sun/security/tools/jarsigner/weaksize.sh
      $root=/export/home/g11n/puppet/sandbox/bundle/test
      keywords=bug8044755 shell
      run=ASSUMED_ACTION shell weaksize.sh\n
      source=weaksize.sh
      title=Add a test for algorithm constraints check in jarsigner

      #-----environment-----

      #-----testresult-----
      description=file\:/export/home/g11n/puppet/sandbox/bundle/test/sun/security/tools/jarsigner/weaksize.sh
      elapsed=6112 0\:00\:06.112
      end=Thu Jun 30 19\:59\:27 PDT 2016
      environment=regtest
      execStatus=Failed. Execution failed\: exit code 2
      hostname=sca00fzr.us.oracle.com
      javatestOS=SunOS 5.11 (amd64)
      javatestVersion=4.4
      jtregVersion=jtreg 4.2 fcs b02
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages shell
      start=Thu Jun 30 19\:59\:20 PDT 2016
      test=sun/security/tools/jarsigner/weaksize.sh
      testJDK=/export/home/g11n/puppet/sandbox/jdk
      user.name=g11n
      work=/export/home/g11n/puppet/sandbox/bundle/workDir/sun/security/tools/jarsigner

      #section:script_messages
      ----------messages:(5/186)----------
      JDK under test: /export/home/g11n/puppet/sandbox/jdk
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+125)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+125, mixed mode)


      #section:shell
      ----------messages:(3/123)----------
      command: shell weaksize.sh
      reason: Assumed action based on file name: run shell weaksize.sh
      elapsed time (seconds): 6.111
      ----------System.out:(5/683)*----------
      Command line args: [-keystore, ks, -storepass, changeit, -keypass, changeit, -keyalg, rsa, -sigalg, MD2withRSA, -debug, -genkeypair, -alias, ca, -dname, CN=CA, -ext, bc]
      Command line args: [-keystore, ks, -storepass, changeit, -keypass, changeit, -keyalg, rsa, -sigalg, MD2withRSA, -debug, -genkeypair, -alias, signer, -dname, CN=Signer]
      Command line args: [-keystore, ks, -storepass, changeit, -keypass, changeit, -keyalg, rsa, -sigalg, MD2withRSA, -debug, -importcert, -alias, signer]
      \u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f
      ks\u3092\u8ffd\u52a0\u4e2d\u3067\u3059(\u5165=5405)(\u51fa=5323)(1%\u53ce\u7e2e\u3055\u308c\u307e\u3057\u305f)
      ----------System.err:(17/1757)*----------
      \u8a3c\u660e\u66f8\u5fdc\u7b54\u304c\u30ad\u30fc\u30b9\u30c8\u30a2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f
      java.security.cert.CertPathValidatorException: Algorithm constraints check failed on disabled signature algorithm: MD2withRSA
      at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(java.base@9-ea/PKIXMasterCertPathValidator.java:135)
      at sun.security.provider.certpath.PKIXCertPathValidator.validate(java.base@9-ea/PKIXCertPathValidator.java:219)
      at sun.security.provider.certpath.PKIXCertPathValidator.validate(java.base@9-ea/PKIXCertPathValidator.java:140)
      at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(java.base@9-ea/PKIXCertPathValidator.java:79)
      at java.security.cert.CertPathValidator.validate(java.base@9-ea/CertPathValidator.java:300)
      at sun.security.tools.jarsigner.Main.validateCertChain(jdk.jartool@9-ea/Main.java:1788)
      at sun.security.tools.jarsigner.Main.getAliasInfo(jdk.jartool@9-ea/Main.java:1708)
      at sun.security.tools.jarsigner.Main.run(jdk.jartool@9-ea/Main.java:225)
      at sun.security.tools.jarsigner.Main.main(jdk.jartool@9-ea/Main.java:95)
      Caused by: java.security.cert.CertPathValidatorException: Algorithm constraints check failed on disabled signature algorithm: MD2withRSA
      at sun.security.util.DisabledAlgorithmConstraints.checkConstraints(java.base@9-ea/DisabledAlgorithmConstraints.java:192)
      at sun.security.util.DisabledAlgorithmConstraints.permits(java.base@9-ea/DisabledAlgorithmConstraints.java:132)
      at sun.security.provider.certpath.AlgorithmChecker.check(java.base@9-ea/AlgorithmChecker.java:297)
      at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(java.base@9-ea/PKIXMasterCertPathValidator.java:125)
      ... 8 more
      ----------rerun:(21/921)*----------
      DISPLAY=sca00fzr.us.oracle.com:3.0 \\
      GNOME_DESKTOP_SESSION_ID=this-is-deprecated \\
      HOME=/export/home/g11n \\
      LANG=ja_JP.UTF-8 \\
      LC_ALL=ja_JP.UTF-8 \\
      LC_CTYPE= \\
      PATH=/bin:/usr/bin \\
      TZ=PST8PDT \\
      TESTSRC=/export/home/g11n/puppet/sandbox/bundle/test/sun/security/tools/jarsigner \\
      TESTSRCPATH=/export/home/g11n/puppet/sandbox/bundle/test/sun/security/tools/jarsigner \\
      TESTCLASSES=/export/home/g11n/puppet/sandbox/bundle/workDir/classes/sun/security/tools/jarsigner \\
      TESTCLASSPATH=/export/home/g11n/puppet/sandbox/bundle/workDir/classes/sun/security/tools/jarsigner \\
      COMPILEJAVA=/export/home/g11n/puppet/sandbox/jdk \\
      TESTJAVA=/export/home/g11n/puppet/sandbox/jdk \\
      TESTVMOPTS=-Dfile.encoding=UTF-8 \\
      TESTTOOLVMOPTS=-J-Dfile.encoding=UTF-8 \\
      TESTJAVACOPTS= \\
      TESTJAVAOPTS= \\
      TESTTIMEOUTFACTOR=1.0 \\
          sh \\
              /export/home/g11n/puppet/sandbox/bundle/test/sun/security/tools/jarsigner/weaksize.sh
      result: Failed. Execution failed: exit code 2


      test result: Failed. Execution failed: exit code 2

      aurora report: http://aurora-ds3.us.oracle.com:9502/runs/01504/1504768.ManualSubmit/1504768.ManualSubmit-1/workDir/sun/security/tools/jarsigner/weaksize.jtr

            tidu Tim Du (Inactive)
            yzhou Daisy Zhou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: