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)    

 [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).


 [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 by the end of next Sunday (CET). If this was a problem with the 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.