From 6c418177885c5a18076e6d56a6a03c90697528e7 Mon Sep 17 00:00:00 2001 From: Russell Davis Date: Mon, 2 Dec 2013 14:01:31 -0800 Subject: [PATCH] Mapped source URLs should be relative to the sourcemap. The old code made it relative to the original source URL, which may not be in the same location. --- src/sentry/tasks/fetch_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/tasks/fetch_source.py b/src/sentry/tasks/fetch_source.py index 7d0fd2c76914ef..058895eb5d7711 100644 --- a/src/sentry/tasks/fetch_source.py +++ b/src/sentry/tasks/fetch_source.py @@ -287,7 +287,7 @@ def expand_javascript_source(data, **kwargs): # queue up additional source files for download for source in index.sources: - next_filename = urljoin(result.url, source) + next_filename = urljoin(sourcemap, source) if next_filename not in done_file_list: if index.content: source_code[next_filename] = (index.content[source], None)