tracker issue : CF-3035992

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 72960:(Watson Migration Closure)Components should return proper MIME type

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Michael Dawson / Michael Dawson (Michael)

Created: 09/13/2008

Components: Language, CF Component

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 2

Problem:

Components should return proper MIME type.

I should be able to control the mime type by a combination of the following attributes.  This behavior is necessary in many AJAX calls that require an xml MIME type rather than plain text.

returntype="xml" returnformat="plain"

This should return an xml string with text/plain.

returntype="xml" returnformat="xml"

This should return an xml string with application/xml.

The returnformat attribute should also accept any valid MIME type.

Current workarounds are to create a facade, for the CFC, that returns the correct MIME type; enable output within the cffunction tag and use cfcontent within the cffunction tag to return the correct MIME type.

However, setting a MIME type with cfcontent, in a cffunction tag, doesn't feel like the best solution.
Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3035992

External Customer Info:
External Company:  
External Customer Name: Michael Dawson
External Customer Email: 361B0A9E44763038992016B8
External Test Config: 09/13/2008

Attachments:

Comments:

This bug has been voted..
Vote by External U.
24743 | November 10, 2011 10:38:47 AM GMT
This bug has been voted..
Vote by External U.
24744 | November 10, 2011 10:38:49 AM GMT