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

PDB should return content type for errors

    Details

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

      Description

      Example:

      [~/Documents/puppetdb] (master) $ curl -vvv -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["~","certname","**"]'
      *   Trying 127.0.0.1...
      * Connected to localhost (127.0.0.1) port 8080 (#0)
      > GET /pdb/query/v4/nodes HTTP/1.1
      > Host: localhost:8080
      > User-Agent: curl/7.44.0
      > Accept: */*
      > Content-Length: 27
      > Content-Type: application/x-www-form-urlencoded
      >
      * upload completely sent off: 27 out of 27 bytes
      < HTTP/1.1 400 Bad Request
      < Date: Mon, 11 Apr 2016 16:53:50 GMT
      < Content-Length: 61
      < Server: Jetty(9.2.10.v20150310)
      <
      * Connection #0 to host localhost left intact
      ERROR: invalid regular expression: quantifier operand invalid[~/Documents/puppetdb] (master) $
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wyatt Wyatt Alt
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support