Closed Bug 430278 Opened 16 years ago Closed 16 years ago

Update blocklist to handle version 2 URL schema

Categories

(Toolkit :: Blocklist Policy Requests, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: morgamic, Assigned: morgamic)

References

Details

(Whiteboard: [server side][needed before code freeze])

Attachments

(1 file)

firefox 3 has a new URL schema as defined in bug 430120 and the service needs to be updated to allow it.

The script itself doesn't need to be adjusted, just the apache config.

Current rewrites need to be appended to:
    RewriteRule ^blocklist/(.+)/(.+)/(.+)[/]{0,1}$ services/blocklist.php?reqVersion=$1&appGuid=$2&appVersion=$3 [L]

Dave, can you post a sample blocklist URL here?
I was going to ask you if there was a particular form that you wanted, if not maybe we go with something like this:

https://addons.mozilla.org/blocklist/2/%APP_ID%/%APP_VERSION%/
%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/blocklist.xml

This is basically the same as the current schema with the extra information tacked onto the end.
Great - thanks Dave!
Blocks: 430120
Just to confirm what was said on IRC, the blocklist.xml won't be there so the url form will be:

https://addons.mozilla.org/blocklist/2/%APP_ID%/%APP_VERSION%/
%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/
Jeremy - this lets the version 2 URLs work.  The script ignores params because at the moment they don't dictate any business logic.
Assignee: nobody → morgamic
Status: NEW → ASSIGNED
Attachment #317442 - Flags: review?(oremj)
This blocks a blocker, shouldn't this be "blocking‑firefox3+" then?
Flags: blocking-firefox3+
Whiteboard: [server side][needed before code freeze]
Jeremy?
Comment on attachment 317442 [details] [diff] [review]
v1, adjusted .htaccess

Checked in r12523 -- not scheduled for release until next Thursday (3.4.1).
Attachment #317442 - Flags: review?(oremj)
Will see if we can push this sooner... AMO doesn't have any scheduled updates until 5/1 though.
Comment on attachment 317442 [details] [diff] [review]
v1, adjusted .htaccess

Rewrites look good.
Attachment #317442 - Flags: review+
Product: addons.mozilla.org → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: