Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Remoting call to .CFC is turned into a .cfm

Participant ,
May 23, 2011 May 23, 2011

I know the title is a bit odd, but its a large problem and need some help.

I have flash forms, and all of a sudden after a server reboot, at least 1 but maybe more have remoting issues.

The problem i have found is this.

Call to /CFC/file.cfc method test() CFC.file.test() turns into /CFC/FILE/test.cfm and ColdFusion throws a 404 error and returns garbage back through the remoting call.

Has anybody ran into this?

our setup

newer servers runing Win 2003 server.

CF9.01

Thanks in advance.

Tim

TOPICS
Flash integration
2.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 25, 2011 May 25, 2011

Anyone??

Could an ORM mapping have anything to do with it?

I had a folder named CFC/PTO/ but have since renamed it thinking that might be the issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2011 May 26, 2011

You don't have a rewrite messing with the URLs do you?  Or have IIS misconfigured in its handling of CF requests (although I dunno how it could get that messed up)?

Is it Flash requesting the wrong file, or is it IIS messing with it, or is it CF getting it mixed up?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 26, 2011 May 26, 2011

That's the first thing I looked for. But don't any like that setup

Its cf, I have a cgi dump in the error emails. The error is a missingtemplate error from cf. The cgi show query string being one thing a path translated something else

Tim

Tim Garver

MIS Programmer

NICE Systems. USA

(T) + (704)932-4246

(C) + (704)264-9723

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2011 May 26, 2011

OK, the CGI variables come from the WEB SERVER.  So if they're messed up (in that they don't match when one would reasonably expect them to), then it's the webserver doing it.

Try routing your remote call through the JRun webserver as a test (if possible): that'll remove IIS from the equation.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 26, 2011 May 26, 2011

Adam

Thanks for replying

This the production box and make changes until after hours.

The dev box is identical and not experiancing the issue

I will give that a shot tonight

Tim

Tim Garver

MIS Programmer

NICE Systems. USA

(T) + (704)932-4246

(C) + (704)264-9723

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 26, 2011 May 26, 2011

I was able to reproduce this issue in our dev env.

Its the folder name that caused the issue.

/CFC/pto.cfc test()

And a folder named

/CFC/PTO/

Remoting turns this

Cfc.pto.test()

Into

Cfc/pto/test.cfm

Which is a cf 404 or missing template error

Hope this helps someone

Tim

Tim Garver

MIS Programmer

NICE Systems. USA

(T) + (704)932-4246

(C) + (704)264-9723

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 29, 2011 May 29, 2011
LATEST

I figured it out

It was the folder names.

I have a cfc file with the same name as a folder so all requests through remoting would fail for that cfc.

I renamed the folder and all is good.

Thanks again for the response.

Tim

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources