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 #1

Updated by Oliver Freyermuth over 3 years ago

  • Found in Releases 2.3.2 added
  • Found in Releases deleted (2.3.3)
Actions #2

Updated by Oliver Freyermuth almost 2 years ago

  • Found in Releases 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4 added
Actions

Also available in: Atom PDF