You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Nicolas Le Bas (JIRA)" <ji...@apache.org> on 2014/09/06 02:54:28 UTC
[jira] [Updated] (TILES-579) NoSuchDefinitionException When
tiles.xml in a path containing white space
[ https://issues.apache.org/jira/browse/TILES-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Le Bas updated TILES-579:
---------------------------------
Description:
when running tiles.xml in a file path, which contains white spaces (such as c:\My Projects), a NoSuchDefinitionException is thrown. If I remove white spaces, the exception is gone.
The white spaces are converted to "%20" (C:\My%20Projects).
For me, the problem is in package org.apache.tiles.definition.dao, on class BaseLocaleUrlDefinitionDAO, line 149: stream = resource.getInputStream();
{code}
protected Map<String, Definition> loadDefinitionsFromResource(ApplicationResource resource) {
Map<String, Definition> defsMap = null;
InputStream stream = null;
try {
lastModifiedDates.put(resource.getLocalePath(), resource
.getLastModified());
// Definition must be collected, starting from the base
// source up to the last localized file.
stream = resource.getInputStream();
defsMap = reader.read(stream);
} catch (FileNotFoundException e) {
......
{code}
was:
when running tiles.xml in a file path, which contains white spaces (such as c:\My Projects), a NoSuchDefinitionException is thrown. If I remove white spaces, the exception is gone.
The white spaces are converted to "%20" (C:\My%20Projects).
For me, the problem is in package org.apache.tiles.definition.dao, on class BaseLocaleUrlDefinitionDAO, line 149: stream = resource.getInputStream();
protected Map<String, Definition> loadDefinitionsFromResource(ApplicationResource resource) {
Map<String, Definition> defsMap = null;
InputStream stream = null;
try {
lastModifiedDates.put(resource.getLocalePath(), resource
.getLastModified());
// Definition must be collected, starting from the base
// source up to the last localized file.
stream = resource.getInputStream();
defsMap = reader.read(stream);
} catch (FileNotFoundException e) {
......
> NoSuchDefinitionException When tiles.xml in a path containing white space
> -------------------------------------------------------------------------
>
> Key: TILES-579
> URL: https://issues.apache.org/jira/browse/TILES-579
> Project: Tiles
> Issue Type: Bug
> Components: tiles-core
> Affects Versions: 3.0.4
> Environment: Windows 7 86_64x (NTFS). Running on WebSphere Liberty Profile (WLP) Application Server.
> Reporter: Leonardo Piedade
> Labels: easyfix, patch
>
> when running tiles.xml in a file path, which contains white spaces (such as c:\My Projects), a NoSuchDefinitionException is thrown. If I remove white spaces, the exception is gone.
> The white spaces are converted to "%20" (C:\My%20Projects).
> For me, the problem is in package org.apache.tiles.definition.dao, on class BaseLocaleUrlDefinitionDAO, line 149: stream = resource.getInputStream();
> {code}
> protected Map<String, Definition> loadDefinitionsFromResource(ApplicationResource resource) {
> Map<String, Definition> defsMap = null;
> InputStream stream = null;
> try {
> lastModifiedDates.put(resource.getLocalePath(), resource
> .getLastModified());
> // Definition must be collected, starting from the base
> // source up to the last localized file.
> stream = resource.getInputStream();
> defsMap = reader.read(stream);
> } catch (FileNotFoundException e) {
> ......
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)