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

            Bug ID: 63145
           Summary: Referential integrity issues on commons on pages
                    created by API
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: bawolff...@gmail.com
                CC: bjor...@wikimedia.org, bryan.tongm...@gmail.com,
                    roan.katt...@gmail.com, s...@reedyboy.net
       Web browser: ---
   Mobile Platform: ---

These pages https://dpaste.de/Df0x/raw (except for things in namespace 6, which
is bug 32551. However that's basically the same bug except for from the
runJobs.php entry point instead of api.php entry point)

There's a bunch of pages on commons with no revisions and rev_latest = 0.

I suspect this is caused by differences in uncaught exception handling on the
api.php entry point and the index.php entry point.


If there is an open transaction, and then an exception is thrown, but nobody
catches it, different things will happen depending  on entry point:
*On index.php, transaction will be thrown away (implicitly anyways, basically
the shutdown method isn't called)
*On Api.php the following:
$lb = wfGetLBFactory();
$lb->shutdown();

Happens regardless of if there is an uncaught exception, triggering a
$dbw->commit even if exception was thrown in middle of transaction.

-- 
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