Search the web
Sign In
New User? Sign Up
fusebox5
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
A bug in locateCfc()   Message List  
Reply | Forward Message #4405 of 4459 |
Re: [fusebox5] A bug in locateCfc()

Hey Bob,

I made a change to my own local copy of the Fusebox core so that I could
include my core files from a CF Mapping instead of a relative path from
my index.cfm. It basically looks at the first character of
fusebox_application_path and if it's a "/" it takes the fusebox path
as-is for application.fusebox.webroottocorepath, instead of trying to
calculate it. I'm not sure if this is related to your situation or not,
but making this change to the core allowed me to have my webroot on my
C: drive, with my approot on my F: drive so that I could develop my
application in either Ubuntu or Windows and use the same code base. It's
working a treat for me so far. I haven't submitted it anywhere because I
can't vouch for the quality or the robustness of the code I introduced
into the core, but if you're interested I can send it to you.

Mike
http://www.fusebuilder.net


bobsilverberg wrote:
>
> I found a bug in FuseboxApplication.cfc, in the locateCfc() function.
> Due to my lack of familiarity with the internals of the framework I'm
> not sure how to address it.
>
> The problem is occurring because I have a symbolic link in my server's
> web root which points to my code which is elsewhere. locateCfc() uses
> ExpandPath("/") to get the location of the webroot, which in my case
> is /Library/WebServer/Documents/muraCMSPlain/. The filename being
> passed into locateCfc() is the actual location of the cfc, which is
>
/Users/robertsilverberg/Documents/workspace/muraCMSPlain/plugins/meldforums_16/c\
ontroller/cApp.cfc.
>
>
> The problem is that the logic that checks to see if the application
> resides in the webroot is determining that my app *does not* live in
> the webroot because of the discrepancy in the paths. But the app
> *does* live in the webroot. Because the framework thinks it does not
> live in the webroot, it assumes that I have a mapping to the folder
> that contains the controller, but I do not have such a mapping, so
> when the parsed file is written the CreateObject call points to an
> invalid location for the component.
>
> As I said above, I'm not sure how to best get around this issue. I
> don't know if there's another way to determine the webroot that would
> yield /Users/robertsilverberg/Documents/workspace/muraCMSPlain/ rather
> than /Library/WebServer/Documents/muraCMSPlain/, or whether this means
> that there is a need for a configuration option to tell the framework
> "I don't care what you think - my app is in the webroot".
>
> Does anyone have any ideas on how to resolve this issue?
>
> Thanks,
> Bob
>
>




Thu Nov 12, 2009 12:20 am

starkraving2002
Online Now Online Now
Send Email Send Email

Forward
Message #4405 of 4459 |
Expand Messages Author Sort by Date

I found a bug in FuseboxApplication.cfc, in the locateCfc() function. Due to my lack of familiarity with the internals of the framework I'm not sure how to...
bobsilverberg
Offline Send Email
Nov 11, 2009
8:42 pm

Hey Bob, I made a change to my own local copy of the Fusebox core so that I could include my core files from a CF Mapping instead of a relative path from my...
Mike Ritchie
starkraving2002
Online Now Send Email
Nov 12, 2009
12:21 am

Sure, Mike, if you think it might solve my problem I'd appreciate it if you could send me some info on what you did. Thanks, Bob ... -- Bob Silverberg ...
Bob Silverberg
bobsilverberg
Offline Send Email
Nov 12, 2009
3:43 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help