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

[Test Bug]The test script of Scene Builder (verify_SB_keys.sh) has a bug for checking file association and path key

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx

      The test script verify_SB_keys.sh has a bug for checking file association.

      The bug lies in the following line:

      sActual="`reg query "HKEY_CLASSES_ROOT\\fxmlfile\\shell\\Open\\command" 2>/dev/null | \
         grep "$sLeadString" | awk '{ for(i=3; i<=NF; i++) {print $i}}' | sed "s#\\\\\#/#g"`"

      The command awk '{ for(i=3; i<=NF; i++) {print $i}}' makes the output to have separate new lines:
      for instance, an example output looks like this:
       "C:\Program
      Files
      (x86)\Oracle\JavaFX
      Scene
      Builder
      1.0\bin\scenebuilder.exe"

      However, the expected output should be like this:
      C:/Program Files (x86)/Oracle/JavaFX Scene Builder 1.0/bin/scenebuilder.exe

      Similarly, the code that checks for Scene Builder path key has the same issue.
      Here is the code snippet:
      sActual="`reg query "HKLM\\Software${sWowKey}\\Oracle\\JavaFX Scene Builder\\\\$sVersion" 2>/dev/null | \
         grep Path | awk '{ for(i=3; i<=NF; i++) {print $i}}' | sed "s#\\\\\#/#g"`"

            Unassigned Unassigned
            chizhou Alex Zhou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: