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

Several security permission test cases failed on jdk131 u21 but passed on jdk131 u20

    Details

      Description

      JDK: 1.3.1 u21 b01
      OS: Solaris 9
      arch: sun4u
      machine: origin.russia.sun.com

      About 11 test cases failed on jdk131 u21 with exceptions but passes on jdk131 u20.
      Test case's list:
      Permissions.sendDataGramSocketTest
      Permissions.joinGroupMulticastTest
      Permissions.sendMulticastSocketTest
      Permissions.leaveGroupMulticastTest
      Permissions.getLocalHostTest
      Permissions.getAllByHostNameTest
      Permissions.connectSocketTest
      Permissions.connectDataGramSocketTest
      Permissions.connectMulticastSocketTest
      Permissions.receiveDataGramSocketTest
      Permissions.acceptServerSocketTest

      Exception message:
      java.lang.NullPointerException
      at sun.net.www.URLConnection.isProxiedHost(URLConnection.java:201)
      at java.net.SocketPermission.getCanonName(SocketPermission.java:524)
      at java.net.SocketPermission.impliesIgnoreMask(SocketPermission.java:779)
      at java.net.SocketPermissionCollection.implies(SocketPermission.java:1166)
      at java.security.Permissions.implies(Permissions.java:125)
      at java.security.ProtectionDomain.implies(ProtectionDomain.java:83)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:252)
      at java.security.AccessController.checkPermission(AccessController.java:394)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
      at java.lang.SecurityManager.checkConnect(SecurityManager.java:1037)
      at java.net.InetAddress.getAllByName0(InetAddress.java:570)
      at java.net.InetAddress.getAllByName(InetAddress.java:539)
      at java.net.InetAddress.getAllByName(InetAddress.java:525)
      at java.net.InetAddress.getLocalHost(InetAddress.java:756)
      at sendDataGramSocketTest.run(sendDataGramSocketTest.java:51)
      at SecurityTest.verify(SecurityTest.java:76)
      at sendDataGramSocketTest.main(sendDataGramSocketTest.java:70)

      Steps for reproducing:
      1. login into origin.russia.sun.com
      2. cd /export/home/JQA/ts131/security/src/Permissions
      3. export JAVA_HOME=/export/JDK/j2sdk1_3_1_21/
      4. export PATH=/export/JDK/j2sdk1_3_1_21/bin/:/usr/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/NX/bin:/usr/dt/bin:/usr/openwin/bin
      5. $JAVA_HOME/bin/java SecurityTestApplication "-Xmixed" SolSecTests_failed_Sol9sparc.html >> rerun_Sol9sparc 2>&1

      Rusults will be located at "rerun_Sol9sparc". If you want to use jdk131 u20 you need properly change steps 3, 4.

      Full logs location is
      /net/stt-13/export/home0/results/1.3.1_21/b01/security/Sol9_sun4u/

      See also some results in attachments.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              afomin Alexander Fomin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: