Closed Bug 731097 Opened 12 years ago Closed 12 years ago

Move collection icon logic out of apache and into python

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

References

Details

Read bug 731089 for background and some info on doing this exact thing for add-on icons and for the already-done user images.  I think the rewrite rules here are:

>    RewriteRule ^([^/]+/[^/]+/|)images/collection_icon/((\d*?)\d{1,3}).png /img/uploads/collection_icons/$3/$2.png [L]

>    RewriteCond %{REQUEST_FILENAME} !-f
>    RewriteCond %{REQUEST_FILENAME} /img/uploads/collection_icons/+\d*.png$
>    RewriteRule (\d+)\.png$ /img/uploads/collection_icons/0/$1.png [L]
https://github.com/clouserw/zamboni/commit/98c27e043cb8fdb4597f5b35dbcc06bdfc8af3ec

QA: shouldn't notice much difference, just the URLs in comment 1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
looks good. Verified uploading collections icons at https://addons-dev.allizom.org/en-US/firefox/collections/krupakrupa/collection989/
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.