Page MenuHomePhabricator

Editing non-existing sections
Closed, ResolvedPublic

Description

Hi.

I wanted to make a script (JS) with which I would be able to answer other Users
with a reference link in the section name. The reference link is quite long so I
recently came up with a solution that instead of adding new sections - like this:
http://en.wikipedia.org/wiki/User_talk:EcceNux?action=edit&section=new
I would edit non-existing section - like this:
http://en.wikipedia.org/wiki/User_talk:EcceNux?action=edit&section=9999

The problem is that after clicking on Save there are no changes visible. There
are also no entries in the history.

If this not to be available then there should some info saying "WARING! There
were no changes made to the page! Changes you typed are here:
<textarea>...</textarea>"

I lost some answers to people :(. Maybe that's my fault, but this is confusing.

I would be interested in knowing if this can be fixed fast (like in a month) or not.


Version: unspecified
Severity: normal
OS: other
Platform: PC

Details

Reference
bz8902

Event Timeline

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

Don't edit things that don't exist...

This is a valid bug! If I'm not supposed to edit such section that, then I
should get an error message as this is not obvious.

Besides there are times that on long pages such as:
http://commons.wikimedia.org/wiki/Commons:Village_pump
one can edit a non existing section after clicking on standard [edit] section
link (might be that it happens after archiving a section, not sure).

And beside all that it shouldn't be hard to fix as there is section=new already.

I've made a simple test case here (if one might call it like that):
http://test.wikipedia.org/wiki/Bug_8902_test_case

Steps to reproduce:

  1. Create e.g. 3 sections
  2. Open the same page in another tab (simulating that a user has just arrived)
  3. In the first tab remove first two sections (simulating robot archiving of old

sections)

  1. Go to the other tab and click to edit the last (third) section.
  2. Save the page

Results:
No changes are made to the article

Expected results:
Warning shown to the user at editing non-existing section and/or upon saving
changes get added to the end of article.

Dangers:
If someone won't notice the fact that their is something wrong then he/she might
not be able to retrieve the text and will lose text just entered. This is not
very likely, but might happen.

PS: Sorry I didn't described it like that in the first place.

ayg wrote:

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