Commit graph

  • bea5a4a0d0 * Updating commons-fileupload to release 1.1 * Adding commons-io which is needed bz commons-fileupload 1.1 hns 2006-01-30 16:12:14 +00:00
  • f2441616e1 * Use new ResourceProperties.getSubProperties(String prefix) feature to get application config props. hns 2006-01-27 15:43:23 +00:00
  • 729a7fa888 * Implement global functions wrapJavaMap() and unwrapJavaMap() to masquerade instances of java.util.Map as JS objects and back. hns 2006-01-27 14:23:56 +00:00
  • 8509b4b6c3 * Use new ResourceProperties.getSubProperties(String prefix) feature to get our config props. * Introduce getConfig() method to get the relations's config props. hns 2006-01-27 11:21:53 +00:00
  • 0e43265cb8 * Implement getSubProperties(String prefix) to get all properties with keys matching the given prefix, with the prefix cut off. * Remove superfluous return statements. * Remove some empty lines in methods. hns 2006-01-27 11:18:53 +00:00
  • 41233a115d * Remove unnecessary null check. hns 2006-01-25 16:42:02 +00:00
  • fb6c213f1c * Add repositories at the end of the repository list if parent is null or not contained in list. hns 2006-01-24 12:39:32 +00:00
  • db95fb181c * Remove PhantomEngine as it hasn't been in use since 2003. * Remove FilteredClassloader which relies on PhantomEngine. hns 2006-01-13 17:41:35 +00:00
  • b81f231c70 * Encapsulate fields in ResponseTrans and make them private. * Store response debug buffer in session over redirects (in addition to message). hns 2006-01-13 16:50:41 +00:00
  • a3fa56750c * Set event-log loglevel to DEBUG if debug=true in app.properties. hns 2006-01-13 13:21:40 +00:00
  • 9cbe269390 * Add setter and getter for logLevel. hns 2006-01-13 13:20:54 +00:00
  • c744b0624f * Cosmetics: remove empty line. hns 2006-01-13 11:23:51 +00:00
  • 752966cb47 * Perform sanity checks for INTERNAL calls before reaching the central switch statement in run() so we can start and stop transactions where we used to. * Do not check for null arguments in invokeDirectFunction(), it's up to the caller to pass an empty array. hns 2006-01-13 11:22:47 +00:00
  • 4c50f96e3e * Mark node clean in init() before invoking onInit() so we have a chance to modify the node in onInit() and having the changes written back to db. hns 2006-01-12 16:47:04 +00:00
  • 4b72017330 * Use RequestEvaluator.EMPTY_ARGS whenever calling a function with no args. hns 2006-01-12 16:32:45 +00:00
  • e1fb468424 * Cleaned up constructor mess a bit, including comments. * Implement invokation of onInit() for object instanced from db. * Made some methods synchronized that probably should be. hns 2006-01-12 16:12:02 +00:00
  • dcf63357f7 * Simplify getValidPrototype() and hasFunction() a bit. * No need to catch exceptions in hasFunction(). hns 2006-01-12 16:01:11 +00:00
  • 63b6b2843d * Add final static EMTY_ARGS field for calling functions without args. * Do not call ScriptingEngine.hasFunction() for onRequest(), it just adds overhead. * Move check for empty args from Application.invokeFunction() to RequestEvaluator.invokeDirectFunction. * Add some missing JavaDoc comments for invoke* methods. hns 2006-01-12 15:55:49 +00:00
  • 379f778e98 * Minor cleanup: no need to cast and assign nodes to variable. hns 2006-01-12 13:54:09 +00:00
  • 6919ade74e * Implement invocation of global onStop() when the application is stopped, analogous to onStart() when the app is started. * Some minor cleanup and obsolete code removal. hns 2006-01-11 16:45:15 +00:00
  • 39f8bbe85e * Make init(), enterContext(), exitContext() and abort() synchronized (can't hurt) * Some mostly stylistic improvements prompted by Intellij hns 2006-01-11 16:05:48 +00:00
  • cb92ec8469 * Add boolean resolve argument to ScriptingEngine.invoke() to tell the engine if functionName argument should be resolved as member expression. Use this feature to allow calling nested/deep functions in internal invocations (e.g. scheduler calls). Fixes bug 290. hns 2006-01-11 15:28:52 +00:00
  • f4eb8a9735 * Move req.action cutting to RequestTrans.setAction() and make sure dot characters are replaced with underscores in the action variable we use for method invocation. hns 2006-01-11 14:37:09 +00:00
  • be96b27a88 * Delay beginning of transaction a bit so we are able to avoid starting a transaction for internal invocations of functions which do not exist. Fixes bug 436. hns 2006-01-11 10:45:39 +00:00
  • e7bca045d1 * Use res.skinpath to find hrefSkin when post-processing hrefs. Fixes bug 450. hns 2006-01-11 09:40:26 +00:00
  • fc0edbb269 * Implement HopObject.getResources() - returns a JS array containing all resources with the given name defined in the prototype chain. hns 2005-12-23 16:04:14 +00:00
  • 9757afbffc * Implement app.getRepositories() and app.addRepository(String|Repository) hns 2005-12-23 15:55:57 +00:00
  • d0d0517993 Committing patch from Juerg Lehni: * Implement HopObject.getResource(String filename), returns a helma.framework.repository.Resource object defined for the prototype. * Minor optimization in put(). hns 2005-12-19 22:17:10 +00:00
  • 1336e51ba0 Committing patch from Juerg Lehni: * Add String getContent(String encoding) method to Resource interface. * Propagate IOExceptions in FileResource.getContent(). * Make FileResource.getContent() more robust by not assuming all data can be read in one single blow. * Do lazy byte->char conversion in ZipResource.getContent() in the String constructor rather than a Reader. hns 2005-12-19 22:15:11 +00:00
  • 1aa4fe75c9 * Add source and target attributes to javac task to guarantee JDK 1.3 compatibility. hns 2005-12-19 21:08:51 +00:00
  • 86d4f5dc5d * Pull ahead beginning of try statement for catching redirects in order to allow redirect() calls in getChildElement(). * Add comments for try statements. hns 2005-12-19 14:51:20 +00:00
  • c00c2cae25 * Fix NullPointerException in logSqlStatement that covered SQL connection problem reporting in logging output. hns 2005-12-19 14:46:01 +00:00
  • c3c858f9a3 Updated the Apache license to version 2.0, since we certainly need to include that one. Still have to check whether we remain to have code that is only available under the Apache 1.1 license. zumbrunn 2005-12-12 20:19:42 +00:00
  • 326f30a88b Change appDir handling: * If appDir is not defined in apps.properties, use the last file repository as appdir (used to be the first one) * If appDir is defined, add it to the end of the repository list if it isn't explicitly listed as repository. * If appDir is defined in apps.properties, use it for the app.dir JS variable. * Never automatically create an app's file repositories. hns 2005-12-12 17:54:26 +00:00
  • fa3ddd8a68 * Remove unused import statements. hns 2005-12-12 17:48:44 +00:00
  • 103f0f446f * Make checkForUpdates() synchronized, as concurrent threads can cause a ConcurrentModificationException in the iterator. hns 2005-12-12 15:54:07 +00:00
  • bc44143b14 Updated the URL provided for additional mod_jk information, since JK2 development has been shut down. zumbrunn 2005-12-12 14:49:41 +00:00
  • 06c8b33950 * Make start.sh executable in binary Unix build. hns 2005-12-12 14:25:20 +00:00
  • 0854a71ca0 Updated readme file for version 1.5 zumbrunn 2005-12-12 12:02:09 +00:00
  • 6e4bf10db0 Small changes to new core build target and lgpl-license which both slipped in with the last commit. zumbrunn 2005-12-12 10:57:27 +00:00
  • 8b05e95712 Removed duplicate license, start, properties and static files zumbrunn 2005-12-12 10:48:06 +00:00
  • dbfcfdcd27 Attempting to change execution bit on compile.sh zumbrunn 2005-12-09 12:07:42 +00:00
  • e7c799a813 Attempting to change execution bit on compile.sh zumbrunn 2005-12-09 12:04:42 +00:00
  • 45cc20d002 Attempting to change execution bit on compile.sh zumbrunn 2005-12-09 11:59:47 +00:00
  • c3edc5407d Renamed hop.sh/hop.bat to start.sh/start.bat zumbrunn 2005-12-09 11:50:18 +00:00
  • 11dc7d3651 fix bug #442: correct erroneous line separators, that occur when windows-encoded files are commited from unix michi 2005-12-01 08:41:40 +00:00
  • f2f23f82e8 fix bug #442: correct erroneous line separators, that occur when windows-encoded files are commited from unix michi 2005-11-29 11:22:26 +00:00
  • 1ec82737bf * Implement zero argument writeln() method to write a newline sequence. hns 2005-11-25 13:41:05 +00:00
  • ad8b7e11ec * Make ResponseTrans extend java.io.Writer in order to simplify using it with 3rd party templating engines. hns 2005-11-25 13:40:24 +00:00
  • 86e880c713 * Make getResources() public. hns 2005-11-25 13:37:07 +00:00
  • 3e98b1f4bf * Make HopObject.get() behaviour more consistent and predictable: Return null for non-existing properties that were previously set or are defined in the type mapping, and undefined for non-existing properties that are not defined in the type mapping. hns 2005-11-25 12:41:13 +00:00
  • f84ab79675 * Check for null format argument in Date.format() hns 2005-11-22 16:57:12 +00:00
  • b64c845258 * Adapt to strange behaviour of Apache XML-RPC 2.0 to return exceptions instead of throwing them. Fixes bug 446. hns 2005-11-17 16:47:15 +00:00
  • dd8ac80a09 * Make getConnection() and init() synchronized. * Fix JavaDoc comments. hns 2005-11-17 16:23:51 +00:00
  • b51be97d41 * Switch back to event log as default log for app-based logging. hns 2005-11-17 16:20:18 +00:00
  • 527a1bc846 * Simplify static HopObject constructor getter code. * Set node reference to an empty transient node in checkNode() for deleted/invalid HopObjects. hns 2005-11-17 14:22:11 +00:00
  • ed6712719c Application.java: * Check logdir app property in updateProperties() rather than in getLogger(). * Only set helma.logdir system property if it isn't already set to prevent conflicts between applications. * Insert new repositories at the beginning of the list in addRepository(). * Some cleanup. hns 2005-11-16 11:44:22 +00:00
  • 4bb6f72baa * add global variable "global" as a reference to the global object hns 2005-11-16 10:17:09 +00:00
  • d5d5fb49ba Updated build script and apps.properties to include the welcome app zumbrunn 2005-11-16 08:27:56 +00:00
  • 350ffd0d73 * Implement getTargetType() and getRefType() to enable high level type.properties introspection hns 2005-11-10 17:04:53 +00:00
  • da0502ecfe * Implement getPropertyNames() to enable high level type.properties introspection hns 2005-11-10 17:04:12 +00:00
  • d18ae12d12 * Use logError() for exceptions caught from onStart() so that a stack trace is generated. hns 2005-11-09 15:35:30 +00:00
  • 613344a006 * Implement app.getPrototypes() and app.getPrototype(name) to allow app introspection. hns 2005-11-09 15:32:10 +00:00
  • ef0176fec0 Changed cvs tag used when building the helmaLib target back to the default, since the release_1_5 branch was merged back to the trunk. zumbrunn 2005-11-08 10:15:28 +00:00
  • d8a508c55e * Implement getDbProperties() for db.properties introspection. * Implement getDbSource(). hns 2005-11-07 14:42:46 +00:00
  • 61f9b6476e * Implement getDbProperties() for db.properties introspection. hns 2005-11-07 14:42:24 +00:00
  • 9593e25aed Updated readme to reflect current build targets zumbrunn 2005-11-07 11:24:27 +00:00
  • b1680f8ad0 Changed cvs tag used when building the helmaLib target to release_1_5. zumbrunn 2005-11-07 11:23:06 +00:00
  • cd7497c7bc Updated default configuration files to include more current example properties and references to the relevant documentation. zumbrunn 2005-11-07 11:21:47 +00:00
  • 3b4e89441c * Set version info to 1.5.x. hns 2005-11-04 15:54:54 +00:00
  • ddf4b1f8e7 * Fix bug 443: http://helma.org/bugs/show_bug.cgi?id=443 check cookie domains for proxied request using the x-forwarded-for header. hns 2005-11-03 14:03:07 +00:00
  • 96605d1c69 * Adopt suggestions from bug 441: http://helma.org/bugs/show_bug.cgi?id=441 - Catch FileNotFoundException in loadSessions() and suppress error message - Catch NotSerializableException in storeSessions() in order to continue serializing. * Use logError() for error logging. * Minor code improvements. hns 2005-11-03 13:41:30 +00:00
  • b7f0aa4ee2 * Fix NullPointerException in getAction() for 404 requests. * Move XML-RPC response and error encoding to ResponseTrans class. * Implement error response generation for new type XML-RPC requests. * Set req.method to "XMLRPC" for new type XML-RPC requests. hns 2005-10-25 14:36:19 +00:00
  • 8a30ebf693 * Add start and shutdown calls for embedded XML-RPC web server. hns 2005-10-21 21:46:11 +00:00
  • 25fd8cb805 made ImageIOGenerator the default ImageGenerator, JimiGenerator the fallback scenario lehni 2005-10-20 11:05:11 +00:00
  • 67d7e915ee Cleaned up parameter handling differences between imageCtor and GetInfo.call, added MimeTipe to imageCtor, etc. lehni 2005-10-20 09:14:00 +00:00
  • 34eaf86d50 * Make isXmlRpc() synchronized. hns 2005-10-18 15:39:07 +00:00
  • d2b9023500 * Add experimental capability to directly handle XML-RPC HTTP requests. hns 2005-10-18 15:38:48 +00:00
  • 623c639154 * Add isXmlRpc() and setXmlRpc() to tell the request evaluator if it makes sense to try to handle this request as XML-RPC request. hns 2005-10-18 15:36:02 +00:00
  • 9fd550a27e * Add commons-codec.jar to classpath (required for Apache XML-RPC 2.0) hns 2005-10-18 15:34:55 +00:00
  • e758330257 * Upgrading to Apache XML-RPC 2.0, with minor patch to throw an exception when encountering an unknown element name. hns 2005-10-18 15:34:17 +00:00
  • d0762a608c * Adding jakarta commons-codec 1.3 (from xml-rpc 2.0) hns 2005-10-18 15:33:18 +00:00
  • 1ccd0fb75c * Use Property.getStringValue() to resolve property references in query filters, otherwise Node references will be rendered as NodeHandle[...]. hns 2005-10-18 13:37:48 +00:00
  • 2a0524aa6b * Set ignoreCase to false for apps.properties. That way, case in default application mountpoints is preserved. hns 2005-10-07 15:48:02 +00:00
  • 1c872e712c * Do not set Cookie version to 1 as this will cause cookie values will be set in double quotes. hns 2005-10-07 14:04:42 +00:00
  • 1dabbb6e55 Enabled helmaTools module to be included in package target zumbrunn 2005-09-25 17:57:11 +00:00
  • 5e57c31411 Added target to build selective modules and included default modules when building the package target zumbrunn 2005-09-22 19:27:25 +00:00
  • 58540c9493 * Set prototype to Object.prototype for objects created by defineLibraryScope() hns 2005-09-22 18:58:38 +00:00
  • ea2d716210 * Reintroduce HopObject.getById(), which was accidentally thrown out with installConstructor(). hns 2005-09-22 09:14:20 +00:00
  • 0d0b99f4c0 * Fix exception handling: - Always print source file name and line number - Only print stack trace once - Slways print stack trace - Always print stack trace for original exception - Also log full error stack trace for exceptions caught in macros * Implement HopObject.__proto__ and JavaObject.__proto__ containing prototype object * Fix constructor property in HopObject protos to be set to the actual constructor * Implement JavaObject.__javaObject__ to contain the original java object in an unscripted wrapper * Make sure JS functions in script-extended java objects actually override java methods * Use unscripted wrapper rather than HopObject prototype if the prototype for java class is not defined hns 2005-09-21 10:11:10 +00:00
  • f752601c16 code formating, slight speed improvments. lehni 2005-09-20 19:20:01 +00:00
  • 6385a1e0d1 Changed so it does not modify the source image any longer. Speed improve. lehni 2005-09-20 19:17:09 +00:00
  • f6d4aea699 Repliced by ColorQuantizer lehni 2005-09-20 08:42:44 +00:00
  • 1f0fdb922d Replaced Quantize by ColorQuantizer, which was freshly ported from the latest ImageMagick sources and updated with the Alpha Channel support that I added earlier to Qantize. This fixes a nasty bug when quantizing images with few colors (e.g. 32 -> 16 which often resultd in only 4 colors) and increases the general quality of color reduction a lot. lehni 2005-09-20 08:41:53 +00:00
  • b5f128a341 * Implement _prototype property for wrapped java objects. hns 2005-09-16 14:32:34 +00:00
  • fb1f5154e4 * Implement db mapping dependencies introduced by additionalTables switch * Try to get extract column name from sql functions when converting db column to property * Added Javadoc comments hns 2005-09-16 14:31:56 +00:00
  • a9553bb471 * Do not append <br /> tag in res.writeln(), only append a newline character sequence. hns 2005-09-16 13:33:23 +00:00
  • d76b720a8d * Allow passing a java.util.Locale to Date.format() as second argument. hns 2005-09-16 12:00:37 +00:00
  • d0660ac1b5 * Only append <br /> in res.writeln() if contentType is one of "text/html" or "application/xhtml+xml". For any other content type, only an ordinary line break is appended to the line. hns 2005-09-16 09:11:13 +00:00
  • cd3fdb4fab * Fix prototype inheritance for wrapped Java objects. get() and has() are not supposed to check the prototype chain. Instead, just register the prototype using setPrototype(). hns 2005-09-16 00:34:12 +00:00