Project

General

Profile

Actions

Bug #31752

open

[Regression] hammer --output=json produces invalid json

Added by Oliver Freyermuth over 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

With any `fact list` query returning more than `entries_per_page` entries, invalid JSON is produced.

Example:
```
hammer --output=json fact list --search 'fact ~ network' | less -N
...
5001 }
5002 ]
5003 {
...
```
This JSON does not validate and can not be further processed.

Running:
```
```
hammer --output=json fact list --search 'fact ~ network' --per-page 100000
```
works.

I did not see this in Foreman 1.21, but see it in 2.3, likely a regression caused by pagination features.

Actions

Also available in: Atom PDF