MantisBT - Piwigo
View Issue Details
0002529Piwigoweb APIpublic2011.12.05 09:572011.12.05 10:10
plg 
plg 
normalmajorsometimes
closedfixed 
2.3.1 
2.3.22.3.2 
any
Apache 1.3.x
0002529: always_populate_raw_post_data "On" and "Unknown request format" on post requests
When you call ws.php in POST, if you have the Apache setting always_populate_raw_post_data set to "On", then ws.php sets the $requestFormat to "json" but ws_core can only handle the "rest" requestFormat.

See details in rvelices post http://piwigo.org/forum/viewtopic.php?pid=110379#p110379 [^]

alloyphoto gives a workaround with an .htaccess file on http://piwigo.org/forum/viewtopic.php?pid=126216#p126216 [^] but we'd better fix it in Piwigo core since we can only handle the "rest" requestFormat for now.
No tags attached.
Issue History
2011.12.05 09:57plgNew Issue
2011.12.05 09:57plgStatusnew => assigned
2011.12.05 09:57plgAssigned To => plg
2011.12.05 09:57plgbrowser => any
2011.12.05 09:57plgWeb server => Apache 1.3.x
2011.12.05 10:09svnCheckin
2011.12.05 10:09svnNote Added: 0005833
2011.12.05 10:09svnCheckin
2011.12.05 10:09svnNote Added: 0005834
2011.12.05 10:10plgStatusassigned => closed
2011.12.05 10:10plgResolutionopen => fixed
2011.12.05 10:10plgFixed in Version => 2.3.2

Notes
(0005833)
svn   
2011.12.05 10:09   
[Subversion] r12694 by plg on branch 2.3

-----[Subversion commit log]----------------------------------------------------
bug 2529 fixed: Piwigo API can only handle the "rest" requestFormat.
If we try to search for another request format the only result is an
"Unknown request format" error for the client. This error happens when
always_populate_raw_post_data is On (which is not the default Apache
setting).
(0005834)
svn   
2011.12.05 10:09   
[Subversion] r12695 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r12694 from branch 2.3 to trunk

bug 2529 fixed: Piwigo API can only handle the "rest" requestFormat.
If we try to search for another request format the only result is an
"Unknown request format" error for the client. This error happens when
always_populate_raw_post_data is On (which is not the default Apache
setting).