chubbymaggie / synoptic

Automatically exported from code.google.com/p/synoptic
0 stars 0 forks source link

Make file upload path absolute and configurable #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the GWT client uploads a file to the server for analysis, the file is 
stored in a sub-directory of the .war archive. This relative path may vary 
based on how the war archive is deployed (e.g., with Jetty/Tomcat/etc). We need 
to make this path absolute, and also configurable. For example, a Java 
property, or an environment variable. Here are a few relevant links:

http://stackoverflow.com/questions/4548190/best-location-for-uploading-file
http://stackoverflow.com/questions/4597796/system-getproperty-returns-null-for-d
efined-property
http://docs.codehaus.org/display/JETTY/A+look+at+the+start.jar+mechanism
http://stackoverflow.com/questions/3191204/how-can-i-pass-java-system-property-t
o-jetty
http://stackoverflow.com/questions/1812244/simplest-way-to-serve-static-data-fro
m-outside-the-application-server-in-a-java

Original issue reported on code.google.com by bestchai on 18 Nov 2011 at 7:39

GoogleCodeExporter commented 9 years ago
Issue 171 has been merged into this issue.

Original comment by bestchai on 18 Nov 2011 at 7:40

GoogleCodeExporter commented 9 years ago
Fixed in revision 36167a5ec699, with a system property.

Original comment by bestchai on 20 Nov 2011 at 11:14