Ticket #478 (assigned defect)

Opened 5 years ago

Last modified 5 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:
Hardware: Operating system:
Product: URL:


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

comment:1 Changed 5 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

comment:2 Changed 5 years ago by business@…

  • Status changed from new to assigned
  • Owner changed from business@… to robert@…

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.

comment:3 Changed 5 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

comment:4 Changed 5 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.