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

PrivateCredentialPermission improperly handles Principals with spaces in name

XMLWordPrintable

    • 1.0
    • generic
    • solaris_2.6

      the constructor for PrivateCredentialPermission attempts to parse
      the provided permission name into a credential class and a principal name.
      if the principal name has a space in it, an IllegalArgumentException
      is improperly thrown.

      see the provided attachment for an example program that exposes the bug.
      to run the sample:

      java -Djava.security.manager -Djava.security.policy=policy.all

      policy.all should have:

      grant {
      permission java.security.AllPermission;
      };

            claisunw Charlie Lai (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: