Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Core: Configuration
-
Labels:None
-
User impact:Medium
-
Similar Issues:None
Description
In a webapp context, using IOUtils directly to load a resource ignores the ServletContext and the org.mule.webapp.classpath value set on that context. Ideally, I would like all resource loading done while evaluating a configuration file to use [Webapp]MuleXmlConfigurationBuilder.loadResource(). This method gets the "org.mule.webapp.classpath" semantics right.
Instead, MulePropertiesRuleSet.addFilePropertiesRule() adds a Rule which calls IOUtils.getResourceAsStream() directly.
This type of usage means that I need to switch to using absolute filepaths for a file reference inside my config XML when I use org.mule.webapp.classpath to use configuration information outside my webapp.
usage FileUtils was changed relative path to absolute path
as a result web app could not find resource