Permalink
Browse files

Fix issue #173 make sure piperack pipelines have a base URI

  • Loading branch information...
ndw committed Aug 27, 2014
1 parent 30598d7 commit dfa20262d6f7acb1865188bcd499630928ddf507
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/com/xmlcalabash/piperack/Pipelines.java
@@ -101,7 +101,11 @@ protected Representation post(Representation entity, Variant variant) {
XProcRuntime runtime = new XProcRuntime(getConfiguration());
try {
- XdmNode doc = runtime.parse(new InputSource(entity.getStream()));
+ InputSource is = new InputSource(entity.getStream());
+ String base = getHostRef().toString();
+ is.setSystemId(base + "/" + name);
+
+ XdmNode doc = runtime.parse(is);
XPipeline pipeline = runtime.use(doc);
getPipelines().put(id, new PipelineConfiguration(runtime, pipeline, expires));
} catch (Exception e) {

0 comments on commit dfa2026

Please sign in to comment.