MantisBT - Piwigo
View Issue Details
0001043Piwigoweb APIpublic2009.07.03 23:532009.07.04 01:04
plg 
plg 
normalmajoralways
closedfixed 
2.0.2 
2.0.32.0.3 
any
Apache 1.3.x
0001043: [pwg.images.add] error not sent when a transfert has failed
If any file upload has failed, the error 500 is not correctly sent to the HTTP client.

This is because the merge_chunks function sends a warning on an initialized variable. This warning breaks the set_status_header (because "header were already set"...)

Any PwgError sent after the merge_chunks would fail the same way and let the HTTP client think no error occured.
No tags attached.
Issue History
2009.07.03 23:53plgNew Issue
2009.07.03 23:53plgStatusnew => assigned
2009.07.03 23:53plgAssigned To => plg
2009.07.03 23:53plgbrowser => any
2009.07.03 23:53plgWeb server => Apache 1.3.x
2009.07.04 00:59svnCheckin
2009.07.04 00:59svnNote Added: 0002679
2009.07.04 01:03svnCheckin
2009.07.04 01:03svnNote Added: 0002680
2009.07.04 01:04plgStatusassigned => closed
2009.07.04 01:04plgResolutionopen => fixed
2009.07.04 01:04plgFixed in Version => 2.0.3

Notes
(0002679)
svn   
2009.07.04 00:59   
[Subversion] r3513 by plg on branch 2.0

-----[Subversion commit log]----------------------------------------------------
bug 1043 fixed: avoid warning when merging chunks. This warning was preventing
the PwgError to work correctly and the error code was not transmitted.
(0002680)
svn   
2009.07.04 01:03   
[Subversion] r3514 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r3513 from branch 2.0 to trunk

bug 1043 fixed: avoid warning when merging chunks. This warning was preventing
the PwgError to work correctly and the error code was not transmitted.