Page MenuHomePhabricator

A file with name containing a soft hyphen is inaccessable
Open, Needs TriagePublic

Event Timeline

BrightRaven renamed this task from A file has disappeard on Commons, but it still appears in categories and search results to A file has disappeared on Commons, but it still appears in categories and search results.Jun 5 2018, 2:01 PM
BrightRaven updated the task description. (Show Details)
zhuyifei1999 subscribed.

The file definitely exists.

https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg/200px-Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg

You can input an arbitrary not-too-large size into that 200px and the thumb generation still works.

MariaDB [commonswiki_p]> select * from image where img_name like 'Emigration-of-the-Huguenots%';
 --------------------------------------------------------------- ---------- ----------- ------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------- ---------------- ---------------- ---------------- -------------------- ------------------------------------- ---------- --------------- ---------------- --------------------------------- 
| img_name                                                      | img_size | img_width | img_height | img_metadata                                                                                                                                                                                                                                                                                                                                                                                                                                             | img_bits | img_media_type | img_major_mime | img_minor_mime | img_description_id | img_description                     | img_user | img_user_text | img_timestamp  | img_sha1                        |
 --------------------------------------------------------------- ---------- ----------- ------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------- ---------------- ---------------- ---------------- -------------------- ------------------------------------- ---------- --------------- ---------------- --------------------------------- 
| Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg  |  1262200 |      3000 |       1822 | a:12:{s:11:"Orientation";i:1;s:11:"XResolution";s:5:"600/1";s:11:"YResolution";s:5:"600/1";s:14:"ResolutionUnit";i:2;s:8:"Software";s:26:"Adobe Photoshop CS Windows";s:8:"DateTime";s:19:"2007:02:05 14:04:58";s:10:"ColorSpace";i:65535;s:15:"PixelXDimension";s:4:"3000";s:15:"PixelYDimension";s:4:"1822";s:17:"DateTimeDigitized";s:19:"2007:02:05 09:04:58";s:16:"DateTimeMetadata";s:19:"2007:02:05 09:04:58";s:22:"MEDIAWIKI_EXIF_VERSION";i:2;} |        8 | BITMAP         | image          | jpeg           |                  0 | User created page with UploadWizard |     5648 | BrightRaven   | 20150603091400 | 8hgri7r8qc0ujjxyf8iz879ccmx9drl |
 --------------------------------------------------------------- ---------- ----------- ------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------- ---------------- ---------------- ---------------- -------------------- ------------------------------------- ---------- --------------- ---------------- --------------------------------- 
1 row in set (0.01 sec)
>>> 'Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg'
'Emigration-of-the-Huguenots-\xc2\xad-1566-by-Jan-Antoon-Neuhuys.jpg'
>>> 'Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg'.decode('utf-8')
u'Emigration-of-the-Huguenots-\xad-1566-by-Jan-Antoon-Neuhuys.jpg'
>>> u'\u00ad'
u'\xad'

A soft hyphen.

zhuyifei1999 renamed this task from A file has disappeared on Commons, but it still appears in categories and search results to A file with name containing a soft hyphen is inaccessable.Jun 5 2018, 3:28 PM

Can't figure out which mediawiki change caused this, but I'll attempt to move this file out to somewhere accessible.

MariaDB [commonswiki_p]> select * from page where page_namespace = 6 and page_title = 'Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg';
 ---------- ---------------- --------------------------------------------------------------- ------------------- -------------- ------------------ ------------- ---------------- ---------------- -------------------- ------------- ---------- ----------------------- -------------------- ----------- 
| page_id  | page_namespace | page_title                                                    | page_restrictions | page_counter | page_is_redirect | page_is_new | page_random    | page_touched   | page_links_updated | page_latest | page_len | page_no_title_convert | page_content_model | page_lang |
 ---------- ---------------- --------------------------------------------------------------- ------------------- -------------- ------------------ ------------- ---------------- ---------------- -------------------- ------------- ---------- ----------------------- -------------------- ----------- 
| 40692205 |              6 | Emigration-of-the-Huguenots-­-1566-by-Jan-Antoon-Neuhuys.jpg  |                   |            0 |                0 |           0 | 0.755505087381 | 20180605125820 | 20180519074514     |   272471783 |     1011 |                     0 | wikitext           | NULL      |
 ---------- ---------------- --------------------------------------------------------------- ------------------- -------------- ------------------ ------------- ---------------- ---------------- -------------------- ------------- ---------- ----------------------- -------------------- ----------- 
1 row in set (0.01 sec)

https://commons.wikimedia.org/wiki/Special:ApiSandbox#action=move&format=json&curtimestamp=1&fromid=40692205&to=File:Emigration-of-the-Huguenots-1566-by-Jan-Antoon-Neuhuys.jpg&reason=Inaccessible page, [[phab:T196469]]&movetalk=1&movesubpages=1&noredirect=1&watchlist=nochange&ignorewarnings=1

Request URL: /w/api.php?action=move&format=json&curtimestamp=1&fromid=40692205&to=File:Emigration-of-the-Huguenots-1566-by-Jan-Antoon-Neuhuys.jpg&reason=Inaccessible page, [[phab:T196469]]&movetalk=1&movesubpages=1&noredirect=1&watchlist=nochange&ignorewarnings=1

{
    "curtimestamp": "2018-06-05T15:45:53Z",
    "move": {
        "from": "File:Emigration-of-the-Huguenots-\u00ad-1566-by-Jan-Antoon-Neuhuys.jpg",
        "to": "File:Emigration-of-the-Huguenots-1566-by-Jan-Antoon-Neuhuys.jpg",
        "reason": "Inaccessible page, [[phab:T196469]]",
        "subpages": {
            "errors": [
                {
                    "message": "namespace-nosubpages",
                    "params": [
                        "File"
                    ],
                    "code": "namespace-nosubpages",
                    "type": "error"
                }
            ]
        },
        "subpages-talk": []
    }
}

Request time: 4811 ms

File is moved to https://commons.wikimedia.org/w/index.php?title=File:Emigration-of-the-Huguenots-1566-by-Jan-Antoon-Neuhuys.jpg&action=history

Vvjjkkii renamed this task from A file with name containing a soft hyphen is inaccessable to ulbaaaaaaa.Jul 1 2018, 1:05 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from ulbaaaaaaa to A file with name containing a soft hyphen is inaccessable.Jul 1 2018, 8:51 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.