[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2013-01-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Brad Jorsch bjor...@wikimedia.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #13 from Brad Jorsch bjor...@wikimedia.org ---
Merged.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-31 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

   Keywords||patch-in-gerrit

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #11 from Brad Jorsch bjor...@wikimedia.org ---
(In reply to comment #8)
 I think this will also be fixed by 39852.

No, it's not.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #12 from Brad Jorsch bjor...@wikimedia.org ---
Change I0b298290 should fix it, and bug 36751 in a more straightforward manner.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Brad Jorsch bjor...@wikimedia.org changed:

   What|Removed |Added

   Assignee|bryan.tongm...@gmail.com|bjor...@wikimedia.org

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Bryan Tong Minh bryan.tongm...@gmail.com changed:

   What|Removed |Added

 Status|REOPENED|ASSIGNED
   Assignee|wikibugs-l@lists.wikimedia. |bryan.tongm...@gmail.com
   |org |

--- Comment #8 from Bryan Tong Minh bryan.tongm...@gmail.com ---
I think this will also be fixed by 39852.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #9 from Bryan Tong Minh bryan.tongm...@gmail.com ---
i.e., I748e5223

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-12-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #10 from Bryan Tong Minh bryan.tongm...@gmail.com ---
That is, I27485bba. Sorry for the mails.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-06-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Brad Jorsch b-jor...@alum.northwestern.edu changed:

   What|Removed |Added

 CC||b-jorsch@alum.northwestern.
   ||edu

--- Comment #7 from Brad Jorsch b-jor...@alum.northwestern.edu 2012-06-02 
15:04:36 UTC ---
I see the problem here. The call to RepoGroup::singleton()-findFiles() returns
an associative array mapping the redirect *target* to the image object; the
image object refers back to the original title queried.

So what happens is that it first looks up File:HellobyartistJasonThompson.jpg,
and fills in a mapping in the result array for
File:HellobyartistJasonThompson.jpg to an image object whose
getOriginalTitle() returns File:HellobyartistJasonThompson.jpg. Then it looks
up File:HellobyartistJasonThompson2.jpg, and since that redirects to
File:HellobyartistJasonThompson.jpg it fills in
File:HellobyartistJasonThompson.jpg again in the result array, overwriting
the old image object with a new one whose getOriginalTitle() returns
File:HellobyartistJasonThompson2.jpg.

Then when the API module is iterating over the results, it pulls
getOriginalTitle() getting File:HellobyartistJasonThompson2.jpg, sees it's a
redirect, and skips inserting the image info into the output. It never sees a
result for File:HellobyartistJasonThompson.jpg at all, so that also gets no
image info.

One fix would be to have RepoGroup::singleton()-findFiles() (and the related
findFiles() methods on the individual groups) return results mapped from the
queried title rather than the redirect target title, so a redirect wouldn't
overwrite the original image object. But I don't know what else that might
break. Or findFiles() could prefer to keep the non-redirect image object rather
than whichever happened to be queried last. Or the API module could iterate
over the queried titles instead (and look them up in the $images array),
ignoring getOriginalTitle() completely. Or it could take the key from $images
and pass it through Title::newFromDBkey, again ignoring getOriginalTitle()
completely. I'm not sure which method would be best.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-04-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #6 from rai...@rillke.eu rainerril...@hotmail.com 2012-04-09 
10:00:11 UTC ---
(In reply to comment #5)
Only partial. Here we have another bug: No imageinfo for both: The redirect and
the target. And this does not happen on other files. Just test the examples
given in the description (comment 0).

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2012-04-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Rd232 rd...@hotmail.com changed:

   What|Removed |Added

 CC||rd...@hotmail.com

--- Comment #5 from Rd232 rd...@hotmail.com 2012-04-05 10:40:19 UTC ---
Is the same as (or related to) Bug 23750 - redirects doesn't work properly
with prop=imageinfo?

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2011-11-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #4 from Brion Vibber br...@wikimedia.org 2011-11-03 23:43:32 UTC 
---
It really should be returning results for the redirect too though, shouldn't
it?

See also bug 32031 -- problems with {{#ifexist}} and image redirects...

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2011-10-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #3 from Roan Kattouw roan.katt...@gmail.com 2011-10-25 15:27:33 
UTC ---
That is WEIRD. Leaving off the second file from titles= does result in the
proper imageinfo.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2011-10-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

rai...@rillke.eu rainerril...@hotmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |

--- Comment #2 from rai...@rillke.eu rainerril...@hotmail.com 2011-10-24 
17:53:57 UTC ---
I get still:
http://commons.wikimedia.org/w/api.php?action=queryprop=imageinfotitles=File:HellobyartistJasonThompson.jpg|File:HellobyartistJasonThompson2.jpg

?xml version=1.0?
api
  query
pages
  page pageid=15077304 ns=6
title=File:HellobyartistJasonThompson.jpg imagerepository= /
  page pageid=15087902 ns=6
title=File:HellobyartistJasonThompson2.jpg imagerepository= /
/pages
  /query
/api

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2011-10-21 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

--- Comment #1 from rai...@rillke.eu rainerril...@hotmail.com 2011-10-21 
08:44:35 UTC ---
Unfortunately the new title even does not reflect the problem:

Works fine:
http://commons.wikimedia.org/w/api.php?action=queryprop=imageinfotitles=File:Arc%2023468.jpg|File:Universidad%20del%20Tolima%20logo.jpg

Or did I miss something?

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2011-10-21 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Mark A. Hershberger m...@everybody.org changed:

   What|Removed |Added

   Priority|Unprioritized   |Normal
 Status|NEW |RESOLVED
 CC||m...@everybody.org
 Resolution||WORKSFORME

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31849] API imageinfo query returns no imageinfo data when asking for redirect and redirect target

2011-10-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31849

Brion Vibber br...@wikimedia.org changed:

   What|Removed |Added

Summary|Weird results   |API imageinfo query returns
   ||no imageinfo data when
   ||asking for redirect and
   ||redirect target

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l