Ticket #139 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

Add absolute path support to a circuit definition in the fusebox.xml file

Reported by: jason@… Owned by: scorfield
Type: enhancement Priority: normal
Milestone: Fusebox 5.1 Component: Miscellaneous
Version: 5.0 Severity: normal
Keywords: Cc:

Description

Add absolute path support (i.e. via a cf mapping) to allow a circuit definition. E.g.
<circuit alias="v_" path="/com/attendeeinteractive/webhome/view/" />. This would remove the relative path constraint so the web application could be moved to a different directory without requiring changes to the fusebox.xml file.
Example:
Original app location = wwwroot/webapp/
Move app to = wwwroot/webapp/archive/

circuite v_ 'mapped' to wwwroot/com/attendeeinteractive.com/webhome/view

Developers could move the 'webapp' into the archive directory (i.e. simple file copy of all the files in that directory to the archive directory) without making changes to the fusebox.xml file and the application would still work.

Attachments

Change History

Changed 2 years ago by scorfield

  • owner changed from sean@corfield.org to scorfield
  • status changed from new to assigned
  • version set to 5.1
  • component changed from Custom Lexicons to Miscellaneous
  • type changed from defect to enhancement

Seems reasonable. Have to figure out the compatibility issues of how FB41 behaves with root-relative paths.

Changed 2 years ago by scorfield

  • version changed from 5.1 to 5.0
  • milestone set to Fusebox 5.1

Changed 2 years ago by scorfield

My preferred implementation is to do the following:

1. Add optional relative="true|false" attribute to the <circuit> declaration with a default of true.

2. If relative="false" and path="relativePath/" throw an exception.

3. If relative="false" and path="/absolutePath/" call expandPath() and use the result as the full path.

4. If relative="true" and path="absolutePath/" and strictMode throw an exception.

5. If relative="true" behave as FB5.0.0/FB4.x.

Changed 2 years ago by scorfield

(In [266]) Addresses #139 by adding a new attribute, relative=, to the <circuit> declaration in fusebox.xml and,
in strict mode, validating path= and throwing an exception if it is "/absolute/" rather than "relative/".
The default behavior is compatibile with Fusebox 5.0.0 and earlier releases.

Changed 2 years ago by scorfield

Awaiting community feedback before closing this as fixed.

Changed 2 years ago by scorfield

Jason Daiger's testing indicates this doesn't actually work as I expected (it looks like something is not replacing '\' by '/' as I would expect):

My entire system is on 1 drive on the C: directory within Windows. All mapped drives, fusebox files and files and directories reside under c:\inetput\wwwroot\. CF7 is running in the c:\cfusionmx7 directory.
Dir structure under wwwroot as follows:
c:\inetput\wwwroot\com == cf mapping \com

All circuit files are implemented in this directory: \com\attendeeinteractive\ai-projectmngr\v101\

c:\inetput\wwwroot\fusebox5 == cfmapping = \fb50
c:\inetput\wwwroot\projects\ai-projectmngr\www\. = stores fusebox.xml, index.cfm, etc. file.


Any other ideas?


-Jason


From: fusebox5@yahoogroups.com fusebox5@yahoogroups.com On Behalf Of Sean Corfield
Sent: Wednesday, November 15, 2006 3:09 PM
To: fusebox5@yahoogroups.com
Subject: Re: [fusebox5] 5.0.1.266 build implements Ticket 139 - absolute / mapped circuit paths

You have the IIS webroot on a different drive to the rest of your code? That's not supported by Fusebox (or, more correctly, by the Java file handling routines underneath CFMX).

On Nov 15, 2006, at 10:15 AM, Jason Daiger wrote:
I pulled down the latest code from SVN to test out the new absolute path support and am running into some issues. Before I add a ticket for it I wanted to double check that I'm not doing something wrong..
I keep getting a 'The filename, directory name, or volume label is incorrect' error. Here my current configuration on my Windows XP dev machine:
1. Mappings:
a. /com = all 'shared' code directories.
b. /fb50 = mapping to fusebox core files.
2. Index.cfm has the following: <cfinclude template="/fb50/fusebox5.cfm">
3. fusebox.xml defines the following circuit: <circuit alias="h" path="/com/attendeeinteractive/projectmngr/v101/helper/" relative="false" />
Note: strict mode is true
4. I get an error every time the system tries to pull up the page. The parsed output produces the following:
<cfoutput><cfinclude template="../../../../../../../:\Inetpub\wwwroot\com\attendeeinteractive\projectmngr\v101\helper\/hlp_IsSignedIn.cfm"></cfoutput>
Is this user error on my part?
Thanks,
Jason

Changed 2 years ago by scorfield

  • status changed from assigned to closed
  • resolution set to fixed

(In [269]) Fixes #139. I'd missed replacing Windows path separators after calling expandPath().

Changed 2 years ago by scorfield

(In [276]) Addresses #139 by adding validation of the relative attribute and fixing the repeated circuit bug.

Changed 1 year ago by kromm

http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220047&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220046&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220044&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220043&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220042&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220041&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220039&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220038&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220037&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220036&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220035&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220034&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220033&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220032&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220031&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220030&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220029&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220028&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220027&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220026&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220025&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220024&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220023&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220022&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220021&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220020&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220019&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220018&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220017&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220016&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220015&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220014&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220013&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220012&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220011&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220010&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220009&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220008&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220007&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220006&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220005&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220004&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220003&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220002&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220001&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=220000&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219999&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219998&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219997&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219996&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219995&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219994&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219993&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219992&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219991&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219990&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219989&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219988&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219987&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219986&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219985&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219984&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219983&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219982&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219981&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219980&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219979&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219978&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219977&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219976&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219975&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219974&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219973&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219972&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219971&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219970&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219969&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219968&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219967&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219966&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219965&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219964&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219963&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219962&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219961&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219960&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219959&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219958&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219957&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219956&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219955&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219954&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219953&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219952&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219951&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219950&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219949&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219948&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219947&aid=1678729
http://sourceforge.net/tracker/download.php?group_id=691&atid=300691&file_id=219946&aid=1678729

Note: See TracTickets for help on using tickets.