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-01.diff
        18 kB
        Rick Hillegas
      2. derby-2811-02.diff
        10 kB
        Rick Hillegas
      3. derby-2811-03.diff
        0.7 kB
        Rick Hillegas
      4. derby-2811-04.diff
        2 kB
        Rick Hillegas

        Issue Links

          Activity

            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