Last modified: 2014-02-25 16:33:57 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 T62054, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60054 - Visibility of WikiPage::$mPreparedEdit changed from public to protected in 1.22.1 tarball, breaks Semantic MediaWiki
Visibility of WikiPage::$mPreparedEdit changed from public to protected in 1....
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.1
All All
: High major with 1 vote (vote)
: 1.22.x release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-14 21:56 UTC by Jack Phoenix
Modified: 2014-02-25 16:33 UTC (History)
7 users (show)

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


Attachments

Description Jack Phoenix 2014-01-14 21:56:34 UTC
The 1.22.1 security release changed the visibility of WikiPage's $mPreparedEdit property from public to protected, which breaks Semantic MediaWiki (version 1.8.0.1), which appears to rely on that property being public. The exact error message is: PHP Fatal error:  Cannot access protected property WikiPage::$mPreparedEdit in /extensions/SemanticMediaWiki/includes/SMW_ParseData.php on line 477

This is NOT acceptable, since this change has nothing to do with the security issues, which led into the release of a new 1.22.x version. Furthermore, a new WikiPage method called "clearPreparedEdit" was also introduced in the 1.22.1 release -- the documentation says "@since 1.23", which further proves that the WikiPage.php changes don't belong to the 1.22.x branch.
Comment 1 Sam Reed (reedy) 2014-01-14 21:59:03 UTC
This was reverted in master in https://gerrit.wikimedia.org/r/#/c/106146/
Comment 3 MWJames 2014-01-14 22:20:00 UTC
Just as a side note, the issue is relevant for all SMW1.9- legacy releases. SMW 1.9 did make all necessary adoptions in order to pass its unit tests (1.19/1.23, including the usage of prepareTextForEdit/prepareContentForEdit.
Comment 4 Jeroen De Dauw 2014-01-15 00:39:46 UTC
Will the MW 1.22.1 release be fixed and re-made? Will a 1.22.2 be created soonish? This compat break is rather unfortunate, and I'd rather not try to explain to users there are compat differences based on minor versions, it is hard enough as it is already.
Comment 5 Sam Reed (reedy) 2014-01-15 00:41:37 UTC
https://gerrit.wikimedia.org/r/#/c/107488/ is a backport of the partial revert in core to the REL1_22 branch

I'm not sure how exactly should exactly it should be handled
Comment 6 Mark A. Hershberger 2014-01-15 14:41:46 UTC
For future releases, we should have some acceptance testing that verifies the visibility of member variables doesn't change on point releases.

Sam has a good method for handling this.
Comment 7 Bartosz Dziewoński 2014-01-15 16:26:21 UTC
An eyeball test should be quite sufficient.
Comment 8 Mark A. Hershberger 2014-01-15 20:33:33 UTC
(In reply to comment #7)
> An eyeball test should be quite sufficient.

Agreed.  The problem with eyeball tests is that they cannot be automated and run reliably.
Comment 9 Kunal Mehta (Legoktm) 2014-02-25 16:31:16 UTC
This was fixed in the 1.22.2 release.
Comment 10 Nemo 2014-02-25 16:33:57 UTC
So this bug in core was caused by a backport to stable of a patch for a bug which didn't have a request of backport and is not even against core (bug 57026)? I'm confused.
Anyway, https://gerrit.wikimedia.org/r/#/c/107488/ was merged.

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


Navigation
Links