Page MenuHomePhabricator

editing section 0 of an existing but empty page gives no such section error
Closed, ResolvedPublic

Description

Author: cbm.wikipedia

Description:
If you try to edit section 0 of an empty page, a "no such section" error is returned.


Version: 1.16.x
Severity: normal

Details

Reference
bz14005

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:08 PM
bzimport set Reference to bz14005.
bzimport added a subscriber: Unknown Object (MLST).

cbm.wikipedia wrote:

I'm sorry; my report was slightly unclear. The error is with pages that do exist but have 0 bytes of content. In such a page, the entire page (which has no content) is section 0, so editing section 0 should work. However, the 'nosuchsectiontext' error message is displayed instead. I have just tested this again on enwiki.

http://en.wikipedia.org/w/index.php?title=User:CBM/Empty&action=edit&section=0

  • Bug 26627 has been marked as a duplicate of this bug. ***

Strange. Comment 1 is also still true.

cbm.wikipedia wrote:

Comment 1 is still not looking at the right problem, though. This link fails on the live software on enwiki:

http://en.wikipedia.org/w/index.php?title=User:CBM/Empty&action=edit&section=0

Patch v1

I think this should be sufficient? It seems to fix the issue for me on my test wiki, anyway. Regards.

Attached: