Derby
  1. Derby
  2. DERBY-2811

Specifying -h 0.0.0.0 with default security manager bars clients from connecting from any host

    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
    • Component/s: Network Server
    • Labels:
      None
    • Urgency:
      Blocker
    • Issue & fix info:
      Release Note Needed
    • Bug behavior facts:
      Security

      Description

      The default policy file installed has this stanza:
      :
      permission java.net.SocketPermission "$

      {derby.drda.host}

      :*", "accept";
      :

      Normally, specifying -h 0.0.0.0 to NetworkServerControl lets clients connect
      from any host, but with the default policy file installed
      connecting fails even from localhost.

      I think this is because SocketPermission only recognizes "*" as a catch-all.

      1. derby-2811-04.diff
        2 kB
        Rick Hillegas
      2. derby-2811-03.diff
        0.7 kB
        Rick Hillegas
      3. derby-2811-02.diff
        10 kB
        Rick Hillegas
      4. derby-2811-01.diff
        18 kB
        Rick Hillegas

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12406175 ] Default workflow, editable Closed status [ 12798066 ]
          Dag H. Wanvik made changes -
          Issue & fix info [Existing Application Impact] [Release Note Needed]
          Dag H. Wanvik made changes -
          Component/s Security [ 11411 ]
          Dag H. Wanvik made changes -
          Derby Categories [Security]
          Myrna van Lunteren made changes -
          Fix Version/s 10.3.0.0 [ 12310800 ]
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Myrna van Lunteren made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Dag H. Wanvik made changes -
          Link This issue relates to DERBY-526 [ DERBY-526 ]
          Dag H. Wanvik made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Rick Hillegas made changes -
          Attachment derby-2811-04.diff [ 12359802 ]
          Rick Hillegas made changes -
          Attachment derby-2811-03.diff [ 12359800 ]
          Rick Hillegas made changes -
          Attachment derby-2811-02.diff [ 12359799 ]
          Dag H. Wanvik made changes -
          Link This issue is related to DERBY-2814 [ DERBY-2814 ]
          Rick Hillegas made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Dag H. Wanvik made changes -
          Derby Info [Existing Application Impact]
          Component/s Security [ 11411 ]
          Rick Hillegas made changes -
          Attachment derby-2811-01.diff [ 12359645 ]
          Rick Hillegas made changes -
          Assignee Rick Hillegas [ rhillegas ]
          Kathey Marsden made changes -
          Urgency Blocker
          Dag H. Wanvik made changes -
          Field Original Value New Value
          Component/s Network Server [ 11410 ]
          Affects Version/s 10.3.0.0 [ 12310800 ]
          Dag H. Wanvik created issue -

            People

            • Assignee:
              Rick Hillegas
              Reporter:
              Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development