Will no one else at least confirm the same behavior on another Apache 2 and CF10 server? If I can get a confirmation, then I can at least report the issue.
I have something close here.
Win 2008. Apache 2. CF10.
The second line of this code makes my cf server crash :
this.errorRelPath = "/media/_error/"; this.errorAbsPath = expandPath(this.errorRelPath);
My component is in the directory :
And there is a mapping on
/component ==> D:/Clients/Sites/F5/component/
Can you try creating a per-application mapping?
<cfset THIS.mappings[ '/storage' ] = 'C:\path\to\storage\folder\' />
And then in your page code, just:
<cfdump var="#directoryExists( expandPath( '/storage' ) )#" abort="1" />
I"m wondering if IIS8 has some kinda issue where it will not let you access paths outside the site root directory. If you create a CF-mapping, CF can access these paths with it's own internal mappings and hopefully go around IIS8.
I am first trying to reproduce the issue on another machine.
I have no direct access to the server that I am crashing with my tests, I must pass through a third party to restart and they make us pay for that.
I'll keep you updated.
Couldn't reproduce it.
It worked perfectly on the other machine.
The server was crashing because of an overload from the SGBD on the same machine.
SGBD issue solved, we finaly were able to produce an error without crashing the server.
directoryExists said the directory didn't exist (which is true), but directoryCreate raised an error because it was trying to create something like that :
Note the ":redirect" which is I think the problem.
Then I comented the line, and it worked.
We added a few mappings, I restarted it worked.
I uncommented the line, it works.
Now, it is working, and I don't know why.