https://bugzilla.wikimedia.org/show_bug.cgi?id=35721

       Web browser: ---
             Bug #: 35721
           Summary: Moving files breaks hotlinks
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Images and files
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: rd...@hotmail.com
                CC: bawolff...@gmail.com, bryan.tongm...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---


Hotlinking from external sites to Commons images is discouraged, but allowed
(https://commons.wikimedia.org/wiki/Commons:REUSE#Hotlinking). Moving a file
whilst creating a redirect unnecessarily breaks such hotlinks, because the
upload.wikimedia.org URLs don't follow the redirect. 

Example: 
* Uploaded https://commons.wikimedia.org/wiki/File:Example-2.jpg
* Got the hotlink:
https://upload.wikimedia.org/wikipedia/commons/8/8d/Example-2.jpg
* Moved the file, with redirect, to
https://commons.wikimedia.org/wiki/File:Example-of-move.jpg
* Hotlink now gives a 404 page (and not even a particularly helpful one).
I've deleted this test, but the 404 page is exactly the same as for a deleted
image.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to