Ticket #669 (closed: fixed)

Opened 23 months ago

Last modified 22 months ago

Allow file compression via web service

Reported by: fredrik Owned by: fredrik
Milestone: Proteios SE 2.12.0 Keywords:
Cc:

Description

Files can now be stored gzipped on the server. It should be possible to upload a file via web services to the server and have it zipped, as can be done using the GUI.

Change History

comment:1 Changed 23 months ago by gregory

  • Status changed from new to closed
  • Resolution set to wontfix

This feature adds to the complexity of proteios. Zip the file before uploading it.

comment:2 Changed 23 months ago by fredrik

  • Status changed from closed to reopened
  • Resolution wontfix deleted

Is this working? It works for external files, but local files will have things like size set upon upload. Will it work to create a new file using PUT, set compressed=true, upload the gzipped file using PUT? Will it still be considered compressed? Testing needed.

comment:3 Changed 22 months ago by fredrik

Answer is no, but it could work with this short fix or similar:

Add att row 648 in Service to
boolean compress=false; if (file.getCompressed()==true) compress=true; OutputStream? os = file.getUploadStream(false, compress, false);

comment:4 Changed 22 months ago by fredrik

  • Status changed from reopened to new
  • Owner changed from gregory to fredrik
  • Milestone changed from Proteios SE Future Release to Proteios SE 2.12.0

comment:5 Changed 22 months ago by fredrik

  • Status changed from new to closed
  • Resolution set to fixed

(In [3634]) Fixes #669. If a file is uploaded using web services, it will get compressed if the file object had compressed set to true.

Note: See TracTickets for help on using tickets.