Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2811

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Network Server
    • None
    • Blocker
    • Release Note Needed
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              dagw Dag H. Wanvik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: