tracker issue : CF-3294617

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

Missing Template Handler not working

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Jeff McNaughton / Jeff McNaughton (Jeff McNaughton)

Created: 07/24/2012

Components: Installation/Config, Connector

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:

Adding a missing template handler doesn't seem to do anything?



Steps to Reproduce:

add missing template handler (like /missingfiles.cfm)

using browser, type in url to non-existent cfm file



Actual Result:

get blank page with http status code 200

Expected Result:

a friendly message that's in my missing template handler

Any Workarounds:

none found.   IIS is handling all other missing files but missing cfm files are not.

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

Watson Bug ID:	3294617

External Customer Info:
External Company:  
External Customer Name: jsm
External Customer Email:  
External Test Config: My Hardware and Environment details:

cf 10,  windows server 2008 r2  iis 7

Attachments:

Comments:

was working fine in cf 9
Comment by External U.
18680 | July 24, 2012 10:10:56 AM GMT
Something New!! The CF Error message shows up fine IF you view them on the server (like asp.net's more detailed error message) but the same missing page shows up blank if you a remote browser.
Comment by External U.
18681 | July 25, 2012 01:30:42 PM GMT
After further investigation, it looks like CF now returns what IIS would consider "detailed" error messages. So this might not be a bug, but it is a change in behavior. Some guidance on maintaining existing functionality would be appreciated.
Comment by External U.
18682 | August 01, 2012 12:49:11 PM GMT
Not reproducible. Missing template handler working fine for me. Can you share the setup details. Is IIS showing its own error template ? Is the error template relative path properly set ? Can you also share what detailed error message is returned (Comment added from ex-user id:gtiwari)
Comment by Adobe D.
18683 | August 02, 2012 03:41:23 AM GMT
I've figured out a bit more. If you have the standard IIS 404 Error Handler, the CF Admin Missing Template Handler does actually run (it will send a cfmail for example) but it does not output the friendly message. Output is caught by IIS and if you are remote, the standard IIS 404 message is displayed. If you are on the server, then you see the custom output defined in the CF Admin Missing Template Handler. If you have (as I had) a CUSTOM IIS 404 Handler pointing at a CF page. Then you get a blank page for CFM pages and no response from the server at all for NON-CFM pages. If you are on the server, Missing CFM pages act as expected but non-CFM pages get the standard IIS 404 DETAILED response.
Comment by External U.
18684 | August 02, 2012 03:54:42 PM GMT
I'm on 64 bit as well.
Comment by External U.
18685 | August 07, 2012 08:41:18 AM GMT
We are getting a response if we have a htm set in the "Execute a URL on this site" option of Error Pages. Also as a workaround we can use "Respond with a 302 redirect" option of Error Pages.
Comment by Asha K.
18686 | November 05, 2012 04:27:58 AM GMT
Immauel - Can you check and mark this is as a duplicate?
Comment by Vamseekrishna N.
18687 | May 15, 2013 11:38:57 PM GMT