Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1365

[Patch] POST method in cinclude:includexml is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.6
    • 2.1.9, 2.2
    • - Components: Sitemap
    • 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&lt;/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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nverwer Nico Verwer
            Votes:
            7 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: