Bug 864277 - [RFE] Allow upload and download of txt, dtd and open document format through REST interface
[RFE] Allow upload and download of txt, dtd and open document format through ...
Status: CLOSED CURRENTRELEASE
Product: Zanata
Classification: Community
Component: ProjectType-Docs (Show other bugs)
development
Unspecified Unspecified
unspecified Severity medium
: ---
: 2.0
Assigned To: David Mason
Ding-Yi Chen
:
Depends On: 886711
Blocks: 864280 884347
  Show dependency treegraph
 
Reported: 2012-10-08 23:26 EDT by David Mason
Modified: 2013-02-25 22:46 EST (History)
2 users (show)

See Also:
Fixed In Version: 2.0.3-SNAPSHOT (20121119-0019)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-25 22:46:17 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description David Mason 2012-10-08 23:26:16 EDT
Description of problem:
Implement upload and download through the REST interface for documents of type DTD, plain text (.txt), and Open Document Format (odt, ods, odp, etc.).

Expected results:
Available REST methods for upload and download of source and translated documents of the above formats.
Comment 1 Ding-Yi Chen 2012-10-10 23:51:47 EDT
The format (extenstion filename) supported:
"odt", "fodt", "odp", "fodp", "ods", "fods", "odg", "fodg", "odb", "odf"
Comment 2 Ding-Yi Chen 2012-10-11 00:15:30 EDT
Test will be perform with following command:

curl -F type=txt -F file=@document.txt -F hash=`md5sum document.txt | awk '{print $1}'`   -F first=true -F last=true   -H "X-Auth-User:USERNAME" -H "X-Auth-Token:API_KEY"    "SERVER/rest/file/source/PROJECT_SLUG/VERSION_SLUG?docId=document
Comment 3 Ding-Yi Chen 2012-10-14 23:57:29 EDT
VERIFIED with Zanata version 1.8.0-SNAPSHOT (20121012-0031)
Comment 4 Ding-Yi Chen 2012-10-15 00:53:33 EDT
Soory, this should be reassign as I found:

1. After I click Download as text link, Firefox shows File not found; and
2. The Content-Type of Download as po link is application/octet-stream, which should be text/plain
Comment 5 David Mason 2012-10-17 01:53:11 EDT
Added documentation of REST interface methods, see http://github.com/zanata/zanata/wiki/Raw-File-REST-API
Comment 6 Ding-Yi Chen 2012-11-19 00:10:17 EST
VERIFIED 
with Zanata version 2.1-SNAPSHOT (20121119-1207) 
and Zanata version 2.0.3-SNAPSHOT (20121119-0019)

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