[Bug 22227] SpecialListfiles.php throws a fatal abort when a spooky file File: exists (for one reason or another)

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

Tom  Gries m...@tgries.de changed:

   What|Removed |Added

Summary|SpecialListfiles.php throws |SpecialListfiles.php throws
   |a fatal abort when a spooky |a fatal abort when a spooky
   |file File: exisits (for one |file File: exists (for one
   |reason or another)  |reason or another)

-- 
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 watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 22227] SpecialListfiles.php throws a fatal abort when a spooky file File: exists (for one reason or another)

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

Tom  Gries m...@tgries.de changed:

   What|Removed |Added

   Keywords||need-review

-- 
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 watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 22227] SpecialListfiles.php throws a fatal abort when a spooky file File: exists (for one reason or another)

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

Platonides platoni...@gmail.com changed:

   What|Removed |Added

   Keywords|need-review |testme
 CC||platoni...@gmail.com
   Severity|critical|major

--- Comment #1 from Platonides platoni...@gmail.com 2010-01-22 18:36:57 UTC 
---
wfLocalFile is supposed to Return a valid placeholder object if the file does
not exist. :/
Something is going wrong inside the LocalRepo.

-- 
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 watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 22227] SpecialListfiles.php throws a fatal abort when a spooky file File: exists (for one reason or another)

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

--- Comment #2 from Tom  Gries m...@tgries.de 2010-01-22 18:50:20 UTC ---
(In reply to comment #1)
 wfLocalFile is supposed to Return a valid placeholder object if the file does
 not exist. :/

Can you reproduce the reported problem (e.g. by manually emptying a filename in
table image and setting byte count to 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 watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 22227] SpecialListfiles.php throws a fatal abort when a spooky file File: exists (for one reason or another)

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

--- Comment #3 from Chad H. innocentkil...@gmail.com 2010-01-22 18:54:33 UTC 
---
(In reply to comment #1)
 wfLocalFile is supposed to Return a valid placeholder object if the file does
 not exist. :/
 Something is going wrong inside the LocalRepo.

Except it lies. If it's not fed a valid title (in this case, an empty string),
it will return null before trying to construct a file object. See
FileRepo::newFile()

Might be worth making a FakeFile class to return in that scenario.

-- 
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 watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 22227] SpecialListfiles.php throws a fatal abort when a spooky file File: exists (for one reason or another)

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

Chad H. innocentkil...@gmail.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|wikibug...@lists.wikimedia. |innocentkil...@gmail.com
   |org |

-- 
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 watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l