Derby
  1. Derby
  2. DERBY-2874

NetworkServer not accepting connections with default security manager on Ipv6 machines

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4
    • Fix Version/s: 10.3.1.4, 10.4.1.3
    • Component/s: Network Server
    • Labels:
      None
    • Environment:
      Ipv6 machine with ibm jvm 15
    • Bug behavior facts:
      Regression, Security

      Description

      While running tests on Ipv6 machines using the 10.3 jars with the default security manager, I had the following findings/questions
      I started the server like this java org.apache.derby.drda.NetworkServerControl start -h 2002:92a:8f7a:13:9:42:74:19
      and the server started with the following command
      Security manager installed using the Basic server security policy.
      Apache Derby Network Server - 10.3.1.0 beta - (548006) started and ready to accept connections on port 1527 at 2007-06-25 23:44: 36.835 GMT

      So I think the server is using the default security manager. Then when I tried to get conenction though ij

      got the following error message
      Access denied (java.net.SocketPermission [2002:92a:8f7a:13:9:42:73:218]:34016 accept,resolve)
      java.security.AccessControlException: Access denied (java.net.SocketPermission [2002:92a:8f7a:13:9:42:73:218]:34016 accept,resolve)
      at java.security.AccessController.checkPermission(AccessController.java:104)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
      at java.lang.SecurityManager.checkAccept (SecurityManager.java:1172)
      at java.net.ServerSocket.implAccept(ServerSocket.java:466)
      at java.net.ServerSocket.accept(ServerSocket.java:433)
      at org.apache.derby.impl.drda.ClientThread$1.run (Unknown Source)
      at java.security.AccessController.doPrivileged(AccessController.java:242)
      at org.apache.derby.impl.drda.ClientThread.run(Unknown Source)

      I had the derby.properties file like this

      derby.database.sqlAuthorization=true
      derby.connection.requireAuthentication=true
      derby.infolog.append=true
      derby.authentication.provider=BUILTIN
      derby.stream.error.logSeverityLevel=0

      #derby.language.logStatementText=true

      1. User's Definitions
        derby.user.user2=pass2
      1. derby-2874-04-bracketsAllPorts.diff
        3 kB
        Rick Hillegas
      2. derby-2874-03.diff
        3 kB
        Rick Hillegas
      3. derby-2874-wildcard-02.diff
        4 kB
        Rick Hillegas
      4. derby-2874-wildcard-01.diff
        1.0 kB
        Rick Hillegas
      5. server.policy
        2 kB
        Manjula Kutty
      6. derby-2874-01.diff
        0.5 kB
        Rick Hillegas

        Issue Links

          Activity

          Manjula Kutty created issue -
          Rick Hillegas made changes -
          Field Original Value New Value
          Assignee Rick Hillegas [ rhillegas ]
          Rick Hillegas made changes -
          Attachment derby-2874-01.diff [ 12360611 ]
          Manjula Kutty made changes -
          Attachment server.policy [ 12360612 ]
          Manjula Kutty made changes -
          Derby Info [Regression]
          Rick Hillegas made changes -
          Attachment derby-2874-wildcard-01.diff [ 12360624 ]
          Rick Hillegas made changes -
          Attachment derby-2874-wildcard-02.diff [ 12360670 ]
          Rick Hillegas made changes -
          Link This issue relates to DERBY-2196 [ DERBY-2196 ]
          Rick Hillegas made changes -
          Attachment derby-2874-03.diff [ 12360692 ]
          Rick Hillegas made changes -
          Attachment derby-2874-04-bracketsAllPorts.diff [ 12360850 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.3.1.1 [ 12312542 ]
          Fix Version/s 10.3.0.0 [ 12310800 ]
          Rick Hillegas made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.4.0.0 [ 12312540 ]
          Dag H. Wanvik made changes -
          Derby Categories [Security]
          Dag H. Wanvik made changes -
          Component/s Security [ 11411 ]
          Dag H. Wanvik made changes -
          Bug behavior facts [Security] [Regression]
          Dag H. Wanvik made changes -
          Bug behavior facts [Regression] [Regression, Security]
          Kathey Marsden made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Rick Hillegas made changes -
          Component/s Network Server [ 11410 ]
          Gavin made changes -
          Workflow jira [ 12407101 ] Default workflow, editable Closed status [ 12800210 ]

            People

            • Assignee:
              Rick Hillegas
              Reporter:
              Manjula Kutty
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development