Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-823

JcrRepositoryFactory's config URL cannot contain query parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final
    • 2.0.0.Final
    • JCR
    • None

      If RepositoryFactory is called with a org.modeshape.jcr.URL property containing an file URL without query parameter, the repository initialization works due to the fallback in JcrRepositoryFactory, line 186.

      If however the RepositoryFactory is called with (the same) file URL containing a query parameter, a FileNotFoundException is thrown:

      java.io.FileNotFoundException: C:\eplatform\ews\R_3.5\workspace\config-repo\src\main\resources\configRepository.xml?repositoryName=config-DB (The filename, directory name, or volume label syntax is incorrect)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at java.io.FileInputStream.<init>(FileInputStream.java:66)
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
      at java.net.URL.openStream(URL.java:1009)
      at org.modeshape.repository.ModeShapeConfiguration.loadFrom(ModeShapeConfiguration.java:238)
      at org.modeshape.jcr.JcrConfiguration.loadFrom(JcrConfiguration.java:322)

              bcarothers_jira Brian Carothers (Inactive)
              simon.g Simon Gunzenreiner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: