Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3140 Jakarta EE 9.1 TCK Failures
  3. TOMEE-3218

servlet.ee.spec.security.permissiondd ValidateMissingPermFails

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0-M7
    • None
    • None

    Description

      Follow setup instructions in TOMEE-3140. Then run:

      ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client#ValidateMissingPermFails
      

      At the time this issue was filed, the test failed with the following in target/logs/javatest.log

      04-11-2021 21:01:28:  TRACE: ** GOT RUN METHOD!
      04-11-2021 21:01:28:  TRACE: **runmethod=ValidateMissingPermFails
      04-11-2021 21:01:28:  TRACE: ABOUT TO GET SETUP METHOD!
      04-11-2021 21:01:28:  TRACE: No setupMethod annotation present
      04-11-2021 21:01:28:  TRACE: getSetupMethod - checking for testcase specific setup method:  ValidateMissingPermFails_setup
      04-11-2021 21:01:28:  TRACE: getSetupMethod - checking for default class specific setup method
      04-11-2021 21:01:28:  TRACE: GOT SETUP METHOD!
      04-11-2021 21:01:28:  TRACE: No cleanupMethod annotation present
      04-11-2021 21:01:28:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  ValidateMissingPermFails_cleanup
      04-11-2021 21:01:28:  TRACE: getCleanupMethod - checking for default class specific cleanup method
      04-11-2021 21:01:28:  TRACE: GOT CLEANUP METHOD!
      04-11-2021 21:01:28:  TRACE: ABOUT TO INVOKE SETUP METHOD!
      04-11-2021 21:01:28:  setup(): appContextHostname = Catalina/localhost
      04-11-2021 21:01:28:  setup(): servletAppContext = null
      04-11-2021 21:01:28:  TRACE: INVOKED SETUP METHOD!
      04-11-2021 21:01:28:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
      04-11-2021 21:01:28:  sContext = /servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFails
      04-11-2021 21:01:28:  passing to servlet:  testMethod = ValidateMissingPermFails
      04-11-2021 21:01:28:  authData : j2ee:j2ee
      04-11-2021 21:01:28:  encoded authData : ajJlZTpqMmVl
      04-11-2021 21:01:28:  called HttpURLConnection.connect() for url: http://localhost:55179/servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFails
      in TestServlet.doPost()
      in TestServlet.doTests()
      ERROR:  Security Manager is NOT enabled and must be for these tests.  If you have passed these tests while running with Security Manager enabled, you can use keywords to bypass the running of these tests when Security Manager is disabled.
      04-11-2021 21:01:28:  Got response string of: null
      
      04-11-2021 21:01:28:  ERROR:  Security Manager is NOT enabled and must be for these tests.  If you have passed these tests while running with Security Manager enabled, you can use keywords to bypass the running of these tests when Security Manager is disabled.
      04-11-2021 21:01:28:  ValidateMissingPermFails : str = null
      ERROR:  Security Manager is NOT enabled and must be for these tests.  If you have passed these tests while running with Security Manager enabled, you can use keywords to bypass the running of these tests when Security Manager is disabled.
      04-11-2021 21:01:28:  ERROR: ValidateMissingPermFails : FAILED
      04-11-2021 21:01:28:  ERROR: Test case throws exception: ValidateMissingPermFails : FAILED
      04-11-2021 21:01:28:  ERROR: Exception at:  
      04-11-2021 21:01:28:  ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateMissingPermFails : FAILED
      	at com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client.ValidateMissingPermFails(Client.java:268)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	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.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.servlet.ee.spec.security.permissiondd.Client.main(Client.java:69)
      
      04-11-2021 21:01:29:  TRACE: SLEPT FOR:  1000
      04-11-2021 21:01:29:  TRACE: in custom vehicle so call on EETest.
      04-11-2021 21:01:29:  TRACE: *** in EETest.run(argv,p)
      04-11-2021 21:01:29:  TRACE: TESTCLASS=com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client
      04-11-2021 21:01:29:  TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client
      04-11-2021 21:01:29:  TRACE: ** IN getRunMethod: testname=ValidateMissingPermFails
      04-11-2021 21:01:29:  TRACE: ** GOT RUN METHOD!
      04-11-2021 21:01:29:  TRACE: **runmethod=ValidateMissingPermFails
      04-11-2021 21:01:29:  TRACE: ABOUT TO GET SETUP METHOD!
      04-11-2021 21:01:29:  TRACE: No setupMethod annotation present
      04-11-2021 21:01:29:  TRACE: getSetupMethod - checking for testcase specific setup method:  ValidateMissingPermFails_setup
      04-11-2021 21:01:29:  TRACE: getSetupMethod - checking for default class specific setup method
      04-11-2021 21:01:29:  TRACE: GOT SETUP METHOD!
      04-11-2021 21:01:29:  TRACE: No cleanupMethod annotation present
      04-11-2021 21:01:29:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  ValidateMissingPermFails_cleanup
      04-11-2021 21:01:29:  TRACE: getCleanupMethod - checking for default class specific cleanup method
      04-11-2021 21:01:29:  TRACE: GOT CLEANUP METHOD!
      04-11-2021 21:01:29:  TRACE: ABOUT TO INVOKE SETUP METHOD!
      04-11-2021 21:01:29:  setup(): appContextHostname = Catalina/localhost
      04-11-2021 21:01:29:  setup(): servletAppContext = null
      04-11-2021 21:01:29:  TRACE: INVOKED SETUP METHOD!
      04-11-2021 21:01:29:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
      04-11-2021 21:01:29:  sContext = /servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFails
      04-11-2021 21:01:29:  passing to servlet:  testMethod = ValidateMissingPermFails
      04-11-2021 21:01:29:  authData : j2ee:j2ee
      04-11-2021 21:01:29:  encoded authData : ajJlZTpqMmVl
      04-11-2021 21:01:29:  called HttpURLConnection.connect() for url: http://localhost:55179/servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFails
      in TestServlet.doPost()
      in TestServlet.doTests()
      ERROR:  Security Manager is NOT enabled and must be for these tests.  If you have passed these tests while running with Security Manager enabled, you can use keywords to bypass the running of these tests when Security Manager is disabled.
      04-11-2021 21:01:29:  Got response string of: null
      
      04-11-2021 21:01:29:  ERROR:  Security Manager is NOT enabled and must be for these tests.  If you have passed these tests while running with Security Manager enabled, you can use keywords to bypass the running of these tests when Security Manager is disabled.
      04-11-2021 21:01:29:  ValidateMissingPermFails : str = null
      ERROR:  Security Manager is NOT enabled and must be for these tests.  If you have passed these tests while running with Security Manager enabled, you can use keywords to bypass the running of these tests when Security Manager is disabled.
      04-11-2021 21:01:29:  ERROR: ValidateMissingPermFails : FAILED
      04-11-2021 21:01:29:  ERROR: Test case throws exception: ValidateMissingPermFails : FAILED
      04-11-2021 21:01:29:  ERROR: Exception at:  
      04-11-2021 21:01:29:  ERROR: com.sun.ts.lib.harness.EETest$Fault: ValidateMissingPermFails : FAILED
      	at com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client.ValidateMissingPermFails(Client.java:268)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	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.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.servlet.ee.spec.security.permissiondd.Client.main(Client.java:69)
      
      04-11-2021 21:01:30:  TRACE: SLEPT FOR:  1000
      STATUS:Failed.Test case throws exception: ValidateMissingPermFails : FAILED
      Failed. Test case throws exception: ValidateMissingPermFails : FAILED
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/servlet/ee/spec/security/permissiondd/Client.java#ValidateMissingPermFails
      

      For tips on debugging/fixing tests, see https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc

      If you have any thoughts about what the test is expecting/testing, please add them to the comments.

      Attachments

        Activity

          People

            jlmonteiro Jean-Louis Monteiro
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: