Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1371

Double encoding of persistence-unit root-url leads to issues in paths with spaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: deployment
    • Labels:
      None
    • Environment:
      Win xp / Linux + Hibernate 3.5.5 Final / Hibernate 3.2.6.ga

      Description

      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"," "));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dblevins David Blevins
                Reporter:
                ordiax Pierre V
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: