Ticket #478 (assigned defect)

Opened 3 years ago

Last modified 3 years ago

Seperate temporary uploads from permanent uploads, and make sure permanent are stored in /home/tomcat

Reported by: work@… Owned by: business@…
Priority: major Milestone: Must have
Component: Unknown Version: 0.8.3
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

Currently, there is no difference between file upload folders. Some are used temporarily (e.g. importing excel sheets) while others are permanent uploads (protocols, documents, etcetera).

At this moment all uploads are stored in the deployed application's application context (e.g. tomcat/webapps/fileuploads) or in /tmp. The permanent uploads should be stored in /home/tomcat, e.g. /home/tomcat/.gscf/environment-uploads/* (so... /home/tomcat/.gscf/ci-uploads/*)

Change History

Changed 3 years ago by robert@…

There are configuration options for that. Even separate options for the permanent directory and the temporary directory. So I suppose the thing to do is:

- set proper default values for those parameters in Config.groovy
- use these configuration values throughout the system

Changed 3 years ago by business@…

  • owner changed from business@… to robert@…
  • status changed from new to assigned

Hello Robert, which 2 options do you mean? I only see 1 config option in  https://trac.nbic.nl/gscf/browser/trunk/grails-app/conf/Config.groovy.
Which is uploads.uploadDir.
It is probably a good idea to add uploads.storageDir or something like that? And indeed implement that throughout the application.
 https://trac.nbic.nl/grails-plugins/browser/gdt/trunk/grails-app/services/org/dbnp/gdt/FileService.groovy now uses uploads.uploadDir.

Changed 3 years ago by robert@…

  • owner changed from robert@… to business@…

I'm sorry, my mistake. I have implemented this functionality before in the sequencing module ( https://trac.nbic.nl/dbnp-metagenomics). Is doesn't seem to be implemented in GSCF yet

Changed 3 years ago by business@…

  • milestone changed from 0.8.4 to Must have

Change this to .gscf? Do we store files anywhere else in the application?

Note: See TracTickets for help on using tickets.