Last modified: 2014-07-03 14:14:23 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 T36930, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34930 - Suppress redirects when moving *.js and *.css pages during a user rename
Suppress redirects when moving *.js and *.css pages during a user rename
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Renameuser (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-03 12:06 UTC by とある白い猫
Modified: 2014-07-03 14:14 UTC (History)
5 users (show)

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


Attachments

Description とある白い猫 2012-03-03 12:06:34 UTC
After usernames are renamed more than once, the move creates pointless .css and .js double redirects that clutter Special:DoubleRedirects and an admin is needed to fix them as these pages are treated like protected pages.

I see three ways to fix this.

1. Ignore .css and .js pages while populating Special:DoubleRedirects
2. Do not create a redirect after moving .css and .js pages
3. Allow bots to edit .css and .js pages if these pages are redirects or allow bots to edit .css and .js pages like admins.

The problematic .css and .js pages are almost always the ones in the former userspace of renamed users.
Comment 1 Sam Reed (reedy) 2012-03-04 00:50:14 UTC
Stop having accounts renamed multiple times...
Comment 2 とある白い猫 2012-04-15 14:27:06 UTC
They are not my accounts though so I have no influence on how other people rename their accounts on all wikis.

Special:DoubleRedirects is full of such renames as evidently people do rename two or more times fairly often.
Comment 3 MZMcBride 2012-06-29 22:50:23 UTC
The user rename issue is a red herring. The issue here is that after a page move, CSS and JS redirects behave in a very funky way. I changed the summary from "Handling of .js and .css pages post rename" to "Handling of .js and .css pages post page move".

A few parts to this. Behavior is user moves a JS/CSS page from one title to another using MediaWiki page move form. This leaves behind a redirect (by default).

Redirect's current behavior is broken by the page's syntax highlighting, which assumes that everything in the text area of a page ending in .css or .js is CSS or JS. (This bug might be a duplicate.)

Problems with not redirecting:
* it's annoying as hell that the redirects don't work as you'd expect them to

Problems with redirecting:
* redirects can't easily be edited
** still usually need an admin account to do any edits due to the redirect page titles still ending in .css/.js and getting special protection for it
*** users editing their own personal .css/.js pages shouldn't hit this issue
** bots trying to fix double redirects hit walls
* sets up a false expectation about following these redirects programmatically, maybe?
** not sure what behavior is here nowadays with ResourceLoader
Comment 4 とある白い猫 2012-06-30 01:44:35 UTC
I run my bot on practically every wiki and these need to be dealt with manually or else they pile-up eventually rendering Special:DoubleRedirect's useless.

How about... instead of converting .css and .js pages into "#redirect[[foo]]", they are turned into "importScriptURI('url to foo');"

Code would continue operating and not flood double redirects. This can be done when the account is being renamed.
Comment 5 Helder 2012-06-30 02:04:56 UTC
See also:
* Bug 33973
* Bug 30074
* bug 31827
Comment 6 Krinkle 2012-07-22 01:47:56 UTC
(In reply to comment #0)
> 1. Ignore .css and .js pages while populating Special:DoubleRedirects

No.
> 3. Allow bots to edit .css and .js pages if these pages are redirects or allow
> bots to edit .css and .js pages like admins.

Never ever. Major security leak that would be.

> 2. Do not create a redirect after moving .css and .js pages

Sounds good, that's a task for the Renameuser extension. Rephrased this bug for that.
Comment 7 Helder 2012-07-22 01:51:58 UTC
> > 2. Do not create a redirect after moving .css and .js pages
> 
> Sounds good, that's a task for the Renameuser extension. Rephrased this bug for
> that.

Why not to fix bug 33973 instead?
Comment 8 Krinkle 2012-07-22 02:53:03 UTC
(In reply to comment #7)
> > > 2. Do not create a redirect after moving .css and .js pages
> > 
> > Sounds good, that's a task for the Renameuser extension. Rephrased this bug for
> > that.
> 
> Why not to fix bug 33973 instead?

That is a separate bug, which may be an invalid bug, even.

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


Navigation
Links