Project

Profile

Help

Issue #3843

closed

Server translates null to "" for repo description, breaking api bindings

Added by jsherril@redhat.com over 6 years ago. Updated over 4 years ago.

Status:
CLOSED - WORKSFORME
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings, Katello
Sprint:
Sprint 40
Quarter:

Description

On pulp 3, Using the generated swagger bindings, i was unable to fetch my repositories, throwing:

ArgumentError: invalid value for "description", the character length must be great than or equal to 1.

The problem was that my repositories had a 'null' description, but the api is not returning null, its returning empty string (""). There seems to be some validation on the model side of the apipie bindings that is getting tripped up on this.

Also available in: Atom PDF