Last modified: 2014-11-07 23:05:42 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 T75004, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73004 - Flow: blank page viewing a deleted topic if you don't have rights
Flow: blank page viewing a deleted topic if you don't have rights
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Matthias Mullie
:
: 73003 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-05 05:48 UTC by spage
Modified: 2014-11-07 23:05 UTC (History)
5 users (show)

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


Attachments

Description spage 2014-11-05 05:48:00 UTC
If you're anonymous or don't have delete rights, trying to view the topic deleted in bug 73003,
http://ee-flow.wmflabs.org/wiki/Topic:S5i6a0emy49f9668 ,
results in a blank HTML page.

The /var/log/apache2/error.log has much the same error lines: a problem with the call
  if ( !$this->user->isAllowed( $logPage->getRestriction() ) )
in Block/Topic.php's getDisallowedErrorMessage()

[Wed Nov 05 05:16:02 2014] [error] [client 10.68.16.65] PHP Notice:  Undefined property: Flow\\Block\\TopicBlock::$user in /srv/mediawiki/extensions/Flow/includes/Block/Topic.php on line 754

[Wed Nov 05 05:16:02 2014] [error] [client 10.68.16.65] PHP Fatal error:  Call to a member function isAllowed() on a non-object in /srv/mediawiki/extensions/Flow/includes/Block/Topic.php on line 754

this occurs even if I'm logged in as a regular user without delete rights.  I just don't think there's a user member variable.  Should've written a test for this function :-|

Visiting a deleted topic on beta labs like http://en.wikipedia.beta.wmflabs.org/wiki/Topic:S5hlsouqvx6pndn6 gives a 503 error, probably due to the interaction with HHVM.
Comment 1 Gerrit Notification Bot 2014-11-05 19:15:47 UTC
Change 171310 had a related patch set uploaded by Matthias Mullie:
blank page/503 output viewing a deleted topic if you don't have rights

https://gerrit.wikimedia.org/r/171310
Comment 2 Matthias Mullie 2014-11-06 17:29:51 UTC
*** Bug 73003 has been marked as a duplicate of this bug. ***
Comment 3 Gerrit Notification Bot 2014-11-07 04:14:24 UTC
Change 171310 merged by jenkins-bot:
blank page/503 output viewing a deleted topic if you don't have rights

https://gerrit.wikimedia.org/r/171310
Comment 4 spage 2014-11-07 23:05:42 UTC
Now I see a skinned wiki page, but the content area is empty.
E.g. visit http://en.wikipedia.beta.wmflabs.org/wiki/Topic:S5onnqdlmu3w5236 as an anon or a user without delete rights.

The page <title> tag is not bad, "This topic was deleted by Selenium user on Talk:Flow QA".

In bug 60155#c3 Jon said "I can see the heading error and it tells me I don't have permission." so something changed recently.

ErikB comments: 
I suppose it should resemble visiting a revdel'd page revision, an i18n message like 'deletedtext' in a centered white box, like
   "This page revision has been deleted. Details can be found in the 
          deletion log."

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


Navigation
Links