I thought i'd have a poke around in the src to see if i could figure this
one out, but i'm a little confused, which is not surprising. In case its of
any help to get this fixed, here's what i have found
In com.naryx.tagfusion.cfm.engine.registerTagsExpressions i see fileexists
being registered twice.
182: functions.put("fileexists",
"com.naryx.tagfusion.expression.function.fileExists");
416: functions.put("fileexists",
"com.naryx.tagfusion.cfm.file.vfs.FileExists");
is the the second meant to override the first, or is this a naming collision
introduced when adding S3 functionality?
The exception originates
at com.naryx.tagfusion.cfm.file.vfs.cfVFSData.setFileObject() where it tries
to use the VFS manager to resolve the filename
154: fileObject = VFS.getManager().resolveFile( this.fileUrl );
I'm completely lost at this point, but apparently resolveFile is bawking at
the relative path..
com.naryx.tagfusion.cfm.file.vfs.FileExists catches this exception but then
throws an error out to the page. I'm not sure whether it should ever throw a
cf error there, shouldn't it just return false. The only circumstances in
which i can get Adobe CF to throw an error with fileExists() is by passing
in a non-simple value as the path argument.
BTW, I've commented out the throwException in FileExists and that gets the
ModelGlue 3 skeleton application working.
Cheers, Chris
2009/1/28 Chris Blackwell <[email protected]>
> donehttp://code.google.com/p/openbluedragon/issues/detail?id=81
>
> 2009/1/28 Alan Williamson <[email protected]>
>
>
>> Chris, that looks like an error, can you file a proper bug please and
>> i'll take a look at that one.
>>
>> Chris Blackwell wrote:
>> > Hi,
>> >
>> > I was just trying to get ModelGlue 3 to run on OpenBD and ran into a bit
>> > of a brick wall. I'm getting errors when its trying to load config
>> > files in the form of "Could not find file with URI
>> > "/some/long/modelglue/path.xml" because it is a relative path, and no
>> > base URI was provided."
>> >
>> > It boils down to this simple test case not working
>> >
>> > <cfset path = "/some_path_that_does_not_exist/test.xml">
>> > <cfoutput>#fileExists(path)#</cfoutput>
>> >
>> > which generates the error
>> >
>> > File [/some_path_that_does_not_exist/test.xml] caused an error (Could
>> > not find file with URI "/some_path_that_does_not_exist/test.xml" because
>> > it is a relative path, and no base URI was provided.)
>> >
>> > This should just output NO, or False (can't remember which OpenBD uses)
>> >
>> > Can anyone confirm this as a bug?
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---