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

name attribute of pkcs11 configuration file cannot contain space

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0u1
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None

      Description

      If the name attribute of pkcs11 configuration have space, for instance, "Sun Hardware Accelerator",
      then we get the following exception:
      Exception in thread "main" java.security.ProviderException: Error parsing configuration
              at sun.security.pkcs11.Config.getConfig(Config.java:54)
              at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:78)
              at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:74)
              at TigerTest.main(TigerTest.java:10)
      Caused by: sun.security.pkcs11.ConfigurationException: Unknown keyword 'test', line 1
              at sun.security.pkcs11.Config.parse(Config.java:297)
              at sun.security.pkcs11.Config.<init>(Config.java:134)
              at sun.security.pkcs11.Config.getConfig(Config.java:50)

      ###@###.### 2004-09-03
      ###@###.### 2004-09-03

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shichan Shing Wai Chan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: