tracker issue : CF-4201311

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

PUT/PATCH Request Body is lost with IIS connector

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Matthew Clemente / Matthew Clemente ()

Created: 02/22/2018

Components: Installation/Config, Connector

Versions: 11.0

Failure Type: Data Loss

Found In Build/Fixed In Build: 11,0,13,303668 / NA

Priority/Frequency: Normal / All users will encounter

Locale/System: / Win 2012 Server x64

Vote Count: 1

Problem Description: When a PUT/PATCH request with a body is made to ColdFusion, running on IIS 8, the body of the request is lost. The request body is preserved for the same request when run on the built-in web server.

All verbs are allowed in IIS. It doesn't matter if the PUT/PATCH originates from ColdFusion or from an external source, like Postman; the result is the same. IIS doesn't lose the request body when PUT/PATCH requests are made from ASP.

Steps to Reproduce: https://gist.github.com/mjclemente/d8db19dcecf072afc0c6143e26ae2b97

Actual Result: The content of the result is:  [empty string] 

Expected Result: The content of the result is: { "test" : 1 }

Any Workarounds: There are a few hacky ways of getting around it; for example, HTTP Method tunneling or handling data via URL params.

Attachments:

Comments:

Hi, I don't see the Issue. System Details Below: OS: Windows Server 2012 R2 Standard IIS Version: 8 CF Version : 11,0,13,303668 PFA Sceenshot (Port 82 refers to Connector Port and 8501 Built-in Server)
Comment by Manas Mahapatra
94 | February 23, 2018 07:48:56 AM GMT
Sorry, for some reason I didn't get notified about this comment. I'm not sure I understand your response - I don't see any attachments, so I can't see your screenshots. Could you provide them again? Is there anything further that I can provide to clarify the issue? I can reproduce it on both our development and production servers.
Comment by Matthew Clemente
95 | March 02, 2018 08:52:44 PM GMT
I never got a response to the above comment, so I'll ask again. Could you provide the screenshots again? Is there anything further that I can provide to clarify the issue? I can reproduce it on both our development and production servers.
Comment by Matthew Clemente
29123 | June 21, 2018 08:49:03 PM GMT
Just wanted to try checking in on this one last time. Could you provide the attachments again? And is there anything further that I can provide to clarify the issue?
Comment by Matthew Clemente
29263 | July 10, 2018 03:07:41 PM GMT
Hi Mathew, Apologies for the late Reply. I am attaching the screenshot again.(IIS_Connector_Issue.png) The screenshot has 2 parts . Left panel and right. Left Panel : Is a screenshot for IIS connector on port 82 Right Panel : 8501 built in port. Both hosting the same index.cfm whose content u had shared : [https://gist.github.com/mjclemente/d8db19dcecf072afc0c6143e26ae2b97] In both of them i get  Expected Result: The content of the result is: { "test" : 1 }   OS: Windows Server 2012 R2 Standard IIS Version: 8 CF Version : 11,0,13,303668   Am i missing anything here ?? 
Comment by Manas Mahapatra
29511 | August 16, 2018 09:58:50 AM GMT
Hi Mathew, Any update on this??
Comment by Manas Mahapatra
29645 | August 30, 2018 06:56:54 AM GMT
Thanks for providing those attachments. Retesting this is on my to-do list, but I've been swamped. I'll try to retest by the end of the week to see if anything's changed.
Comment by Matthew Clemente
29646 | August 30, 2018 10:18:02 AM GMT
I tested again with the same result. I noticed that you tested on IIS 8. We're on 8.5. Perhaps there's a difference? Here's the exact information: IIS 8.5.9600.16384. Is there anything further that I can provide to clarify the issue? While it's totally possible that it has to do with our configuration, I'm at a complete loss for what the cause might be, if it's not a bug.
Comment by Matthew Clemente
29654 | September 02, 2018 09:39:00 PM GMT
Hi Mathew,  I did try again on  i.a different machine and ii. a fresh It Cloud Machine; no luck though. A few queries :  i. Can you give us the log files? To do so follow the steps below *    Go to Magic Folder(for e.g: config ->wsconfig -> 1). *    Clean the isapi_redirect.log. *    Edit isapi_redirect.properties and change log_level = debug  *    Rerun the request and share the fresh log files. ii. Did you tweak some IIS default settings? I haven't.To cross-check do compare yours with some default on some other machine and confirm. iii. If possible can you try on any other machine and see if the repro is consistent. I doubt this would.
Comment by Manas Mahapatra
29657 | September 03, 2018 10:00:45 AM GMT
Hi Mathew, I highly doubt this being a ColdFusion Issue ; since you already mentioned you face this Issue with Postman too. I guess some settings need to reinstated in your IIS to allow these verbs : The below links could be useful: [https://stackoverflow.com/questions/10906411/asp-net-web-api-put-delete-verbs-not-allowed-iis-8] https://stackoverflow.com/questions/6739124/iis-7-5-enable-put-and-delete-for-restful-service-extensionless
Comment by Manas Mahapatra
29668 | September 06, 2018 05:34:35 AM GMT
Looks a clear IIS  specific Issue. Closing this as "NotABug" Will be reopened in case of any discrepancy.
Comment by Manas Mahapatra
29693 | September 12, 2018 06:24:14 AM GMT