r108580 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108579‎ | r108580 | r108581 >
Date:00:47, 11 January 2012
Author:ben
Status:ok
Tags:
Comment:
fixes comment from r108569
Modified paths:
  • /trunk/extensions/SwiftMedia/wmf/rewrite.py (modified) (history)

Diff [purge]

Index: trunk/extensions/SwiftMedia/wmf/rewrite.py
@@ -180,7 +180,7 @@
181181 # http://upload.wikimedia.org/wikipedia/commons/a/aa/000_Finlanda_harta.PNG
182182 # http://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/000_Finlanda_harta.PNG/75px-000_Finlanda_harta.PNG
183183 # http://upload.wikimedia.org/wikipedia/commons/thumb/archive/b/b6/20101108115418!Gilbert_Stuart_Williamstown_Portrait_of_George_Washington.jpg/100px-Gilbert_Stuart_Williamstown_Portrait_of_George_Washington.jpg
184 - match = re.match(r'/(?P<proj>[^/]*?)/(?P<lang>[^/]*?)/(?P<thumb>thumb/)?(?P<archive>(temp|archive)/)?(?P<shard>[0-9a-f]/[0-9a-f]{2}/)?(?P<path>.*)', req.path)
 184+ match = re.match(r'/(?P<proj>[^/]+?)/(?P<lang>[^/]+?)/(?P<thumb>thumb/)?(?P<archive>(temp|archive)/)?(?P<shard>[0-9a-f]/[0-9a-f]{2}/)?(?P<path>.*)', req.path)
185185 if match:
186186 # Our target URL is as follows (example):
187187 # https://alsted.wikimedia.org:8080/v1/AUTH_6790933748e741268babd69804c6298b/wikipedia-en-25/Machinesmith.png

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108569added feature to shard on some, all, or no containers...ben00:06, 11 January 2012

Status & tagging log