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

H2Database needs to be updated to work with directories containing spaces

    Details

      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:
                  kconner Kevin Conner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: