Description of problem: We should introduce a parameter in the API which the client will use to specify the file-part-size. This value is needed by the Hibernate 4.x API when writing an InputStream to a BLOB. At present, the only way for the server to calculate it is to read the entire stream up front. Ref: org.zanata.rest.service.FileService.saveUploadPart(DocumentFileUploadForm, HDocumentUpload) Version-Release number of selected component (if applicable): master
Added parameter to DocumentFileUploadForm to specify size of file part. Updated client to use the new parameter, and server to use the value when creating a BLOB. See: - https://github.com/zanata/zanata-api/commit/f658b7d42ff77fd0a143a1a90bf9c8e89fd73556 - https://github.com/zanata/zanata/commit/d6090585dcf928681fbc8449810454aa474c1228 - https://github.com/zanata/zanata-client/commit/5b5baeb8d85193ca6f1cffb90d055659dd306ef8 Note: there should be no change in behaviour of raw file upload with this change.
VERIFIED with Zanata version 2.2-SNAPSHOT (20130221-0034) Maven client 2.0.2-SNAPSHOT
Closing VERIFIED bugs for Zanata versions <= 3.1.