Closed Bug 1065742 Opened 10 years ago Closed 10 years ago

Something is stripping double slashes from URLs

Categories

(Cloud Services :: Operations: Marketplace, task, P1)

x86
macOS
task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kumar, Assigned: jason)

References

Details

If you try to load this URL: 

https://payments-alt.allizom.org/api/v1/payments/app%3A%2F%2Ffxpay.allizom.org/in-app/

It's a 404 when it shouldn't be. I turned on Django debugging temporarily and it got translated into:

https://payments-alt.allizom.org/api/v1/payments/app:/fxpay.allizom.org/in-app/

Notice how app:/ should be app://

Is there something stripping double slashes? I'd *think* this is happening at the Django level because of where the decoding happens (or is that in nginx?). However, this problem is not happening for me using an nginx proxy into my Django runserver.
Blocks: 1065006
Assignee: server-ops-amo → jthomas
Priority: -- → P1
nginx merge_slashes is enabled by default [1]. I disabled merge_slashes on -dev marketplace nginx configuration [2].

[1] http://nginx.org/en/docs/http/ngx_http_core_module.html#merge_slashes
[2] https://github.com/mozilla-services/svcops-puppet/commit/41873bc8df263d977d70379c30209c6fb549f357
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in before you can comment on or make changes to this bug.