kopia lustrzana https://github.com/gaul/s3proxy
Call completeMultipartUpload before opening writer
This allows Jetty to propagate errors from completeMultipartUpload correctly.pull/78/head
rodzic
50871a55ec
commit
dba252bb99
|
@ -1389,9 +1389,9 @@ final class S3ProxyHandler extends AbstractHandler {
|
||||||
throw new S3Exception(S3ErrorCode.MALFORMED_X_M_L);
|
throw new S3Exception(S3ErrorCode.MALFORMED_X_M_L);
|
||||||
}
|
}
|
||||||
|
|
||||||
try (Writer writer = response.getWriter()) {
|
|
||||||
String eTag = blobStore.completeMultipartUpload(mpu, parts);
|
String eTag = blobStore.completeMultipartUpload(mpu, parts);
|
||||||
|
|
||||||
|
try (Writer writer = response.getWriter()) {
|
||||||
XMLStreamWriter xml = xmlOutputFactory.createXMLStreamWriter(
|
XMLStreamWriter xml = xmlOutputFactory.createXMLStreamWriter(
|
||||||
writer);
|
writer);
|
||||||
xml.writeStartDocument();
|
xml.writeStartDocument();
|
||||||
|
|
Ładowanie…
Reference in New Issue