Something is stripping double slashes from URLs

RESOLVED FIXED

Status

Cloud Services
Operations: Marketplace
P1
normal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: kumar, Assigned: jason)

Tracking

Firefox Tracking Flags

(Not tracked)

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)

Updated

3 years ago
Assignee: server-ops-amo → jthomas
Priority: -- → P1
(Assignee)

Comment 1

3 years ago
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
Last Resolved: 3 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.