Client doesn't fetch 0-size document as expected

I’ve got a couple of 0-sized files in document storage (don’t ask why) but the http client doesn’t handle retrieving them.
Using the command-line client I get:

[conradL@qimr13054 ~]$ stardog doc get https://10.10.2.48/grafli-sandbox a2db2672-7016-3d88-83ba-
bd81afd7d1a4.Illumina_Platinum_Genomes_manifest
JsonNull

And using StardocsConnection#getDoc from the API directly I get:

play.api.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[StardogException: JsonNull]]
at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:255)
at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:182)
at play.core.server.AkkaHttpServer$$anonfun$$nestedInanonfun$executeHandler$1$1.applyOrElse(AkkaHttpServer.scala:251)
at play.core.server.AkkaHttpServer$$anonfun$$nestedInanonfun$executeHandler$1$1.applyOrElse(AkkaHttpServer.scala:250)
at scala.concurrent.Future.$anonfun$recoverWith$1(Future.scala:412)
at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:37)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at play.api.libs.streams.Execution$trampoline$.execute(Execution.scala:70)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:68)
at scala.concurrent.impl.Promise$DefaultPromise.dispatchOrAddCallback(Promise.scala:312)
Caused by: com.complexible.stardog.StardogException: JsonNull

My expectations were in the first case that the CLI client would create a 0-sized file with the document name, and in the second case I’d get back an InputStream with no contents

Hi Conrad,

I have been able to reproduce the issue and will get it fixed in the next release of Stardog. Thanks for the bug report.

Jess