Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-3054

GfshParser is unnecessarily interpreting escaped sequences in command options.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • gfsh
    • None

    Description

      The following commands failed on windows because GfshParser is treating \r in the pathname as a carriage return.

      gfsh>describe offline-disk-store --name=testDiskStore --disk-dirs=R:\var\vcap\data\regrResults\cli\2017-06-07-13-1942\alterCompressor-0608-035833\vm_2_dataStore1_disk_1

      [error 2017/06/08 10:18:30.655 PDT <Gfsh Launcher> tid=0x1e] Unable to create di
      egrResults\cli\2017-06-07-13-19-42\alterCompressor-0608-035833\vm_2_dataStore1_d
      isk_1
      org.apache.geode.GemFireIOException: Unable to create directory : R:\var\vcap\da
      egrResults\cli\2017-06-07-13-19-42\alterCompressor-0608-035833\vm_2_dataStore1_d
      isk_1
      at org.apache.geode.internal.cache.DiskStoreFactoryImpl.checkIfDirectori
      esExist(DiskStoreFactoryImpl.java:211)
      at org.apache.geode.internal.cache.DiskStoreFactoryImpl.setDiskDirs(Disk
      StoreFactoryImpl.java:232)
      at org.apache.geode.internal.cache.DiskStoreImpl.createForOffline(DiskSt
      oreImpl.java:4260)
      at org.apache.geode.internal.cache.DiskStoreImpl.createForOffline(DiskSt
      oreImpl.java:4220)
      at org.apache.geode.internal.cache.DiskStoreImpl.dumpInfo(DiskStoreImpl.
      java:4305)
      at org.apache.geode.management.internal.cli.commands.DiskStoreCommands.d
      escribeOfflineDiskStore(DiskStoreCommands.java:1154)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils
      .java:216)
      at org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy.
      execute(GfshExecutionStrategy.java:91)
      at org.springframework.shell.core.AbstractShell.executeCommand(AbstractS
      hell.java:134)
      at org.apache.geode.management.internal.cli.shell.Gfsh.promptLoop(Gfsh.j
      ava:1022)
      at org.springframework.shell.core.JLineShell.run(JLineShell.java:179)
      at java.lang.Thread.run(Thread.java:748)

      Could not process command due to error. An error occurred while describing offli
      egrResults\cli\2017-06-07-13-19-42\alterCompressor-0608-035833\vm_2_dataStore1_d
      isk_1

      gfsh>

      Attachments

        Activity

          People

            jinmeiliao Jinmei Liao
            jinmeiliao Jinmei Liao
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: