]
Brett Meyer commented on SRAMP-599:
-----------------------------------
Pulling this out of spec-compliance tracking -- going to push back on several related
items with the TC.
Batch upload through linked artifacts in a multipart POST/PUT
-------------------------------------------------------------
Key: SRAMP-599
URL:
https://issues.jboss.org/browse/SRAMP-599
Project: S-RAMP
Issue Type: Sub-task
Reporter: Brett Meyer
Assignee: Brett Meyer
{quote}
2.3.5.2.1 Using Batch POST
RFC 2387, "The MIME Multipart/Related Content-type" describes how to perform a
multipart POST of binary documents. S-RAMP builds on this RFC to extend the IETF draft
document "ATOM Multi-part Media Resource Creation" to support the simultaneous
publishing of a collection of non-dependent and dependent resources and their associated
metadata. With this approach it is possible, for example, to publish an XSD document which
imports two other XSD documents by including it as well as its dependencies in a single
POST to the repository.
The Batch POST method requires an atom entry document as the root body part. This root
atom entry document points to any dependent atom entry documents contained in other body
parts using atom:link elements with an href attribute whose value is the Content-ID of the
relevant body part. It also points at the actual document content by specifying the
Content-ID of the relevant body part as the value of the src attribute in the atom:content
element of the atom entry document. This approach provides complete linkage between a
document and its dependencies and all corresponding binary resources.
{quote}
Although we implement the archive-based method of batch uploading, we do not currently
support plain multipart for multiple artifacts.
Support for both POST and updating through PUT is necessary.