incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From klich...@apache.org
Subject svn commit: r816329 - /incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/fileupload/FileUploadHandler.java
Date Thu, 17 Sep 2009 18:43:51 GMT
Author: klichong
Date: Thu Sep 17 18:43:50 2009
New Revision: 816329

URL: http://svn.apache.org/viewvc?rev=816329&view=rev
Log:
bug fix for OLIO-121 - addPerson fails on Weblogic

Modified:
    incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/fileupload/FileUploadHandler.java

Modified: incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/fileupload/FileUploadHandler.java
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/fileupload/FileUploadHandler.java?rev=816329&r1=816328&r2=816329&view=diff
==============================================================================
--- incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/fileupload/FileUploadHandler.java
(original)
+++ incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/fileupload/FileUploadHandler.java
Thu Sep 17 18:43:50 2009
@@ -230,7 +230,10 @@
                         if (bDebug) {
                             System.out.println("\n*** other default locationDir=" + serverLocationDir);
                         }
-                        fileDir = (File) request.getAttribute("javax.servlet.context.tempdir");
+                        //fileDir = (File) request.getAttribute("javax.servlet.context.tempdir");
+                        // we don't need the tmp directory since we are avoiding writing
twice - once to /tmp and then to filestore
+                        // pick this up from the system environment(or web.xml) that WebappUtil
sets
+                        serverLocationDir = WebappConstants.WEBAPP_IMAGE_DIRECTORY;
                         serverLocationDir = fileDir.toString();
                     }
                 } else {



Mime
View raw message