Bug 896356 - Need to specify the size of the stream when sending a file (or part thereof)
Summary: Need to specify the size of the stream when sending a file (or part thereof)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-API
Version: development
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 2.2
Assignee: David Mason
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-17 05:55 UTC by Sean Flanigan
Modified: 2013-11-27 03:36 UTC (History)
0 users

Fixed In Version: 2.2-SNAPSHOT (20130221-0034)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-27 03:25:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Sean Flanigan 2013-01-17 05:55:23 UTC
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

Comment 1 David Mason 2013-01-31 02:22:34 UTC
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.

Comment 2 Ding-Yi Chen 2013-02-21 01:06:25 UTC
VERIFIED with Zanata version 2.2-SNAPSHOT (20130221-0034)
Maven client 2.0.2-SNAPSHOT

Comment 3 Sean Flanigan 2013-11-27 03:15:55 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 4 Sean Flanigan 2013-11-27 03:17:01 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 5 Sean Flanigan 2013-11-27 03:19:10 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 6 Sean Flanigan 2013-11-27 03:25:12 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 7 Sean Flanigan 2013-11-27 03:33:51 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 8 Sean Flanigan 2013-11-27 03:36:06 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.


Note You need to log in before you can comment on or make changes to this bug.