Skip to content
Permalink
Browse files
Fix bug where same document references in file: URIs were being handl…
…ed incorrectly
  • Loading branch information
ndw committed Sep 11, 2014
1 parent 761317a commit 5e3617c
Showing 1 changed file with 2 additions and 1 deletion.
@@ -136,9 +136,10 @@ protected void readDoc() {
readDoc = true;
if (uri != null) {
try {
boolean sameDocumentReference = uri.startsWith("#");
// What if this is a directory?
URI baseURI = URI.create(base);
if ("file".equalsIgnoreCase(baseURI.resolve(uri).getScheme())) {
if (!sameDocumentReference && "file".equalsIgnoreCase(baseURI.resolve(uri).getScheme())) {
final DataStore store = runtime.getDataStore();
store.infoEntry(uri, base, "*/*", new DataInfo() {
public void list(URI id, String media, long lastModified)

0 comments on commit 5e3617c

Please sign in to comment.