Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1920

Backslash escaping appears to be broken in some Stellar contexts in the REPL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • None
    • None

    Description

      I tried 1-7 escapes on the last SPLIT with backslash and they all failed to escape properly. Adding a 3rd trailing quote allows the expression to error out and continue the REPL without quitting.

      [Stellar]>>> myval := 'hello,world'
      hello,world
      [Stellar]>>> SPLIT(myval, ';')
      [hello,world]
      [Stellar]>>> SPLIT(myval, ',')
      [hello, world]
      [Stellar]>>> SPLIT(myval, '\'')
      [hello,world]
      [Stellar]>>> SPLIT(myval, '\\')
      >
      

      Ran the REPL with the following command:

      mvn exec:java \
      -Dexec.mainClass="org.apache.metron.stellar.common.shell.cli.StellarShell" \
      -pl metron-stellar/stellar-common
      

      Attachments

        Issue Links

          Activity

            People

              justinleet Justin Leet
              mmiklavcic Michael Miklavcic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: