https://bugzilla.wikimedia.org/show_bug.cgi?id=29426
Web browser: ---
Bug #: 29426
Summary: BlockTest using invalid Block::load calls
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Unit tests
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
2) BlockTest::testBug29116LoadWithEmptyIp with data set #0 (NULL)
3) BlockTest::testBug29116LoadWithEmptyIp with data set #1 ('')
4) BlockTest::testBug29116LoadWithEmptyIp with data set #2 (false)
all give errors with Pg backend due to calling Block as:
$block->load( $vagueTarget, 'UTBlockee' );
the second parameter to load is supposed to be an Integer userid.
This gets passed through all the way to the DB backend which results in a query
like:
SELECT user_name FROM mwuser WHERE user_id = 'UTBlockee...
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l