Ticket #238 (new defect)

Opened 1 year ago

Last modified 1 year ago

parsePath confused by ../parent path

Reported by: scorfield Owned by: sean@…
Type: defect Priority: normal
Milestone: Fusebox 5.6 Component: Extensions: Lexicons/Plugins
Version: Severity: normal
Keywords: Cc:

Description

With the following structure, include act_CheckBansByIP fails:

/www
   index.cfm
   Application
   /images
/Data
   /Circuits
     /Security
       act_CheckBansByIP.cfm
   /parsed
   fusebox.xml.cfm

Fusebox.xml.cfm contains...

     <parameters>
         <parameter name="allowImplicitCircuits" value="false" />
         <parameter name="debug" value="true" />
         <parameter name="parsePath" value="../Data/parsed" />
         <parameter name="pluginsPath" value="../Data/plugins" />
         <parameter name="lexiconPath" value="../Data/lexicon" />
     </parameters>

In my index.cfm file, I have <cfset FUSEBOX_APPLICATION_PATH = "../Data">

The parsed copy of the file looks like this..

<cfoutput><cfinclude 
template="../../../Circuits/Security/act_CheckBansByIP.cfm"></cfoutput>

Workaround: remove the parsePath declaration.

Attachments

Change History

Changed 1 year ago by scorfield

  • milestone changed from Fusebox 5.5 to Fusebox 5.6

The workaround is simple (don't use relative paths back to the same directory!) so this can be deferred to 5.6.

Note: See TracTickets for help on using tickets.