flashservices/gateway and ColdFusion 10

Hey! A post on ColdFusion!

(I’m so pissed at you, ColdFusion…)

So it appears that Adobe changed /flashservices/gateway* = cfusion to /flashservices/gateway/* = cfusion in uriworkermap.properties for ColdFusion 10.

ColdFusion Hates you.

Why is this a problem? Well, I have a lot of legacy content that makes AMF calls to CFCs in a system that is being upgraded to ColdFusion 10 from ColdFusion 9. And with this little change – everything is broken. I spent an entire day of work troubleshooting this and dropping mad F-bombs at CF and IIS for no good reason. I’m sure this must be buried in documentation somewhere… but I’ll offer this up publicly – since I found nothing in my search through 100,000 Google search results (most dating from 2007).

The file you’ll need is located here:

{cfroot}\config\wsconfig\1\uriworkermap.properties

It’ll look like this, initially… because someone made a bad choice:

/cfformgateway/* = cfusion
/CFFormGateway/* = cfusion
/flex2gateway/* = cfusion
/flex2gateway = cfusion
/cffileservlet/* = cfusion
/CFFileServlet/* = cfusion
/cfform-internal/* = cfusion
/flashservices/gateway/* = cfusion
/flex-internal/* = cfusion
/rest/* = cfusion
/*.cfml/* = cfusion
/*.mxml = cfusion
/*.as = cfusion
/*.cfm = cfusion
/*.cfm/* = cfusion
/*.swc = cfusion
/*.cfml = cfusion
/*.cfc = cfusion
/*.cfc/* = cfusion
/*.cfr = cfusion
/*.cfswf = cfusion
/*.sws = cfusion
/*.jsp = cfusion
/*.hbmxml = cfusion

I was originally going to just remove the damn slash but you will notice that for flex2gateway they actually have both syntax enabled – so I did the same for flashservices/gateway as well:

/cfformgateway/* = cfusion
/CFFormGateway/* = cfusion
/flex2gateway/* = cfusion
/flex2gateway = cfusion
/cffileservlet/* = cfusion
/CFFileServlet/* = cfusion
/cfform-internal/* = cfusion
/flashservices/gateway/* = cfusion
/flashservices/gateway* = cfusion
/flex-internal/* = cfusion
/rest/* = cfusion
/*.cfml/* = cfusion
/*.mxml = cfusion
/*.as = cfusion
/*.cfm = cfusion
/*.cfm/* = cfusion
/*.swc = cfusion
/*.cfml = cfusion
/*.cfc = cfusion
/*.cfc/* = cfusion
/*.cfr = cfusion
/*.cfswf = cfusion
/*.sws = cfusion
/*.jsp = cfusion
/*.hbmxml = cfusion

Don’t forget to restart the ColdFusion service after saving these changes…

2 comments:

  1. Thanks for trying, but this change did not work. Can’t get flash remoting to work with Coldfusion 10. Been working with CF8 and CF9 for years. /flex2gateway gives a 404 error

Comments are closed.