Page MenuHomePhabricator

Cannot edit my vector.css user page
Closed, ResolvedPublic

Description

When I go to edit
https://en.m.wikipedia.org/wiki/User:Jdlrobson/vector.css
and click edit I get a response:

{"servedby":"mw1142","error":{"code":"rvnosuchsection","info":"There is no section 0 in r561422068"}}

Which causes an infinite length of ajax requests.

I thought this might be due to the '/' symbol but I seem to be able to edit mediawiki.org/wiki/MobileFrontend/Deployment


Version: unspecified
Severity: normal

Details

Reference
bz50136

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:00 AM
bzimport set Reference to bz50136.

See also bug 50301 for the infinite ajax request part of this bug.
This bug is now about not being able to load the editor for this page.

An api request is made to
/w/api.php?format=json&action=query&prop=revisions&rvprop=content%7Ctimestamp&titles=User%3AJdlrobson%2Fvector.css&rvsection=1

which returns
{"error":{"code":"rvnosuchsection","info":"There is no section 1 in r2887"}}

Apparently dropping rvsection solves this problem.
I'm not sure what other pages this effects.

I think only pages with the wikitext content model can have sections.

(In reply to comment #4)

I think only pages with the wikitext content model can have sections.

Looks like a regression since the introduction of ContentHandler.

We accepted a non-ideal legacy usage of having links in js pages parsed & stored in pagelinks table to keep backward compatibility. Can the concept of section in js pages (and css) be another one?

Change 73127 had a related patch set uploaded by Jdlrobson:
Bug 50136: Allow editing of things other than wikitext

https://gerrit.wikimedia.org/r/73127

Change 73127 merged by jenkins-bot:
Bug 50136: Allow editing of things other than wikitext

https://gerrit.wikimedia.org/r/73127