ColdFusion ORM Event Handling and a problem with shared hosting

I discovered something very interesting the past week, that actually has me scratching my head. I had my host provider move my website over to a ColdFusion 9.01 server, so that I could use some of the new ORM features that are only available in that version.

However the hosting provider would fix the site and get it working, and then when the server was restarted, my website would no longer work again.

Then between the host and myself we have discovered an interesting problem.

Explaining how this works on the hosting provider is beyond me, and not something I need to discuss here. But just that the SandBox is reset by the looks of it to default settings, and we have to re-add a rule to be able to have this application work.

So I went about trying to duplicate the problem locally on my servers, and surprised that I could do this so easy.

Ok let me first describe the problem.

ORM Event handling that is setup using a handler that is not a persistent component, was causing a java.io.file permission on c:\inetpub\wwwroot\cfide\orm\IEventHandler.cfc and this has had the hosting provider stumped. First the CFIDE directory on the hosting provider is setup to be secured, so the most basic things are only provided and these files certainly are included.

The problem comes about when we setup a SandBox and lock things down, once we do that we will get this error. And it appears that ColdFusion is somehow being denied access to these files, now there are two problems here. The first is under a shared hosting provider this directory c:\inetpub\wwwroot\CFIDE is by definition of the SandBox denied access, and that is correct. However this is not the place that the Hosting provider stores the /CFIDE files, so why is ColdFusion now looking for these files in a non SandBoxed or correct location?

The second problem was I was able to duplicate it here, and was surprised to find that even though I use the full CFIDE on my local machine, and in that directory had me stumped as to why this is the case.

The only solution is to manually add a SandBox rule in ColdFusion that would allow access to the /CFIDE/orm directory, once you have done this and restarted ColdFusion then everything will be fine.

Now I am wondering whether this is a bug, and ColdFusion should be able to know that the location of the /CFIDE has changed. And whether it should be loading up from that location, and not the default location.


ColdFusion ORM Event Handling and a problem with shared hosting - http://goo.gl/4CiWK Apr 19, 2011

  • Javalike's Gravatar My HMS experience was similar to Pat. Very good customer service. Miserable uptime. They were very willing to move my apps to a “more stable” server, but the result was the same…customer goes to site, site is down, customer calls me and is not happy.
    # Posted By Javalike | 10/5/11 6:31 AM