Ticket #124 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

Load operation requires valid source URL even if overridden with InputStream

Reported by: alexhall Assigned to: pag
Priority: minor Milestone:
Component: Mulgara Version: 2.0-alpha
Keywords: Cc:

Description

The org.mulgara.query.operation.Load class extends the DataTx? operation, whose constructor requires URI's for source, destination, and graph. The DataTx? operation also provides a setOverrideStream() method allowing the client to override the source URI with an InputStream?. Even if an overriding input stream is used, the source URI is required to be a valid URL or else line 137 will throw an error. The line in question is:

if (compressable) inputStream = adjustForCompression(source.toURL());

I believe that the correct behavior if a client provides an overriding InputStream? is to never evaluate the source URI and treat the input stream as always uncompressed.

Change History

07/21/08 10:49:49 changed by pag

  • status changed from new to closed.
  • resolution set to fixed.