Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8142489

Presence of ATPermission ... "...,data" or (GPIOPinPermission|GPIOPortPermission ... "...,setdirection" in java.security.policy results in IAE

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
      None
    • Subcomponent:
      dio
    • CPU:
      generic
    • OS:
      generic

      Description

      Here is stack trace (had to add printStackTrace() call to catch block)
      in the example with ATPermission:

      ava.lang.IllegalArgumentException: data
      - com/oracle/dio/utils/Utils.verifyAndOrderActions(Utils.java:151)
      - com/oracle/dio/utils/Utils.verifyAndOrderDeviceActions(Utils.java:180)
      - jdk/dio/DevicePermission.<init>(DevicePermission.java:192)
      - jdk/dio/LocalPermission.<init>(DevicePermission.java:372)
      - jdk/dio/PeripheralPermissionCollection.implies(DevicePermission.java:415)
      ...
      ...

      The problem is: when creating a LocalPermission (located in DevicePermission.java), only two actions are accepted:
      open and powermanage, so legal actions "data" and "setdirection"
      result in LocalPermission creation failure.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bkvartsk Boris Kvartskhava
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: