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

H2Database needs to be updated to work with directories containing spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.M5
    • Component/s: Integration
    • Labels:
      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 ;

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jeff.yuchang Jeff Yu
                  Reporter:
                  jeff.yuchang Jeff Yu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: