]> source.dussan.org Git - jgit.git/commit
ObjectDownloadListener#onWritePossible: Make code spec compatible 01/129501/6
authorDavid Ostrovsky <david@ostrovsky.org>
Sat, 15 Sep 2018 19:09:51 +0000 (21:09 +0200)
committerDavid Ostrovsky <d.ostrovsky@gmx.de>
Mon, 17 Sep 2018 11:46:16 +0000 (06:46 -0500)
commit5c134f4d42e12e9192f2beca8370c1b8bd58c08d
tree2deefef5d041bcc76c2acb086a3c051c314d8d56
parentf8e514c74a039209488ef56948c784c00a1d87b3
ObjectDownloadListener#onWritePossible: Make code spec compatible

Current code violates the ServletOutputStream contract. For every
out.isReady() == true either write or close of that ServletOutputStream
should be called.

See also this issue upstream for more context: [1].

[1] https://github.com/eclipse/jetty.project/issues/2911

Change-Id: Ied575f3603a6be0d2dafc6c3329d685fc212c7a3
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/ObjectDownloadListener.java