MantisBT - Piwigo
View Issue Details
0002035Piwigoweb APIpublic2010.11.15 10:262010.11.15 10:49
plg 
plg 
normalminoralways
closedfixed 
2.1.5 
2.1.62.1.6 
any
Apache 1.3.x
0002035: [pwg.images.addComment] a warning breaks page parsing when meeting flooding limits
If you call pwg.images.addComment twice without waiting for $conf['anti-flood_time'] seconds (60 seconds by default), then you get a

> Warning: Header may not contain more than a single header, new line detected...

in the returned content. And it breaks JSON parsing.
This is because pwg.images.addComment merges information message with a new line character and use this merged information as the error message in the HTTP response header. New line is a forbidden character in HTTP header.
No tags attached.
Issue History
2010.11.15 10:26plgNew Issue
2010.11.15 10:26plgStatusnew => assigned
2010.11.15 10:26plgAssigned To => plg
2010.11.15 10:26plgbrowser => any
2010.11.15 10:26plgWeb server => Apache 1.3.x
2010.11.15 10:46svnCheckin
2010.11.15 10:46svnNote Added: 0004498
2010.11.15 10:48svnCheckin
2010.11.15 10:48svnNote Added: 0004499
2010.11.15 10:49plgStatusassigned => closed
2010.11.15 10:49plgResolutionopen => fixed
2010.11.15 10:49plgFixed in Version => 2.1.6

Notes
(0004498)
svn   
2010.11.15 10:46   
[Subversion] r7781 by plg on branch 2.1

-----[Subversion commit log]----------------------------------------------------
bug 2035 fixed: avoid sending multiple line error code in HTTP header. This
was breaking the JSON parsing on pwg.images.addComment response from Piwigo
because of an raw HTML warning.
(0004499)
svn   
2010.11.15 10:48   
[Subversion] r7782 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r7781 from branch 2.1 to trunk

bug 2035 fixed: avoid sending multiple line error code in HTTP header. This
was breaking the JSON parsing on pwg.images.addComment response from Piwigo
because of an raw HTML warning.