Last modified: 2014-10-01 19:22:37 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 T69021, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67021 - When an ISBN has an X where it should have a 0, Special:BookSources treats it as valid
When an ISBN has an X where it should have a 0, Special:BookSources treats it...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.24rc
All All
: Normal minor (vote)
: 1.25.0 release
Assigned To: Kevin Israel (PleaseStand)
https://en.wikipedia.org/wiki/Special...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-24 07:06 UTC by Kevin Israel (PleaseStand)
Modified: 2014-10-01 19:22 UTC (History)
1 user (show)

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


Attachments

Description Kevin Israel (PleaseStand) 2014-06-24 07:06:55 UTC
I noticed this when checking old TODOs and reading the code. It is a bug arising in part from the use of PHP's loose equality (==) operator.

Steps to reproduce:

1. Open <https://en.wikipedia.org/wiki/Special:BookSources/1413304541>
2. Open <https://en.wikipedia.org/wiki/Special:BookSources/141330454X>
3. Open <https://en.wikipedia.org/wiki/Special:BookSources/1413304540>

Actual results: #1 gives, "The given ISBN does not appear to be valid; check for errors copying from the original source." #2 and #3 give no error.

Expected results: both #1 and #2 should give that error message. Only #3 should give no error.
Comment 1 Gerrit Notification Bot 2014-06-24 07:32:08 UTC
Change 141654 had a related patch set uploaded by PleaseStand:
Special:BookSources: Correct ISBN-10 validation for numbers ending in X

https://gerrit.wikimedia.org/r/141654
Comment 2 Kevin Israel (PleaseStand) 2014-06-24 07:52:36 UTC
Unfortunately, there are more problems:

4. Open <https://en.wikipedia.org/wiki/Special:BookSources/14133X4540>
5. Open <https://en.wikipedia.org/wiki/Special:BookSources/97814133X4541>
6. Open <https://en.wikipedia.org/wiki/Special:BookSources/978035642615X>
7. Open <https://en.wikipedia.org/wiki/Special:BookSources/9781413304541>
8. Open <https://en.wikipedia.org/wiki/Special:BookSources/9780356426150>

Actual results: none of #4-8 give an error.

Expected results: #4-6 should give an error. Only #7-8 should give no error.
Comment 3 Gerrit Notification Bot 2014-10-01 19:21:48 UTC
Change 141654 merged by jenkins-bot:
Special:BookSources: Correct validation of ISBNs containing X

https://gerrit.wikimedia.org/r/141654
Comment 4 Umherirrender 2014-10-01 19:22:37 UTC
successfully merged

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


Navigation
Links