Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1186972 - RFE: Server-side file conversion and REST service
RFE: Server-side file conversion and REST service
Product: Zanata
Classification: Retired
Component: Component-API (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: 3.7
Assigned To: Alex Eng
Ding-Yi Chen
: Triaged
Depends On:
Blocks: 1217671
  Show dependency treegraph
Reported: 2015-01-28 21:28 EST by Ding-Yi Chen
Modified: 2015-07-21 22:20 EDT (History)
4 users (show)

See Also:
Fixed In Version: 3.7.0-SNAPSHOT (git-jenkins-zanata-server-build-integration-master-5214)
Doc Type: Bug Fix
Doc Text:
Story Points: 8
Clone Of:
Last Closed: 2015-07-21 22:20:11 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ding-Yi Chen 2015-01-28 21:28:15 EST
Description of problem:

Consideration of Server-side file conversion and REST service:
 * Server tasks
   * REST services to support all file types (raw upload of all formats that we support in the client)
   * 'File' project type will now support both okapi (.odt, idml, etc.) and Properties/Utf8Properties projects
   * Server to check file size and filename before accepting, reject files that are larger than our current maximum file size.
   * Use existing async framework to process the uploaded files.
       * One call to deliver the file, multiple subsequent calls to ask for progress
 * Sent file should send following metadata:
   * MIME type
   * File size  
   * File name 
 * Have the upload (from the JavaScript) use the REST API
 * project-type
    only File, but support all the file types in it
 * push
     source and translation
 * pull
     source and translation

Future enhancements:
 * File handling (future enhancement to allow thin java client)
   * Which files to be pushed/pulled
   * File mapping rule
   * Streaming for text base translation formats (e.g. gettext)
   * (Optional) compress the uploaded file. gzip is a good option.
   * Keep previous version of the uploaded file.
Comment 1 Carlos Munoz 2015-02-25 20:43:21 EST
Michelle, we might want to raise the priority on this one. It's one that will let us have a thinner clients. We can discuss.
Comment 2 Michelle Kim 2015-03-02 18:56:33 EST
Agreed. Making this issue high priority to work on in coming sprints. Thanks.
Comment 4 Alex Eng 2015-04-12 20:36:23 EDT
zanata-server: https://github.com/zanata/zanata-server/pull/772
Comment 5 Sean Flanigan 2015-04-29 00:26:39 EDT
Testing/requirements note: Should we make sure that you can still download translated properties/xliff files even if the raw document has been removed from the file system?
Comment 6 Alex Eng 2015-05-11 01:02:02 EDT
See Also: https://bitbucket.org/okapiframework/okapi/issue/459
Comment 7 Ding-Yi Chen 2015-05-12 00:46:25 EDT
VERIFIED with Zanata 3.7.0-SNAPSHOT (git-jenkins-zanata-server-build-integration-master-5214)

Client: Zanta 3.7.0-SNAPSHOT (commit: 57b61850cc35e0f01182531062fe74a55c698400)

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