Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2891

Spaces around parens in PQL generate a parse error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.2.0
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      [rw@pe-mom2-test ~]$ curl -sXGET localhost:8080/pdb/query/v4 -d 'query=resources { type = "Foo" and (title = "bar" or title = "baz")'}
      []
       
      [rw@pe-mom2-test ~]$ curl -sXGET localhost:8080/pdb/query/v4 -d 'query=resources { type = "Foo" and ( title = "bar" or title = "baz" ) }'
      PQL parse error at line 1, column 31:
       
      resources { type = "Foo" and ( title = "bar" or title = "baz" ) }
                                    ^
       
      Expected one of:
       
      events
      edges
      fact_contents
      fact_paths
      factsets
      environments
      nodes
      resources
      catalogs
      reports
      facts
      #"[a-zA-Z0-9_]+\??"
      [
      (
      !
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                andrew.roetker AJ Roetker
                Reporter:
                lexa Lexa Whitehurst
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: