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

SunPkcs11 provider fails to parse config path containing parenthesis

    Details

    • Subcomponent:
    • Resolved In Build:
      b91
    • CPU:
      x86
    • OS:
      windows_7
    • Verification:
      Verified

      Backports

        Description

        FULL PRODUCT VERSION :
        JRE 1.6.0_26

        ADDITIONAL OS VERSION INFORMATION :
        Windows Vista 64bit, Windows 7 64bit

        A DESCRIPTION OF THE PROBLEM :
        Since Java 1.6.0_26 sun.security.pkcs11.Config.java ensures that the path to the configuration file is passed as absolute path in order to "prevent the DLL preloading attack".

        On Windows 64bit systems the path to the configuration file may contain parenthesis which is an unsupported token. In the bug report #6581254 a workaround was proposed: use Windows short paths.

        This first failed because of the not supported tilde '~' token. But was fixed in the bug report #2196737 in the release 7(b126) .

        It seems to me that the bug report #6581254 is assumed to be fixed with the release 7(b126) . But this is not the case! One can use Windows short paths as a workaround but this does not solve the problem.The trouble with this work around is to find the correct Windows short path. In my application I ended up trying the short paths "PROGRA~1" ... to "PROGRA~9". And this only works if the application is installed in the Program Files folder. If the user uses another path with parenthesis this workaround will not work.

        Please have this bug fixed.

        Sorry for creating another bug report. But I could not find out how to add a comment to an existing bug report. According to the documentation of the bug database there should be a text area at the end of the bug report. But there is none...



        REGRESSION. Last worked in version 6u31


        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Use Windows short paths.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  valeriep Valerie Peng
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: