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

            Bug ID: 65264
           Summary: File storage uses (title,timestamp) as a unique key,
                    but this is not unique
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: File management
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
        Depends on: 15441
            Blocks: 65251
       Web browser: ---
   Mobile Platform: ---

FileRepo::findFile appears to use the (title,timestamp) pair as a unique key to
identify a particular version of a file. However, this is not necessarily
unique. See for example
https://commons.wikimedia.org/wiki/File:Treppe_22_22_test_upload.jpg where two
versions were both uploaded at 2014-05-05T13:00:59Z.

For proper operation, the API requires some ordered unique identifier for file
revisions. I imagine there are other places in the code that also require
unique identifiers.

This appears to depend on bug 15441 (for the oldimage table), although I'm not
familiar enough with the FileBackend code to know for sure whether that's
generally the case or if it only applies to certain backends.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to