Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.6
-
None
-
Operating System: Windows XP
Platform: PC
-
32491
Description
Since Cocoon 2.1.6, the cinclude transformer does not handle the POST method
correctly. This is easy to see with the example from the Cocoon 2.1 docs:
<cinclude:includexml>
<cinclude:src>http://host:port/path</cinclude:src>
<cinclude:configuration>
<cinclude:parameter>
<cinclude:name>method</cinclude:name>
<cinclude:value>POST</cinclude:value>
</cinclude:parameter>
</cinclude:configuration>
<cinclude:parameters>
<cinclude:parameter>
<cinclude:name>message</cinclude:name>
<cinclude:value>Hi there</cinclude:value>
</cinclude:parameter>
</cinclude:parameters>
</cinclude:includexml>
In Cocoon 2.1.5 this made a HTTP-POST request, but in 2.1.6 it makes a HTTP-GET
request.
The code of the CInclude transformer does not seem to have changed. I suspect
that this is a bug in the Excalibur SourceResolver, but I can't find where this
could be. If someone can make this into a more specific Excalibur bug, please do.
correctly. This is easy to see with the example from the Cocoon 2.1 docs:
<cinclude:includexml>
<cinclude:src>http://host:port/path</cinclude:src>
<cinclude:configuration>
<cinclude:parameter>
<cinclude:name>method</cinclude:name>
<cinclude:value>POST</cinclude:value>
</cinclude:parameter>
</cinclude:configuration>
<cinclude:parameters>
<cinclude:parameter>
<cinclude:name>message</cinclude:name>
<cinclude:value>Hi there</cinclude:value>
</cinclude:parameter>
</cinclude:parameters>
</cinclude:includexml>
In Cocoon 2.1.5 this made a HTTP-POST request, but in 2.1.6 it makes a HTTP-GET
request.
The code of the CInclude transformer does not seem to have changed. I suspect
that this is a bug in the Excalibur SourceResolver, but I can't find where this
could be. If someone can make this into a more specific Excalibur bug, please do.