Project

Profile

Help

Issue #1933

closed

Restricting fields on user search does not work as expected

Added by amacdona@redhat.com almost 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.8.3
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

From https://pulp.plan.io/issues/1332#note-11

This is broken in 2.8.3. As an example, given an HTTP GET request to https://pulp.example.com/pulp/api/v2/users/search/?field=name, the following response might be returned:

[{u'_href': u'/pulp/api/v2/users/None/',
  u'_id': {u'$oid': u'5734c946e8ec9868b57fc652'},
  u'login': None,
  u'name': u'admin'},
 {u'_href': u'/pulp/api/v2/users/None/',
  u'_id': {u'$oid': u'5734d925e8ec98692112327b'},
  u'login': None,
  u'name': u'46f0b926-891b-4567-b6f8-fbe19e2e0c7c'},
 {u'_href': u'/pulp/api/v2/users/None/',
  u'_id': {u'$oid': u'5734d926e8ec986922fdec16'},
  u'login': None,
  u'name': u'051a9641-3e9d-47ad-9635-3b68e0b29d9b'},
 {u'_href': u'/pulp/api/v2/users/None/',
  u'_id': {u'$oid': u'5734d927e8ec986920331c71'},
  u'login': None,
  u'name': u'71195cb7-855e-4c83-8174-8169060d30ec'}]

The following Pulp Smash test cases demonstrate this issue:

Also available in: Atom PDF