Last modified: 2013-03-11 15:56:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42515, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40515 - [Regression] Error: 'Cannot delete page "Foo"', page content "1"
[Regression] Error: 'Cannot delete page "Foo"', page content "1"
Status: RESOLVED DUPLICATE of bug 40296
Product: MediaWiki
Classification: Unclassified
Page deletion (Other open bugs)
1.20.x
All All
: Low major (vote)
: 1.21.0 release
Assigned To: Nobody - You can work on this!
: code-update-regression, platformeng, testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-25 21:22 UTC by Krinkle
Modified: 2013-03-11 15:56 UTC (History)
8 users (show)

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


Attachments
Screenshot of bug (106.00 KB, image/png)
2012-09-25 21:22 UTC, Krinkle
Details

Description Krinkle 2012-09-25 21:22:22 UTC
Created attachment 11140 [details]
Screenshot of bug

On Commons when submitting the action=delete form, I get a page titled:


Cannot delete page "File talk:European Parliament from Cathedral.jpg"

With the only body content:

<div id="mw-content-text">1</div>

Aside from it being very wrong that there is only a single character being output (likely casted from boolean true), there is also:
* No error message at all.
* It did actually succeed (see screenshot)
Comment 1 Andre Klapper 2013-02-26 04:38:13 UTC
Krinkle: Have you seen this problem again, or was this not reproducible?
Is this still an issue?
Comment 2 Krinkle 2013-02-26 12:33:36 UTC
I can't reproduce it because I can't willingly reproduce a rare error in the file storage backend.

However looking at the code Article::doDelete (which is the only method that uses the 'cannotdelete-title' message which is shown in the screenshot), I think this odd interface issue would still be happening just the same.

The $error variable is set to an empty string where documentation expects an array. It is then never used or set to anything (except by RunHooks) and then it does "if $error != '': addHtml( $error )"

I don't know what $error ends up being, but whatever it is, it isn't html. So this is likely being casted to the string '1'.
Comment 3 Rob Lanphier 2013-02-28 18:25:05 UTC
No real reason to believe this is file backend related, other than the fact this happened once on commons.  I'd like to see someone try to repro this on test2 and commons before assigning this to someone.
Comment 4 Andre Klapper 2013-02-28 19:34:34 UTC
Setting to low prio until this is reproduced and until there are indicators that this is still an issue. 
Currently this is a one-off problem from September last year.
Comment 5 Andre Klapper 2013-02-28 20:46:50 UTC
[Sorry, didn't realize that RobLa set this to Normal priority just before - restoring.)
Comment 6 Andre Klapper 2013-03-11 15:50:44 UTC
Setting to UNCONFIRMED as this wasn't reproduced so far, and as we don't know much at all, so it's not worth to investigate currently. Hence setting to Low.
Comment 7 Liangent 2013-03-11 15:56:17 UTC

*** This bug has been marked as a duplicate of bug 40296 ***

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


Navigation
Links