open sessions now use the config for tempdir, max upload size, encoding
authorzapata <zapata>
Sat, 26 Apr 2003 15:42:17 +0000 (15:42 +0000)
committerzapata <zapata>
Sat, 26 Apr 2003 15:42:17 +0000 (15:42 +0000)
source/mircoders/localizer/basic/MirBasicPostingSessionHandler.java
source/mircoders/servlet/ServletModuleOpenIndy.java

index ddefe57..b4eca4f 100755 (executable)
@@ -316,11 +316,13 @@ public abstract class MirBasicPostingSessionHandler implements SessionHandler {
     }
     return true;
   }
+
   /**
    * Method to generate a one-time password
    *
    * @return a password, to be used once
    */
+
   protected String generateOnetimePassword() {
     Random r = new Random();
     int random = r.nextInt();
index b37a46f..2e9a56a 100755 (executable)
@@ -122,7 +122,7 @@ import mircoders.storage.DatabaseTopics;
  *    open-postings to the newswire
  *
  * @author mir-coders group
- * @version $Id: ServletModuleOpenIndy.java,v 1.82 2003/04/26 01:28:54 zapata Exp $
+ * @version $Id: ServletModuleOpenIndy.java,v 1.83 2003/04/26 15:42:17 zapata Exp $
  *
  */
 
@@ -539,7 +539,11 @@ public class ServletModuleOpenIndy extends ServletModule
       throws ServletModuleExc, ServletModuleUserExc, ServletModuleFailure {
 
     try {
-      Request request = new HTTPAdapters.HTTPParsedRequestAdapter(new HTTPParsedRequest(aRequest, 1000000, "/tmp"));
+      Request request =
+          new HTTPAdapters.HTTPParsedRequestAdapter(new HTTPParsedRequest(aRequest,
+              configuration.getString("Mir.DefaultEncoding"),
+              configuration.getInt("MaxMediaUploadSize")*1024,
+              configuration.getString("TempDir")));
 
       if (aRequest.isRequestedSessionIdValid() && !aRequest.isRequestedSessionIdFromURL() &&
           !aRequest.getRequestedSessionId().equals(aRequest.getParameter(SESSION_REQUEST_KEY)))