Closed
Bug 554576
Opened 15 years ago
Closed 15 years ago
Force SCRIPT_NAME='' for darklaunch pages
Categories
(addons.mozilla.org Graveyard :: API, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
5.9
People
(Reporter: krupa.mozbugs, Assigned: jbalogh)
References
()
Details
(Whiteboard: [z][5.8.1])
Attachments
(2 files)
steps to reproduce:
Go to https://services.addons.mozilla.org/en-US/firefox/api/1.5/search/le
observed behavior:
URLs in search results include /z
example:
<link>
https://addons.mozilla.org/z/en-US/firefox/user/5119145/?src=api
</link>
Updated•15 years ago
|
Assignee: nobody → dd
Target Milestone: --- → 5.9
Assignee | ||
Comment 1•15 years ago
|
||
oremj: we should be forcing the SCRIPT_NAME to '' if X-amo-darklaunch is in the headers. Can we do that in Apache? If not, we can handle it in zamboni.wsgi.
Comment 2•15 years ago
|
||
When I rewrite from /z -> / it fixed the script_name, but for darklaunch stuff I think you'll need to use the X-amo-darklaunch header.
Assignee | ||
Comment 3•15 years ago
|
||
How can I tell from the request/environment that this is a darkluanch page?
Assignee: dd → jbalogh
OS: Mac OS X → All
Priority: -- → P2
Hardware: x86 → All
Summary: /z noticed in search result URLs in SAMO → Force SCRIPT_NAME='' for darklaunch pages
Version: unspecified → 4.x
Comment 4•15 years ago
|
||
I've been doing http.addHeader( "X-Zeus-DL-PT", "552612" );
so you can just check if X-Zeus-DL-PT is there.
Assignee | ||
Comment 5•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [z][5.8.1]
Reporter | ||
Comment 6•15 years ago
|
||
I still see /z in some of the URLS listed in
https://preview.addons.mozilla.org/en-US/firefox/api/1.5/search/le
<link>
https://preview.addons.mozilla.org/z/en-US/firefox/user/1503622/?src=api
</link>
reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 7•15 years ago
|
||
Assignee | ||
Comment 8•15 years ago
|
||
Assignee | ||
Comment 9•15 years ago
|
||
This is where I tried to fix the SCRIPT_NAME for dark launch pages: http://github.com/jbalogh/zamboni/commit/40a730200b.
It works locally when I have `RequestHeader set X-Zeus-DL-PT 55` in my httpd.conf. I can see the right header in the admin/env output in attachment 435651 [details]. Is it possible that zamboni.wsgi isn't getting loaded properly?
oremj, clouserw, any ideas?
Comment 10•15 years ago
|
||
Should I just uncomment:
# def application(env, start_response):
# start_response('200 OK', [('Content-Type', 'text/plain')])
# return '\n'.join('%s: %s' % item for item in sorted(env.items()))
Assignee | ||
Comment 11•15 years ago
|
||
oremj figured out that we need to set SCRIPT_URL: http://github.com/jbalogh/zamboni/commit/b3cbdc01
You shouldn't see /z in dark launch urls anymore.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•15 years ago
|
||
verified that "X-amo-darklaunch: z" pages do not have the /z in URLs
https://preview.addons.mozilla.org/en-US/firefox/api/1.5/search/le does not have any URLs with /z
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•