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

Change SystemPermission to be a two arguement permission with a name (object the permission is on) and an action.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.4.1.3
    • Component/s: Services
    • Labels:
      None
    • Bug behavior facts:
      Security

      Description

      With the additional system permissions proposed in DERBY-3462 I wonder if it makes sense to change the style of names & actions in SystemPermission.

      Today a "shutdown" name is proposed and potential for future "shutdownEngine" and "shutdownServer" with no actions.

      DERBY-3462 is proposing names of jmxControl, serverControl, engineControl etc also with no actions.

      Looking at the standard Permission class it seems the name is meant to represent an object that the permission applies to and action represent actions on that object.
      Thus it would seem to make more sense and be consistent with other Permissions to have:

      name=server action=control | monitor | shutdown
      name=engine action=control | monitor | shutdown
      name=jmx action=control

        Attachments

        1. d3491_v01_diff.txt
          12 kB
          Daniel John Debrunner

          Issue Links

            Activity

              People

              • Assignee:
                djd Daniel John Debrunner
                Reporter:
                djd Daniel John Debrunner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: