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

query fails when colons exist in title name /resources/<TYPE>/<TITLE>

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 4.0.0
    • Fix Version/s: PDB 4.0.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1

      Description

      This query use to work in PuppetDB 3.x

      1. curl 'http://localhost:8080/pdb/query/v4/resources/Class/Yum::Base'; echo
        Not Found

      However a title without colons works just fine

      1. curl -s 'http://localhost:8080/pdb/query/v4/resources/Class/Yum' | wc -c
        69047

      As you can see passing in a query flag returns valid results

      1. curl -s -G 'http://localhost:8080/pdb/query/v4/resources/Class' --data-urlencode 'query=["=", "title", "Yum::Base"]' | wc -c
        86429

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pyther Matthew Gyurgyik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support