Uploaded image for project: 'RiftSaw'
  1. RiftSaw
  2. RIFTSAW-517

H2Database needs to be updated to work with directories containing spaces

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.3.7.Final
    • 2.3.6.Final
    • Integration
    • None

    Description

      The H2Database creates a JDBC URL which will include escaped characters, these are processed literally by h2.

      The DB URL should be something like

      jdbc:h2:file:/Users/kevin/soa/5.3.0/jboss soa p 5/jboss-as/server/default/data/h2/BPELDB;MVCC=true;LOCK_MODE=3;LOG=1;DB_CLOSE_ON_EXIT=FALSE

      rather than

      jdbc:h2:file:/Users/kevin/soa/5.3.0/jboss%20soa%20p%205/jboss-as/server/default/data/h2/BPELDB;MVCC=true;LOCK_MODE=3;LOG=1;DB_CLOSE_ON_EXIT=FALSE

      A quick perusal of the code would suggest that

      final String dbURL = JDBC_URL_PREFIX + dbPath.toURI().toString() + flags ;

      needs to be changed to

      final String dbURL = JDBC_URL_PREFIX + dbPath.toURL().toString() + flags ;

      Attachments

        Issue Links

          Activity

            People

              jeff.yuchang_jira Jeff Yu (Inactive)
              kconner@redhat.com Kevin Conner (Inactive)
              Archiver:
              rhn-support-adandapa Aitik Dandapat

              Dates

                Created:
                Updated:
                Resolved:
                Archived:

                PagerDuty