Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17149

XML Mime Type not returned

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.1.2.Final
    • 4.1.2.Final
    • None
    • Compatibility/Configuration
    • Workaround Exists
    • Hide

      A .cfm-Page returns the correct MIME-Type, so the component can be wrapped in a normal .cfm-page

      Show
      A .cfm-Page returns the correct MIME-Type, so the component can be wrapped in a normal .cfm-page

    Description

      Component method doesn't set returned content type to application/xml (works in CF9).

      Here's a short example:

      <CFCOMPONENT output="false">
      	
      	<CFFUNCTION name="returnXML" 
      		hint="" 
      		access="remote" 
      		output="false" 
      		returntype="xml">
      
      		<CFSET sXML = '<?xml version="1.0" encoding="UTF-8"?>
      <Root>
      	<anelement>With some content</anelement>
      </Root>'>
      		
      		<CFCONTENT type="application/xml; charset=UTF-8">
      		<CFRETURN sXML />
      		
      	</CFFUNCTION>
      </CFCOMPONENT>

      Attachments

        Activity

          People

            Unassigned Unassigned
            dwoehr Dirk Wöhr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: