Permalink
Browse files

Merge pull request #337 from rhelmer/bug541936-dmp-not-dump

Make raw dump link point to .dmp instead of .dump from web UI
  • Loading branch information...
2 parents 352a244 + 59f60ce commit d9011c7cc0e66a4dc1bfb854aa4458c1a77abd37 @rhelmer rhelmer committed May 6, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 crashstats/crashstats/tests/test_views.py
  2. +1 −1 crashstats/crashstats/urls.py
  3. +2 −2 crashstats/crashstats/views.py
@@ -2503,7 +2503,7 @@ def mocked_get(url, **options):
eq_(json.loads(response.content),
{"foo": "bar", "stuff": 123})
- dump_url = reverse('crashstats.raw_data', args=(crash_id, 'dump'))
+ dump_url = reverse('crashstats.raw_data', args=(crash_id, 'dmp'))
response = self.client.get(dump_url)
eq_(response.status_code, 200)
eq_(response['Content-Type'], 'application/octet-stream')
@@ -123,7 +123,7 @@
url(r'^signature_summary/json_data$',
views.signature_summary,
name='crashstats.signature_summary'),
- url(r'^rawdumps/(?P<crash_id>[\w-]{36}).(?P<extension>json|dump)$',
+ url(r'^rawdumps/(?P<crash_id>[\w-]{36}).(?P<extension>json|dmp)$',
views.raw_data,
name='crashstats.raw_data'),
url(r'^crash_trends' + products + '$',
@@ -862,7 +862,7 @@ def report_index(request, crash_id):
)
data['raw_dump_urls'] = [
- reverse('crashstats.raw_data', args=(crash_id, 'dump')),
+ reverse('crashstats.raw_data', args=(crash_id, 'dmp')),
reverse('crashstats.raw_data', args=(crash_id, 'json'))
]
@@ -1712,7 +1712,7 @@ def raw_data(request, crash_id, extension):
if extension == 'json':
format = 'meta'
content_type = 'application/json'
- elif extension == 'dump':
+ elif extension == 'dmp':
format = 'raw_crash'
content_type = 'application/octet-stream'
else:

0 comments on commit d9011c7

Please sign in to comment.