From: zapata Date: Sat, 26 Apr 2003 15:42:17 +0000 (+0000) Subject: open sessions now use the config for tempdir, max upload size, encoding X-Git-Tag: BEFORE_MERGE_1_1~141 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=6f1143d9ea2c61d076fc781d409043a53a2b9e4d;p=mir.git open sessions now use the config for tempdir, max upload size, encoding --- diff --git a/source/mircoders/localizer/basic/MirBasicPostingSessionHandler.java b/source/mircoders/localizer/basic/MirBasicPostingSessionHandler.java index ddefe57d..b4eca4f9 100755 --- a/source/mircoders/localizer/basic/MirBasicPostingSessionHandler.java +++ b/source/mircoders/localizer/basic/MirBasicPostingSessionHandler.java @@ -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(); diff --git a/source/mircoders/servlet/ServletModuleOpenIndy.java b/source/mircoders/servlet/ServletModuleOpenIndy.java index b37a46f1..2e9a56af 100755 --- a/source/mircoders/servlet/ServletModuleOpenIndy.java +++ b/source/mircoders/servlet/ServletModuleOpenIndy.java @@ -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)))