Jira (PDB-5065) Stop returning HTML error from the API

47 views
Skip to first unread message

Austin Blatt (Jira)

unread,
Mar 16, 2021, 7:32:03 PM3/16/21
to puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / Task PDB-5065
Stop returning HTML error from the API
Issue Type: Task Task
Assignee: Unassigned
Created: 2021/03/16 4:31 PM
Priority: Normal Normal
Reporter: Austin Blatt

If we don't do it as a part of PDB-5063, we should stop returning HTML errors because they are displayed poorly in the console

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Zachary Kent (Jira)

unread,
Mar 17, 2021, 2:39:03 PM3/17/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Labels: tsr-pdb-backlog

Austin Blatt (Jira)

unread,
Mar 18, 2021, 5:01:03 PM3/18/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Acceptance Criteria: - When catching API error, format the response without HTML

Example a good example
{code:java}
$ curl -G http://localhost:8080/pdb/query/v4   -H 'Content-Type:application/json'   --data-urlencode 'query=[ "from", "nodes", [ "extract", [ "certname", "=", "certname", "inactivee" ] ] ]'
Can't extract unknown 'nodes' fields '=' and 'inactivee'. Acceptable fields are 'latest_report_corrective_change', 'deactivated', 'expired', 'report_environment', 'certname', 'facts_timestamp', 'facts_environment', 'cached_catalog_status', 'latest_report_status', 'latest_report_hash', 'catalog_timestamp', 'latest_report_noop_pending', 'report_timestamp', 'latest_report_noop', 'catalog_environment', and 'latest_report_job_id'
{code}

Bogdan Irimie (Jira)

unread,
Mar 30, 2021, 3:05:03 AM3/30/21
to puppe...@googlegroups.com
Bogdan Irimie assigned an issue to Bogdan Irimie
Change By: Bogdan Irimie
Assignee: Bogdan Irimie

Bogdan Irimie (Jira)

unread,
Mar 30, 2021, 3:05:03 AM3/30/21
to puppe...@googlegroups.com
Bogdan Irimie assigned an issue to Oana Tanasoiu
Change By: Bogdan Irimie
Assignee: Bogdan Irimie Oana Tanasoiu

Bogdan Irimie (Jira)

unread,
Mar 30, 2021, 3:06:03 AM3/30/21
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Mar 30, 2021, 3:06:03 AM3/30/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-7.04.2021

Bogdan Irimie (Jira)

unread,
Mar 30, 2021, 4:20:02 AM3/30/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Mar 31, 2021, 9:43:03 AM3/31/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Labels: 2021-o1-kr2 c1 tsr-pdb-backlog
Reply all
Reply to author
Forward
0 new messages