[HOME PAGE] [STORES] [CLASSICISTRANIERI.COM] [FOTO] [YOUTUBE CHANNEL]


Bug 8367 – punctuation in image name causes numerous problems

Last modified: 2007-05-30 19:20:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8367 - punctuation in image name causes numerous problems
punctuation in image name causes numerous problems
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Image:US...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-24 14:57 UTC by Mike Chapman
Modified: 2007-05-30 19:20 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mike Chapman 2006-12-24 14:57:44 UTC
Punctuation in an image name on wikipedia causes numerous problems.  Known to be a 
problem with ampersand and plus, also maybe dashes - presumably all punctuation.  The 
thumbnails generated from the image will show up briefly then disappear and cannot be re-
generated.  Causes other problems like the "image" tab showing up as red (doesn't 
exist).  Also if the image is updated, new thumbnails will not be generated to replace 
the existing ones even after a purge.  This appears to be a recent bug as older images 
don't suffer from this.
Comment 1 Cesar Eduardo Barros 2006-12-24 23:30:21 UTC
When testing (after seeing a comment on [[WP:VPT]]), I found some bizarre cache
behaviour on the broken thumbnails.

First, two working ones, for comparison purposes:

$ telnet localhost 3128
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD
http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg/800px-USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg
HTTP/1.0
Host: upload.wikimedia.org

HTTP/1.0 200 OK
X-Powered-By: PHP/5.1.4
Content-Type: image/jpeg
Date: Sun, 24 Dec 2006 23:14:22 GMT
Server: lighttpd/1.4.13
X-Cache: MISS from sq7.wikimedia.org
X-Cache-Lookup: MISS from sq7.wikimedia.org:80
X-Cache: MISS from delta.home.cesarb.net
X-Cache-Lookup: MISS from delta.home.cesarb.net:3128
Proxy-Connection: close

Connection closed by foreign host.

$ telnet localhost 3128
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD
http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg/741px-USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg
HTTP/1.0
Host: upload.wikimedia.org

HTTP/1.0 200 OK
X-Powered-By: PHP/5.1.4
Content-Type: image/jpeg
Date: Sun, 24 Dec 2006 23:16:29 GMT
Server: lighttpd/1.4.13
X-Cache: MISS from sq14.wikimedia.org
X-Cache-Lookup: MISS from sq14.wikimedia.org:80
X-Cache: MISS from delta.home.cesarb.net
X-Cache-Lookup: MISS from delta.home.cesarb.net:3128
Proxy-Connection: close

Connection closed by foreign host.


And then, two broken ones:

$ telnet localhost 3128
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD
http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg/740px-USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg
HTTP/1.0
Host: upload.wikimedia.org

HTTP/1.0 200 OK
Content-Type: image/jpeg
ETag: "6463846857823763183"
Accept-Ranges: bytes
Last-Modified: Sat, 21 Oct 2006 23:58:58 GMT
Content-Length: 260
Date: Sun, 24 Dec 2006 22:45:37 GMT
Server: lighttpd/1.4.13
X-Cache: HIT from sq9.wikimedia.org
X-Cache-Lookup: HIT from sq9.wikimedia.org:80
X-Cache: HIT from sq5.wikimedia.org
X-Cache-Lookup: HIT from sq5.wikimedia.org:80
X-Cache: HIT from sq10.wikimedia.org
X-Cache-Lookup: HIT from sq10.wikimedia.org:80
Age: 1755
X-Cache: HIT from delta.home.cesarb.net
X-Cache-Lookup: HIT from delta.home.cesarb.net:3128
Proxy-Connection: close

Connection closed by foreign host.

$ telnet localhost 3128
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET
http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg/250px-USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg
HTTP/1.0
Host: upload.wikimedia.org

HTTP/1.0 200 OK
Content-Type: image/jpeg
ETag: "-3342178414438865210"
Accept-Ranges: bytes
Last-Modified: Fri, 13 Oct 2006 16:54:09 GMT
Content-Length: 260
Date: Mon, 20 Nov 2006 18:44:45 GMT
Server: lighttpd/1.4.13
X-Cache: HIT from sq2.pmtpa.wmnet
X-Cache-Lookup: HIT from sq2.pmtpa.wmnet:80
X-Cache: HIT from sq8.pmtpa.wmnet
X-Cache-Lookup: HIT from sq8.pmtpa.wmnet:80
X-Cache: HIT from sq4.pmtpa.wmnet
X-Cache-Lookup: HIT from sq4.pmtpa.wmnet:80
X-Cache: HIT from sq14.wikimedia.org
X-Cache-Lookup: HIT from sq14.wikimedia.org:80
X-Cache: HIT from sq13.wikimedia.org
X-Cache-Lookup: HIT from sq13.wikimedia.org:80
X-Cache: HIT from sq4.wikimedia.org
X-Cache-Lookup: HIT from sq4.wikimedia.org:80
X-Cache: HIT from sq7.wikimedia.org
X-Cache-Lookup: HIT from sq7.wikimedia.org:80
X-Cache: HIT from sq1.wikimedia.org
X-Cache-Lookup: HIT from sq1.wikimedia.org:80
X-Cache: HIT from sq4.wikimedia.org
X-Cache-Lookup: HIT from sq4.wikimedia.org:80
X-Cache: HIT from sq2.wikimedia.org
X-Cache-Lookup: HIT from sq2.wikimedia.org:80
X-Cache: HIT from sq5.wikimedia.org
X-Cache-Lookup: HIT from sq5.wikimedia.org:80
X-Cache: HIT from sq12.wikimedia.org
X-Cache-Lookup: HIT from sq12.wikimedia.org:80
X-Cache: HIT from sq2.wikimedia.org
X-Cache-Lookup: HIT from sq2.wikimedia.org:80
X-Cache: HIT from sq8.wikimedia.org
X-Cache-Lookup: HIT from sq8.wikimedia.org:80
X-Cache: HIT from sq10.wikimedia.org
X-Cache-Lookup: HIT from sq10.wikimedia.org:80
X-Cache: HIT from sq14.wikimedia.org
X-Cache-Lookup: HIT from sq14.wikimedia.org:80
X-Cache: HIT from sq2.wikimedia.org
X-Cache-Lookup: HIT from sq2.wikimedia.org:80
X-Cache: HIT from sq4.wikimedia.org
X-Cache-Lookup: HIT from sq4.wikimedia.org:80
X-Cache: HIT from sq10.wikimedia.org
X-Cache-Lookup: HIT from sq10.wikimedia.org:80
X-Cache: HIT from delta.home.cesarb.net
X-Cache-Lookup: HIT from delta.home.cesarb.net:3128
Proxy-Connection: close

<html><head>
        <title>Bad title</title>
        <body>
<h1>Bad title</h1>
<p>The requested page title was invalid, empty, or an incorrectly linked
inter-language or inter-wiki title. It may contain one more characters which
cannot be used in titles.</p>
</body></html>Connection closed by foreign host.


The X-Cache header lines seem positively strange. Also, unless I'm reading the
code wrong, the Cache-Control and Content-Type headers which should be there
(from thumb.php) are missing.
Comment 2 Cesar Eduardo Barros 2006-12-25 00:23:31 UTC
Following a suggestion at [[WP:VPT#149px works but 150px doesn't]], I added a 1
at the end of one of the URLs
(http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg/250px-USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg1)
and it regenerated one of the broken thumbnails.
Comment 3 Brion Vibber 2006-12-25 04:59:09 UTC
The image tab is red because there's no local page on en.wikipedia.org; the
image is hosted on Commons.

Am investigating the thumb issue; there seem to be some uggy things with the
thumbnail caching system.
Comment 4 Brion Vibber 2006-12-25 05:40:46 UTC
I've adjusted the caching script to, hopefully, work correctly now for this case.

Can you confirm correct behavior now?
Comment 5 Cesar Eduardo Barros 2006-12-25 16:02:41 UTC
After purging a couple of times on commons, the 740px thumbnail is still in the
broken state:

$ telnet upload.wikimedia.org 80
Trying 66.230.200.228...
Connected to upload.pmtpa.wikimedia.org.
Escape character is '^]'.
GET
/wikipedia/commons/thumb/8/81/USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg/740px-USS_John_C._Stennis_%28CVN-74%29_%26_HMS_Illustrious_%28R_06%29.jpg
HTTP/1.0
Host: upload.wikimedia.org

HTTP/1.0 200 OK
Content-Type: image/jpeg
ETag: "6463846857823763183"
Accept-Ranges: bytes
Last-Modified: Sat, 21 Oct 2006 23:58:58 GMT
Content-Length: 260
Date: Sun, 24 Dec 2006 22:45:37 GMT
Server: lighttpd/1.4.13
X-Cache: HIT from sq9.wikimedia.org
X-Cache-Lookup: HIT from sq9.wikimedia.org:80
X-Cache: HIT from sq5.wikimedia.org
X-Cache-Lookup: HIT from sq5.wikimedia.org:80
Age: 61892
X-Cache: HIT from sq10.wikimedia.org
X-Cache-Lookup: HIT from sq10.wikimedia.org:80
X-Cache: MISS from sq9.wikimedia.org
X-Cache-Lookup: MISS from sq9.wikimedia.org:80
Via: 1.0 sq9.wikimedia.org:80 (squid/2.6.STABLE5), 1.0 sq5.wikimedia.org:80
(squid/2.6.STABLE5), 1.0 sq10.wikimedia.org:80 (squid/2.6.STABLE5), 1.0
sq9.wikimedia.org:80 (squid/2.6.STABLE5)
Connection: close

<html><head>
        <title>Bad title</title>
        <body>
<h1>Bad title</h1>
<p>The requested page title was invalid, empty, or an incorrectly linked
inter-language or inter-wiki title. It may contain one more characters which
cannot be used in titles.</p>
</body></html>Connection closed by foreign host.


The problem might be fixed, but purging doesn't seem to be enough to clear the
bogus entries. Unfortunately, I don't know how to check if the problem which
created these bogus entries in the first place has really been fixed. The crazy
"add 1 to the end" trick would probably fix this one too, but I'll leave it
broken to help debugging.
Comment 6 Brion Vibber 2006-12-27 02:11:05 UTC
I cleared the old bad files for this particular entry manually, and it now shows
properly for me.

Purge doesn't clear them, and it's not saving new, correct copies on the caching
thumbnail server;
presumably fetching from the main server.

Sigh.
Comment 7 Duncan Harris 2007-05-27 17:44:18 UTC
Wouldn't it just be easier to disallow new uploads which contain bad characters?
Comment 8 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-27 18:14:45 UTC
We don't want to prohibit punctuation in image names.  This is a bug in the caching system that should be fixed there, as I understand it.
Comment 9 JeLuF 2007-05-27 18:20:07 UTC
Are there still any current problems? Brion said in December that he fixed it and there wasn't any update since.
Comment 10 Brion Vibber 2007-05-30 19:20:36 UTC
No problems currently that I'm aware of, and various changes have been made in infrastructure. If problems continue, please provide details.

Note You need to log in before you can comment on or make changes to this bug.


Contents Listing Alphabetical by Author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Unknown Other

Contents Listing Alphabetical by Title:
# A B C D E F G H I J K L M N O P Q R S T U V W Y Z Other

Medical Encyclopedia

Browse by first letter of topic:


A-Ag Ah-Ap Aq-Az B-Bk Bl-Bz C-Cg Ch-Co
Cp-Cz D-Di Dj-Dz E-Ep Eq-Ez F G
H-Hf Hg-Hz I-In Io-Iz J K L-Ln
Lo-Lz M-Mf Mg-Mz N O P-Pl Pm-Pz
Q R S-Sh Si-Sp Sq-Sz T-Tn To-Tz
U V W X Y Z 0-9

Biblioteca - SPANISH

Biblioteca Solidaria - SPANISH

Bugzilla

Ebooks Gratuits

Encyclopaedia Britannica 1911 - PDF

Project Gutenberg: DVD-ROM 2007

Project Gutenberg ENGLISH Selection

Project Gutenberg SPANISH Selection

Standard E-books

Wikipedia Articles Indexes

Wikipedia for Schools - ENGLISH

Wikipedia for Schools - FRENCH

Wikipedia for Schools - SPANISH

Wikipedia for Schools - PORTUGUESE

Wikipedia 2016 - FRENCH

Wikipedia HTML - CATALAN

Wikipedia Picture of the Year 2006

Wikipedia Picture of the Year 2007

Wikipedia Picture of the Year 2008

Wikipedia Picture of the Year 2009

Wikipedia Picture of the Year 2010

Wikipedia Picture of the Year 2011