{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/2879","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/2879/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/2879/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/2879/events","html_url":"https://github.com/ansible/awx/issues/2879","id":388208169,"node_id":"MDU6SXNzdWUzODgyMDgxNjk=","number":2879,"title":"Activity Stream v1 version server error with token entries","user":{"login":"AlanCoding","id":1385596,"node_id":"MDQ6VXNlcjEzODU1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1385596?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"labels":[{"id":687169246,"node_id":"MDU6TGFiZWw2ODcxNjkyNDY=","url":"https://api.github.com/repos/ansible/awx/labels/component:api","name":"component:api","color":"fbca04","default":false},{"id":686203630,"node_id":"MDU6TGFiZWw2ODYyMDM2MzA=","url":"https://api.github.com/repos/ansible/awx/labels/state:in_progress","name":"state:in_progress","color":"BCF5A9","default":false},{"id":607283748,"node_id":"MDU6TGFiZWw2MDcyODM3NDg=","url":"https://api.github.com/repos/ansible/awx/labels/type:bug","name":"type:bug","color":"F79F81","default":false}],"state":"open","locked":false,"assignee":{"login":"AlanCoding","id":1385596,"node_id":"MDQ6VXNlcjEzODU1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1385596?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlanCoding","id":1385596,"node_id":"MDQ6VXNlcjEzODU1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1385596?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-06T13:13:13Z","updated_at":"2018-12-07T16:16:30Z","closed_at":null,"author_association":"MEMBER","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n - API\r\n\r\n##### SUMMARY\r\nVersioning problem - tokens cause server errors in `/api/v1/activity_stream/` or similar\r\n\r\n##### ENVIRONMENT\r\n* AWX version: X.Y.Z\r\n* AWX install method: openshift, minishift, docker on linux, docker for mac, boot2docker\r\n* Ansible version:  X.Y.Z\r\n* Operating System:\r\n* Web Browser:\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\nCreate a token\r\n\r\n##### EXPECTED RESULTS\r\n\r\nView activity stream for that action in v1\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\n2018-12-06 02:02:22,963 ERROR    django.request Internal Server Error: /api/v1/activity_stream/\r\nTraceback (most recent call last):\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/exception.py\", line 41, in inner\r\n    response = get_response(request)\r\n  File \"/lib/python2.7/site-packages/awx/wsgi.py\", line 71, in _legacy_get_response\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py\", line 249, in _legacy_get_response\r\n    response = self._get_response(request)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py\", line 187, in _get_response\r\n    response = self.process_exception_by_middleware(e, request)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py\", line 185, in _get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/utils/decorators.py\", line 185, in inner\r\n    return func(*args, **kwargs)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/decorators/csrf.py\", line 58, in wrapped_view\r\n    return view_func(*args, **kwargs)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/generic/base.py\", line 68, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"/lib/python2.7/site-packages/awx/api/generics.py\", line 327, in dispatch\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/views.py\", line 494, in dispatch\r\n    response = self.handle_exception(exc)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/views.py\", line 454, in handle_exception\r\n    self.raise_uncaught_exception(exc)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/views.py\", line 491, in dispatch\r\n    response = handler(request, *args, **kwargs)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/generics.py\", line 201, in get\r\n    return self.list(request, *args, **kwargs)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/mixins.py\", line 45, in list\r\n    return self.get_paginated_response(serializer.data)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/serializers.py\", line 742, in data\r\n    ret = super(ListSerializer, self).data\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/serializers.py\", line 262, in data\r\n    self._data = self.to_representation(self.instance)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/serializers.py\", line 660, in to_representation\r\n    self.child.to_representation(item) for item in iterable\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/serializers.py\", line 504, in to_representation\r\n    ret[field.field_name] = field.to_representation(attribute)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/fields.py\", line 1816, in to_representation\r\n    return method(value)\r\n  File \"/lib/python2.7/site-packages/awx/api/serializers.py\", line 338, in _get_related\r\n  File \"/lib/python2.7/site-packages/awx/api/serializers.py\", line 4958, in get_related\r\n  File \"/lib/python2.7/site-packages/awx/api/serializers.py\", line 621, in reverse\r\n  File \"/lib/python2.7/site-packages/awx/api/versioning.py\", line 52, in reverse\r\n  File \"/lib/python2.7/site-packages/awx/api/versioning.py\", line 23, in drf_reverse\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/reverse.py\", line 63, in _reverse\r\n    url = django_reverse(viewname, args=args, kwargs=kwargs, **extra)\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/urls/base.py\", line 91, in reverse\r\n    return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))\r\n  File \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/urls/resolvers.py\", line 497, in _reverse_with_prefix\r\n    raise NoReverseMatch(msg)\r\nNoReverseMatch: Reverse for 'o_auth2_token_detail' with keyword arguments '{'pk': 1L, u'version': u'v1'}' not found. 1 pattern(s) tried: [u'api/(?P<version>(v2))/tokens/(?P<pk>[0-9]+)/$']\r\n```\r\n\r\nToken exists, but does not exist in v1\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\n<!-- Include any links to sosreport, database dumps, screenshots or other\r\ninformation. -->\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/445282752","html_url":"https://github.com/ansible/awx/issues/2879#issuecomment-445282752","issue_url":"https://api.github.com/repos/ansible/awx/issues/2879","id":445282752,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTI4Mjc1Mg==","user":{"login":"AlanCoding","id":1385596,"node_id":"MDQ6VXNlcjEzODU1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1385596?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T16:16:30Z","updated_at":"2018-12-07T16:16:30Z","author_association":"MEMBER","body":"Link fix https://github.com/ansible/awx/pull/2880"}}
{"actor":{"display_login":"AlanCoding"}}