-
Bug
-
Resolution: Done
-
Major
-
2.0.0.Final
-
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)