You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (JIRA)" <ji...@apache.org> on 2010/10/23 01:31:20 UTC
[jira] Updated: (OPENEJB-1371) Double encoding of persistence-unit
root-url leads to issues in paths with spaces
[ https://issues.apache.org/jira/browse/OPENEJB-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Blevins updated OPENEJB-1371:
-----------------------------------
Affects Version/s: (was: (trunk/openejb3))
Fix Version/s: 3.1.4
Assignee: David Blevins
Summary: Double encoding of persistence-unit root-url leads to issues in paths with spaces (was: Invalid persistence unit URL on a path with spaces using Hibernate)
Found the issue. Stems from an extra line added to ensure that the path was properly encoded when creating a URL. The issue was that the path was already properly encoded. So "/tmp/my%20path/" which is already properly encoded, was again encoded so the "%" turned into "%25" resulting in "/tmp/my%2520path/". The issue only affected persistence units.
Checking in a fix shortly.
> Double encoding of persistence-unit root-url leads to issues in paths with spaces
> ---------------------------------------------------------------------------------
>
> Key: OPENEJB-1371
> URL: https://issues.apache.org/jira/browse/OPENEJB-1371
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.1.3
> Environment: Win xp / Linux + Hibernate 3.5.5 Final / Hibernate 3.2.6.ga
> Reporter: Pierre V
> Assignee: David Blevins
> Priority: Blocker
> Fix For: 3.1.4
>
>
> With spaces in persistence units paths, the generated URLs cannot be used by hibernate.
> In PersistenceUnitInfoImpl#setRootUrlAndJarUrls, the persistenceUnitRootUrl param seems to have already been formated. The problem is fixed with
> File root = new File(persistenceUnitRootUrl.replaceAll("%20"," "));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.