Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

ColdSpring Bean Utilities
Project Home Blog Forums Wiki Known Issues Contact Project

ColdSpring Bean Utilities Issue: DynamicXMLBeanFactory always expands path of xml file

Name: DynamicXMLBeanFactory always expands path of xml file
ID: 1
Project: ColdSpring Bean Utilities
Type: Bug
Area: Code
Severity: Normal
Status: Closed
Related URL:
Creator: Chris Blackwell
Created: 11/13/08 11:11 AM
Updated: 12/15/09 10:53 PM
Description: DynamicXMLBeanFactory always does an expandpath() on the value passed to loadBeansFromDynamicXmlFile(). This causes an error when passing the absolute path of an xml file.

looking at the DefaultXMLBeanFactory it looks like simply wrapping this in a conditional block to check if the file exists would be ok

93: <cfif not fileExists(arguments.coldSpringXMLPath)>
94:    <cfset arguments.coldSpringXMLPath = ExpandPath(arguments.coldSpringXMLPath) />
95: </cfif>
History: Created by ChrisBlackwell (Chris Blackwell) : 11/13/08 11:11 AM

Comment by brian428 (Brian Kotek) : 12/15/09 10:53 PM
Better late than never, Chris, I've added logic to only attempt expandPath if the file doesn't exist.

Updated by brian428 (Brian Kotek) : 12/15/09 10:53 PM

To add a comment to this bug, please login using the link above.