Last modified: 2013-05-22 18:23:56 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 T25205, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23205 - pre-save transform may occur outside section being edited
pre-save transform may occur outside section being edited
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: section-editing
  Show dependency treegraph
 
Reported: 2010-04-15 19:22 UTC by Thana
Modified: 2013-05-22 18:23 UTC (History)
2 users (show)

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


Attachments

Description Thana 2010-04-15 19:22:06 UTC
I noticed the pre-save transform affects the entire
page, not just the section you are editing. If through
some trickery or foresight you create a page like this:

> ==Section 1==
> {{subst:template which doesn't exist yet}}
> {{subst:#some future parser-func:foo|bar}}
>
> ==Section 2==
> Lorem ipsum

A subsequent edit to Section 2 may cause unexpected
changes to the wiki-text of Section 1 if and when the
requested subst-items exist.

Seems like the least astonishing behavior would be to
prevent this.
Comment 1 Chad H. 2010-04-16 10:42:13 UTC
When you're editing a section, you're really editing the whole page. There's no difference between it and opening the full page to only edit a section. While the behavior isn't necessarily intuitive, it is expected. Not sure of any clean way to really change this...WONTFIX?
Comment 2 Thana 2010-04-18 04:16:58 UTC
> When you're editing a section, you're really editing
> the whole page. There's no difference between it and
> opening the full page to only edit a section.

I realize they're all part of the same page, but I still
think section-edits should provide a basic guarantee not
to change any text which is not part of the edit form. 

> While the behavior isn't necessarily intuitive, it is
> expected.

I'd go further and say it is never intuitive.

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


Navigation
Links