Project

Profile

Help

Issue #4903

closed

python bindings are unable to nullify repository description

Added by mdellweg over 5 years ago. Updated about 4 years ago.

Status:
CLOSED - WONTFIX
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
Sprint:
Quarter:

Description

This probably affects other nullifyable database fields, too.

Using httpie the following commands are both able to set the description to null:

$ http --json PUT :24817/pulp/api/v3/repositories/cebe653e-f8ca-4b2f-acd0-93c5edf32b48/ description:=null name:=\"test_repo\"
$ http --json PATCH :24817/pulp/api/v3/repositories/cebe653e-f8ca-4b2f-acd0-93c5edf32b48/ description:=null

However neither repositories_update (PUT) nor repositories_partial_update (PATCH) are able to perform that transformation.

See the python example in the attachment.


Files

test_repo_bindings.py (1.2 KB) test_repo_bindings.py Reproducer mdellweg, 06/03/2019 08:55 PM

Also available in: Atom PDF