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

Behaviour change with escape character in 8u231

    XMLWordPrintable

Details

    Description

      Since 8u231, the existing JAVA code behaviour has changed.

      Due to this, crsctl command failed while checking for network and vip resources.

      String resourceFilter = "-w \\\"TYPE = test.type\\\""};

      crsctl stat res + " " + resourceFilter ==> command failed.

      During execution, the above string argument should be converted to -w \"TYPE = test.type\" and passed to c executable(exectask.exe to run.

      But its not happening. Java layer passing the same string ("-w \\\"TYPE =
      test.type\\\"") to C executable(exectask.exe) and failed.

      C:/TestUser/AppData/Local/Temp/2\CVU_20.0.0.0.0_test\exectask.exe -runexe
      C:\ADE\test\.ade\view_storage\test_wi2\oracle\work\crshome\crs_crsr100\bin\crsctl stat res -w \\\"TYPE = test_net1.type\\\"

      <CV_VAL>Parse error:
        '=' is an invalid argument

      Usage:
        crsctl status resource [<resName>[...]|-w <filter>] [-p [-attr<attribName>[,...] [-noname]] |-v [
      -attr <attribName>[,...] [-noname]]] | [-f|-l|-g] | [[-k <cid>|-n <server>]
      [-e [-p|-v]] [-d <did>]] | [-s -k <cid> [-d <did>]]

      </CV_VAL><CV_VRES>1</CV_VRES><CV_ERES>0</CV_ERES><INITCMD>C:\Users\test\AppData\Local\Temp\2\CVU_20.0.0.0.0_test\exectask.exe -runexe C:\ADE\test\.ade\view_storage\test_wi2\oracle\work\crshome\crs_crsr100\bin\crsctl stat res -w \"TYPE = test.type\"
      </INITCMD><HOST>slc15rty</HOST><ERROR_LOG><ERR_DESC><ENTITY>GLOBAL</ENTITY><ERR_CMD>

      Attachments

        Activity

          People

            coffeys Sean Coffey
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: