Actions
Issue #1574
closedThese Content type ID searches not working
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
1) Get the zoo5 repo from -> https://github.com/Katello/runcible/tree/master/test/fixtures/repositories/zoo5 (we just need the repo.) Steps below will assume file:///var/www/repositories/zoo5 is the destination
2)
$ pulp-admin rpm repo create --repo-id=ideate --feed=file:///var/www/repositories/zoo5
$ pulp-admin rpm repo sync run --repo-id=ideate
3) These urls are all returning blank responses. They should return content instead.
POST request to /pulp/api/v2/content/units/erratum/search/ with params {"criteria": {}}
POST request to /pulp/api/v2/content/units/rpm/search/ with params {"criteria": {}}
POST request to /pulp/api/v2/content/units/package_category/search/ with params {"criteria": {}}
POST request to /pulp/api/v2/content/units/package_group/search/ with params {"criteria": {}}
POST request to /pulp/api/v2/content/units/distribution/search/ with params {"criteria": {}}
Related issues
Updated by paji@redhat.com almost 9 years ago
- Copied from Issue #1563: Content type ID searches not working added
Updated by paji@redhat.com almost 9 years ago
Here is the trace I get for each of those
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: Unhandled Exception
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) 'NoneType' object has no attribute 'iteritems'
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) Traceback (most recent call last):
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) response = wrapped_callback(request, *callback_args, **callback_kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) return self.dispatch(request, *args, **kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) return handler(request, *args, **kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) value = method(self, *args, **kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py", line 130, in wrapper
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) return func(*args, **kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/search.py", line 127, in post
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) return self._generate_response(query, options, *args, **kwargs)
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/search.py", line 193, in _generate_response
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) *args, **kwargs))
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/content.py", line 293, in get_results
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) query['filters'] = serializer.translate_filters(serializer.model, query['filters'])
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/serializers/__init__.py", line 190, in _translate_filters
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) for key, value in filters.iteritems():
Jan 23 00:37:56 localhost pulp: pulp.server.webservices.middleware.exception:ERROR: (30415-83296) AttributeError: 'NoneType' object has no attribute 'iteritems'
Added by Austin Macdonald almost 9 years ago
Added by Austin Macdonald almost 9 years ago
Revision 9ddd4282 | View on GitHub
check for fields before translating them
closes #1574
Updated by amacdona@redhat.com almost 9 years ago
- Status changed from NEW to POST
- Assignee changed from semyers to amacdona@redhat.com
Updated by Anonymous almost 9 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|9ddd42824588eebf9c914a48633413a2fd35d545.
Updated by amacdona@redhat.com almost 9 years ago
- Related to Task #1578: Incoming searches should be translated by the model added
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
check for fields before translating them
closes #1574