Failed
com.sun.ts.tests.jacc.web.containerContracts.Client.WebUserDataPermission_from_standalone (from authorization-tck)
Error Message
test result: Failed. Test case throws exception: WebUserDataPermission : FAILED
Stacktrace
test result: Failed. Test case throws exception: WebUserDataPermission : FAILED
Standard Output
#Test Results (version 2) #Fri Mar 26 03:31:48 UTC 2021 #-----testdescription----- $file=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/src/com/sun/ts/tests/jacc/web/containerContracts/Client.java $root=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/src assertion_ids=JACC\:SPEC\:71 The Servlet container must construct (or reuse) a WebUserDataPermission object\nusing the request URI minus the context path as the name and with actions \ncomposed from the HTTP method of the request and a protection value describing\nthe transport layer protection of the connection on which the request arrived. \nThe protection value used in the permission construction must be\ndetermined as follows\: \n - If the request arrived on a connection deemed by the container to be protected\nfor confidentiality, a protection value of \:CONFIDENTIAL must be used. \n- If the request arrived on a connection deemed by the container to be protected\nfor integrity (but not confidentiality), a protection value of \:INTEGRAL must be used. \n- If the request arrived on a connection deemed by the container to be unprotected,\n the actions used in the permission construction must contain only the HTTP \n method of the request.\n\nThe Servlet container must use one of the methods described in Section 4.7, \nChecking AccessControlContext Independent Grants to test if access to the\nresource using the method and connection type encapsulated in the \nWebUserDataPermission is permitted. If a SecurityException is thrown in the\npermission determination, it must be caught, and the result of the determination \nmust be that access to the resource using the method and connection type is not\npermitted. If access is not permitted, the request must be redirected as defined by \nthe Servlet Specification. If access is permitted, the request must be subjected to a\npre-dispatch decision.\nJACC\:SPEC\:104 A Policy provider must return that a tested permission has not been granted if it\nacquires a non-null policy context identifier by calling getContextID on the \nPolicyContext class and the inService method of the\nPolicyConfigurationFactory associated with the provider would return \nfalse if called with the policy context identifier.\nJACC\:SPEC\:113 A reference WebUserDataPermission implies an argument permission if all of the\nfollowing are true. \n- The argument permission is an instanceof WebUserDataPermission.\n- The name of the argument permission is matched by the name of the reference \npermission according to the rules defined in Section 4.2.1.1, ?Matching Qualified\nURL Pattern Names. \n- The HTTP methods in the actions of the argument permission are a subset of\nthe HTTP methods in the actions of the reference permission. \n- The transportType in the actions of the reference permission either corresponds\nto the value "NONE", or equals the transportType in the actions of the \nargument permission.\nThe comparisons described above are case sensitive.\nJACC\:SPEC\:117 A WebResourcePermission and a WebUserDataPermission must be\ninstantiated for each url-pattern in the deployment descriptor and the default \npattern, "/", that is not combined by the web-resource-collection elements\nof the deployment descriptor with every HTTP method value. The permission \nobjects must be constructed using the qualified pattern as their name and with\nactions defined by the subset of the HTTP methods that do not occur in \ncombination with the pattern.The resulting permissions must be added to the\nunchecked policy statements by calling the addToUncheckedPolicy method \non the PolicyConfiguration object. classname=com.sun.ts.tests.jacc.web.containerContracts.Client direction=forward finder=cts id=WebUserDataPermission_from_standalone keywords=all jacc javaee jacc_web WebUserDataPermission standalone_vehicle forward service_eetest=yes testName=WebUserDataPermission testProps=\ log.file.location webServerHost webServerPort authuser authpassword user password securedWebServicePort platform.mode porting.ts.HttpsURLConnection.class.1 test_directory=com/sun/ts/tests/jacc/web/containerContracts #-----environment----- JAVA_HOME=/opt/jdk-11.0.7 SYSTEMROOT=${env.SystemRoot} TS_HOME=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../.. authpassword=javajoe authuser=javajoe bin.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../bin command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH\=${ts.harness.classpath}\:${JAVA_HOME}/../lib/tools.jar DISPLAY\=${ts.display} HOME\="${user.home}" windir\=${windir} SYSTEMROOT\=${SYSTEMROOT} ${JAVA_HOME}/bin/java -Dcts.tmp\=$harness.temp.directory -Dlog.file.location\=${log.file.location} -Djava.security.policy\=${bin.dir}/harness.policy -Dcom.sun.aas.installRoot\=${jacc.home} -Djava.protocol.handler.pkgs\=javax.net.ssl -Djavax.net.ssl.keyStore\=${bin.dir}/certificates/clientcert.jks -Djavax.net.ssl.keyStorePassword\=changeit -Djavax.net.ssl.trustStore\=${jacc.home}/domains/domain1/config/cacerts.jks -Ddeliverable.class\=${deliverable.class} $testExecuteClass $testExecuteArgs database.classes=${jdbc.lib.class.path}/derbyclient.jar deliverable.class=com.sun.ts.lib.deliverable.jacc.JACCDeliverable harness.executeMode=0 harness.log.delayseconds=1 harness.log.port=2000 harness.log.traceflag=true harness.socket.retry.count=10 harness.temp.directory=${ts.home}/tmp jacc.classes=${ri.lib}/jakarta.authorization-api.jar\:${ri.lib}/jakarta.security.auth.message-api.jar\:${ri.lib}/common-util.jar\:${ri.lib}/container-common.jar\:${ri.lib}/jakarta.annotation-api.jar\:${ri.lib}/jakarta.resource-api.jar\:${ri.lib}/jmxremote_optional-repackaged.jar\:${ri.lib}/ldapbp-repackaged.jar\:${ri.lib}/security.jar\:${ri.lib}/web-core.jar\:${ri.lib}/web-glue.jar\:${ri.lib}/websecurity.jar\:${ri.lib}/jakarta.servlet-api.jar\:${ri.lib}/jakarta.ejb-api.jar\:${ri.lib}/jakarta.persistence.jar\:${ri.lib}/jakarta.transaction-api.jar\:${ri.lib}/jakarta.jms-api.jar\:${ri.lib}/jakarta.servlet.jsp-api.jar jacc.home=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish jacc.host=localhost javaee.level=full jdbc.lib.class.path=${jacc.home}/javadb/lib lib.dir=${ts.home}/lib log.file.location=${jacc.home}/domains/domain1/logs password=j2ee platform.mode=standalone porting.ts.HttpsURLConnection.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL ri.lib=${jacc.home}/modules securedWebServicePort=8181 ts.display=\:0.0 ts.harness.classpath=${lib.dir}/tsharness.jar\:${lib.dir}/sigtest.jar\:${lib.dir}/commons-logging-1.1.3.jar\:${lib.dir}/commons-httpclient-3.1.jar\:${ts.run.classpath}\:${lib.dir}/javatest.jar\:${ant.home}/lib/ant.jar ts.home=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../.. ts.run.classpath=${ts.home}/classes\:${database.classes}\:${jacc.classes} user=j2ee user.home=? webServerHost=${jacc.host} webServerPort=8080 windir=${env.windir} #-----testresult----- description=file\:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/src/com/sun/ts/tests/jacc/web/containerContracts/Client.java\#WebUserDataPermission_from_standalone end=Fri Mar 26 03\:31\:48 UTC 2021 environment=ts_unix execStatus=Failed. Test case throws exception\: WebUserDataPermission \: FAILED harnessLoaderMode=Classpath Loader harnessVariety=Full Bundle javatestOS=Linux 3.10.0-1062.el7.x86_64 (amd64) javatestVersion=5.0 script=com.sun.ts.lib.harness.TSScript sections=script_messages TestRun start=Fri Mar 26 03\:31\:46 UTC 2021 test=com/sun/ts/tests/jacc/web/containerContracts/Client.java\#WebUserDataPermission_from_standalone timeoutSeconds=600 totalTime=2000 work=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tckwork/authorization-tck/com/sun/ts/tests/jacc/web/containerContracts #section:script_messages ----------messages:(0/0)---------- #section:TestRun ----------messages:(1/3789)---------- command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/tsharness.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/sigtest.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/commons-logging-1.1.3.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/commons-httpclient-3.1.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../classes:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/javadb/lib/derbyclient.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.authorization-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.security.auth.message-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/common-util.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/container-common.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.annotation-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.resource-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jmxremote_optional-repackaged.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/ldapbp-repackaged.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/security.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/web-core.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/web-glue.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/websecurity.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.ejb-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.persistence.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.transaction-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.jms-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/javatest.jar:/lib/ant.jar:/opt/jdk-11.0.7/../lib/tools.jar DISPLAY=:0.0 HOME=? windir= SYSTEMROOT= /opt/jdk-11.0.7/bin/java -Dcts.tmp=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../tmp -Dlog.file.location=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/domains/domain1/logs -Djava.security.policy=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../bin/harness.policy -Dcom.sun.aas.installRoot=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish -Djava.protocol.handler.pkgs=javax.net.ssl -Djavax.net.ssl.keyStore=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../bin/certificates/clientcert.jks -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/domains/domain1/config/cacerts.jks -Ddeliverable.class=com.sun.ts.lib.deliverable.jacc.JACCDeliverable com.sun.ts.tests.common.vehicle.VehicleClient -p /home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../tmp/tstest.jte -t WebUserDataPermission -vehicle standalone ----------log:(66/5153)---------- ************************************************************ * props file set to "/tmp/?-cts-props.txt" ************************************************************ 03-26-2021 03:31:47: TRACE: ####### Value of harness.socket.retry.count is "10" 03-26-2021 03:31:47: TRACE: ####### Value of harness.log.port is "2000" 03-26-2021 03:31:47: TRACE: ####### Actual bind value of harness.log.port is "2000" 03-26-2021 03:31:47: TRACE: in ServiceEETest.run() method 03-26-2021 03:31:47: TRACE: Vehicle to be used for this test is: standalone 03-26-2021 03:31:47: TRACE: in custom vehicle so call on EETest. 03-26-2021 03:31:47: TRACE: *** in EETest.run(argv,p) 03-26-2021 03:31:47: TRACE: TESTCLASS=com.sun.ts.tests.jacc.web.containerContracts.Client 03-26-2021 03:31:47: TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jacc.web.containerContracts.Client 03-26-2021 03:31:47: TRACE: ** IN getRunMethod: testname=WebUserDataPermission 03-26-2021 03:31:47: TRACE: ** GOT RUN METHOD! 03-26-2021 03:31:47: TRACE: **runmethod=WebUserDataPermission 03-26-2021 03:31:47: TRACE: ABOUT TO GET SETUP METHOD! 03-26-2021 03:31:47: TRACE: No setupMethod annotation present 03-26-2021 03:31:47: TRACE: getSetupMethod - checking for testcase specific setup method: WebUserDataPermission_setup 03-26-2021 03:31:47: TRACE: getSetupMethod - checking for default class specific setup method 03-26-2021 03:31:47: TRACE: GOT SETUP METHOD! 03-26-2021 03:31:47: TRACE: No cleanupMethod annotation present 03-26-2021 03:31:47: TRACE: getCleanupMethod - checking for testcase specific cleanup method: WebUserDataPermission_cleanup 03-26-2021 03:31:47: TRACE: getCleanupMethod - checking for default class specific cleanup method 03-26-2021 03:31:47: TRACE: GOT CLEANUP METHOD! 03-26-2021 03:31:47: TRACE: ABOUT TO INVOKE SETUP METHOD! 03-26-2021 03:31:47: setting logFileLocation based on passed in Properties 03-26-2021 03:31:47: log.file.location = /home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/domains/domain1/logs 03-26-2021 03:31:47: Setup ok Log File : /home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/domains/domain1/logs/JACCLog.txt does not exists Check permissions for log file See User guide for Configuring log file permissions 03-26-2021 03:31:47: TRACE: INVOKED SETUP METHOD! 03-26-2021 03:31:47: TRACE: ABOUT TO INVOKE EETEST RUN METHOD! 03-26-2021 03:31:47: authData : javajoe:javajoe 03-26-2021 03:31:47: encoded authData : amF2YWpvZTpqYXZham9l 03-26-2021 03:31:47: WebUserDataPermission(): hostname = localhost 03-26-2021 03:31:47: WebUserDataPermission(): securedPortNum = 8181 03-26-2021 03:31:47: WebUserDataPermission(): pageBase = /jacc_web_containerContracts_web 03-26-2021 03:31:47: WebUserDataPermission(): sslProtectedPage = /sslprotected.jsp 03-26-2021 03:31:47: WebUserDataPermission(): url.toString() = https://localhost:8181/jacc_web_containerContracts_web/sslprotected.jsp 03-26-2021 03:31:47: WebUserDataPermission(): newURL.toString() = https://localhost:8181/jacc_web_containerContracts_web/sslprotected.jsp 03-26-2021 03:31:47: Opening https url connection to: https://localhost:8181/jacc_web_containerContracts_web/sslprotected.jsp 03-26-2021 03:31:47: ERROR: Test case throws exception: WebUserDataPermission : FAILED 03-26-2021 03:31:47: ERROR: Exception at: 03-26-2021 03:31:47: ERROR: java.io.FileNotFoundException: https://localhost:8181/jacc_web_containerContracts_web/sslprotected.jsp at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1915) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) at com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection.getInputStream(SunRIHttpsURLConnection.java:148) at com.sun.ts.lib.porting.TSHttpsURLConnection.getInputStream(TSHttpsURLConnection.java:163) at com.sun.ts.tests.jacc.web.containerContracts.Client.WebUserDataPermission(Client.java:254) 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:566) at com.sun.ts.lib.harness.EETest.run(EETest.java:596) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115) at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:40) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105) at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209) at com.sun.ts.lib.harness.EETest.run(EETest.java:285) at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:38) 03-26-2021 03:31:48: TRACE: SLEPT FOR: 1000 STATUS:Failed.Test case throws exception: WebUserDataPermission : FAILED result: Failed. Test case throws exception: WebUserDataPermission : FAILED test result: Failed. Test case throws exception: WebUserDataPermission : FAILED