Last modified: 2014-01-27 12:11:09 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 T42649, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40649 - typo SCRIPT_DEPRECTED -> SCRIPT_DEPRECATED
typo SCRIPT_DEPRECTED -> SCRIPT_DEPRECATED
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AntiSpoof (Other open bugs)
master
All All
: Normal minor (vote)
: ---
Assigned To: Aravind K N
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-01 03:56 UTC by spage
Modified: 2014-01-27 12:11 UTC (History)
5 users (show)

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


Attachments
Changes to SpoofTest.php (1.77 KB, patch)
2012-10-01 06:08 UTC, spage
Details

Description spage 2012-10-01 03:56:10 UTC
AntiSpoof_body.php has
    $deprecated = array_search( "SCRIPT_DEPRECTED", $testScripts );
I think the typo means usernames with characters in the ranges CJK Radicals Supplement, Kangxi Radicals, CJK Compatibility Ideographs, etc. will not be rejected.

But I tried to add a failing test for this to SpoofTest.php and it passes, so I can't demonstrate the failure.
Comment 1 spage 2012-10-01 06:08:59 UTC
Created attachment 11152 [details]
Changes to SpoofTest.php

`git review` fails, maybe I don't have rights.  Here's a patch that introduces testCheckBadChars() with some working tests, but the tests for SCRIPT_DEPRECATED glyphs doesn't work.
Comment 2 Dereckson 2012-10-01 07:51:44 UTC
Gerrit change #25856

(if you need to get it and improve it, use gerrit -d 25856)

______________________

The first time you clone a repository, you can use git review -s to add git review and Gerrit specific hooks. One of them will add the last git Change-Id to the commit message.

If you commit stuff before the git review -s, then launch git review, it will do that for you (Creating a git remote called "gerrit" that maps to: ssh://<your username>@gerrit.wikimedia.org:29418/mediawiki/extensions/AntiSpoof.git).

But it won't edit your commit message, so Gerrit will reject it with this message:
remote: ERROR: missing Change-Id in commit message

It will even suggest you a commit message (your commit message + the Change-Id).

(...)
remote: Change-Id: I98e4bc5aa0034369910effda73625ce8b03288be


What you have to do is:
(1) copy/paste this line (without the remote: )
(2) git commit --amend
(3) add this line to your commit message
(4) git review
Comment 3 Andre Klapper 2013-07-23 12:12:32 UTC
Patch in Gerrit needs an update.
Comment 4 Gerrit Notification Bot 2014-01-25 10:45:38 UTC
Change 109464 had a related patch set uploaded by Arav93:
Renamed SCRIPT_DEPRECTED to SCRIPT_DEPRECATED in Antispoof_body.php

https://gerrit.wikimedia.org/r/109464
Comment 5 Gerrit Notification Bot 2014-01-25 20:00:00 UTC
Change 109464 merged by jenkins-bot:
Renamed SCRIPT_DEPRECTED to SCRIPT_DEPRECATED in Antispoof_body.php

https://gerrit.wikimedia.org/r/109464
Comment 6 Bartosz Dziewoński 2014-01-25 20:00:55 UTC
Should be fixed by the patch above.

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


Navigation
Links