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

PQL's ~ operator doesn't work on resource parameters

    Details

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

      CentOS Linux release 7.3.1611 (Core)
      pe-puppetdb-4.2.5-1.el7.noarch

    • Template:
    • Acceptance Criteria:
      Hide

      ❯ curl -sSXGET 'http://localhost:8080/pdb/query/v4' \
          -d 'query=resources { parameters.content ~ "a"}'
      []
      

      Show
      ❯ curl -sSXGET 'http://localhost:8080/pdb/query/v4' \ -d 'query=resources { parameters.content ~ "a"}' []
    • Epic Link:
    • Team:
      Dumpling
    • Story Points:
      2
    • Sprint:
      PuppetDB 2017-04-05
    • QA Risk Assessment:
      Needs Assessment

      Description

      The ~ operator doesn't work on resource parameters, even when = does (see PDB-3284 for caveat).

      ❯ curl -sSXGET 'http://localhost:8080/pdb/query/v4' \
          -d 'query=resources { parameters.content = "a"}'
      []
      ❯ curl -sSXGET 'http://localhost:8080/pdb/query/v4' \
          -d 'query=resources { parameters.content ~ "a"}'
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
      <title>Error 500 </title>
      </head>
      <body>
      <h2>HTTP ERROR: 500</h2>
      <p>Problem accessing /pdb/query/v4. Reason:
      <pre>    Value does not match schema: (not (map? nil))</pre></p>
      <hr /><i><small>Powered by Jetty://</small></i>
      </body>
      </html>
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  daniel.parks Daniel Parks
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: