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

sun/security/tools/jarsigner/warnings/NoTimestampTest.java failed with missing expected output

XMLWordPrintable

        #Test Results (version 2)
        #Mon Mar 11 00:29:45 PDT 2019
        #-----testdescription-----
        $file=/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/src.full/open/test/jdk/sun/security/tools/jarsigner/warnings/NoTimestampTest.java
        $root=/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/src.full/open/test/jdk
        keywords=bug8024302 bug8026037 bug8196213
        library=/test/lib ../
        run=USER_SPECIFIED build jdk.test.lib.util.JarUtils\nUSER_SPECIFIED main NoTimestampTest\n
        source=NoTimestampTest.java
        title=Checks warnings if -tsa and -tsacert options are not specified

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

        #-----testresult-----
        description=file\:/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/src.full/open/test/jdk/sun/security/tools/jarsigner/warnings/NoTimestampTest.java
        elapsed=6615 0\:00\:06.615
        end=Mon Mar 11 00\:29\:45 PDT 2019
        environment=regtest
        execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.RuntimeException\: 'No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2020-03-10).' missing from stdout/stderr
        harnessLoaderMode=Classpath Loader
        harnessVariety=Full Bundle
        hostname=sca00lnh.us.oracle.com
        javatestOS=Linux 3.8.13-118.24.2.el7uek.x86_64 (amd64)
        javatestVersion=6.0-ea+b03-2018-08-16
        jtregVersion=jtreg 4.2 fcs b14
        script=com.sun.javatest.regtest.exec.RegressionScript
        sections=script_messages build build compile main
        start=Mon Mar 11 00\:29\:39 PDT 2019
        test=sun/security/tools/jarsigner/warnings/NoTimestampTest.java
        testJDK=/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13
        totalTime=6617
        ...
        ...
        ...
        ----------System.out:(26/2270)----------
        Timezone = null
        Adding first.txt to unsigned.jar

        Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13/bin/keytool -J-Duser.language=en -J-Duser.country=US -genkeypair -alias ca -keyalg RSA -keysize 2048 -keystore keystore.jks -storepass password -keypass password -dname CN=ca]
        Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 90 days
        for: CN=ca

        Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13/bin/keytool -J-Duser.language=en -J-Duser.country=US -genkeypair -alias alias -keyalg RSA -keysize 2048 -keystore keystore.jks -storepass password -keypass password -dname CN=alias]
        Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 90 days
        for: CN=alias

        Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13/bin/keytool -J-Duser.language=en -J-Duser.country=US -certreq -alias alias -keystore keystore.jks -storepass password -keypass password -file alias.req]

        Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13/bin/keytool -J-Duser.language=en -J-Duser.country=US -gencert -alias ca -infile alias.req -outfile alias.cert -keystore keystore.jks -storepass password -keypass password -file alias.req -validity 365]

        Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13/bin/keytool -J-Duser.language=en -J-Duser.country=US -importcert -alias alias -keystore keystore.jks -storepass password -keypass password -file alias.cert]
        Certificate reply was installed in keystore

        Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.565/linux-x64.jdk/jdk-13/bin/jarsigner -J-Duser.language=en -J-Duser.country=US -J-Duser.timezone=null -keystore keystore.jks -storepass password -keypass password -signedjar signed.jar unsigned.jar alias]
        jar signed.

        Warning:
        No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2020-03-09).

        The signer certificate will expire on 2020-03-09.

        ----------System.err:(26/1384)----------
        stdout: [jar signed.

        Warning:
        No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2020-03-09).

        The signer certificate will expire on 2020-03-09.
        ];
        stderr: []
        exitValue = 0

        java.lang.RuntimeException: 'No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2020-03-10).' missing from stdout/stderr

         at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:151)
         at Test.checkSigning(Test.java:240)
         at NoTimestampTest.start(NoTimestampTest.java:89)
         at NoTimestampTest.main(NoTimestampTest.java:54)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.base/java.lang.reflect.Method.invoke(Method.java:567)
         at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
         at java.base/java.lang.Thread.run(Thread.java:835)

              jjiang John Jiang
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: