Hide Forgot
Description of problem: doing a GET on /tasks/ gives a list of task objects which don't have a _href attribute set. On the other hand, GET /tasks/<task.task_id>/ yields a task object with _href attribute set Version-Release number of selected component (if applicable): 2.2 How reproducible: Always Steps to Reproduce: 1. GET curl -sk https://admin:admin@pulp.example.com/pulp/api/v2/tasks/ 2. all task object are missing the _href attribute Actual results: doing a GET on /tasks/ gives a list of task objects which don't have a _href attribute set. Expected results: a list of task objects with a _href attribute returned instead
https://github.com/pulp/pulp/pull/853
build: 2.4.0-0.7.beta
verified [root@pulp-24-server upload]# rpm -qa pulp-server pulp-server-2.4.0-0.9.beta.el6.noarch [root@pulp-24-server upload]# u'_id': {u'$oid': u'534d43b31df6a21bcdd3fc9f'}, u'_ns': u'task_status', u'finish_time': u'2014-04-15T14:35:32Z', u'queue': u'reserved_resource_worker-0.redhat.com', u'result': None, u'spawned_tasks': [], u'start_time': u'2014-04-15T14:35:31Z', u'state': u'finished', u'tags': [u'pulp:repository:proxy1', u'pulp:action:delete'], u'task_id': u'72354d02-ade4-48aa-9bd7-89f2a893ddd0', u'task_type': u'pulp.server.tasks.repository.delete'}, {u'_href': u'/pulp/api/v2/tasks/802e23c3-716f-4c14-a5b0-d51bc4aae309/', u'_id': {u'$oid': u'534d44991df6a21bcdd3fca3'}, u'_ns': u'task_status', u'finish_time': u'2014-04-15T14:39:21Z', u'queue': u'reserved_resource_worker-0.redhat.com', u'result': None, u'spawned_tasks': [], u'start_time': u'2014-04-15T14:39:21Z', u'state': u'finished', u'tags': [u'pulp:repository:pulp', u'pulp:action:delete'], u'task_id': u'802e23c3-716f-4c14-a5b0-d51bc4aae309', u'task_type': u'pulp.server.tasks.repository.delete'},
This has been fixed in Pulp 2.4.0-1.