Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.4

Bug #16060 no HTTP error when php can't read source file
Submitted: 2009-04-02 01:35 UTC
From: nikita Assigned: jausions
Status: Closed Package: HTTP_Download (version 1.1.3)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 14 - 12 = ?

 
 [2009-04-02 01:35 UTC] nikita (Nikita Melnichenko)
Description: ------------ It seems that script have a bug when the data source is a file and php have no rights to read it. It flushes empty file to user in that case. I think that proper behaviour is to send a HTTP error. I would like to propose a patch that adds checks for that case (class will return HTTP error with the code 403).

Comments

 [2009-04-02 01:37 UTC] nikita (Nikita Melnichenko)
The following patch has been added/updated: Patch Name: access-denied-fix URL: patch access-denied-fix
 [2009-12-14 05:46 UTC] jausions (Philippe Jausions)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: jausions
 [2009-12-14 09:09 UTC] jausions (Philippe Jausions)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.