Last modified: 2010-08-22 16:12:17 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 T25703, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23703 - Undefined index: name in includes/filerepo/ForeignAPIRepo.php on line 157
Undefined index: name in includes/filerepo/ForeignAPIRepo.php on line 157
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.17.x
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-28 20:16 UTC by Pieter
Modified: 2010-08-22 16:12 UTC (History)
5 users (show)

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


Attachments
patch (614 bytes, patch)
2010-05-28 20:16 UTC, Pieter
Details

Description Pieter 2010-05-28 20:16:35 UTC
Created attachment 7412 [details]
patch

In ForeignAPIRepo.php the index 'name' of $img on line 157 is undeclared, which returns a E_NOTICE. Patch included below.
Comment 1 Bryan Tong Minh 2010-06-18 15:06:33 UTC
There is no codepath where ApiQueryAllimages can return an list item without the name key set. Can you provide an image and the shared repo where this occurs?
Comment 2 Alexandre Emsenhuber [IAlex] 2010-08-21 16:27:31 UTC
It is not present in 1.14, see r41303.
Comment 3 Chad H. 2010-08-22 16:12:17 UTC
Fixed in r71436.

I didn't use the attached patch because creating a bunch of null titles would be useless. Without the 'name' attribute, findBySha1() isn't very helpful.

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


Navigation
Links