Commit graph

  • b3e99d5207 Update version, recommend Java 1.4 hns 2005-03-09 14:45:35 +00:00
  • e6ec26c247 This commit was manufactured by cvs2svn to create branch 'helma_1_4'. hns 2005-03-09 14:01:08 +00:00
  • 0b2b5718aa Switch version to 1.4.2 hns 2005-03-09 14:01:07 +00:00
  • 4220bf13f1 Use JDK 1.2 compatible version of Jetty 4.2.22 (extra/lib/org.mortbay.jetty-jdk1.2.jar) hns 2005-03-09 13:53:40 +00:00
  • 78d647f521 Implement HopObject.persist() to store HopObjects to db without adding them to any collections. hns 2005-03-08 11:46:15 +00:00
  • bee76afeb7 Fix bug where collections are reloaded on change of private properties. hns 2005-03-08 11:33:09 +00:00
  • 46fc141e97 Fix bug in getZipEntryContent() where entries aren't fully read if not immediately available. hns 2005-03-07 17:15:20 +00:00
  • d66c3965d4 Use helma.[appname].sql.log as SQL log file by default, configurable by sqlLog entry in app.properties. hns 2005-03-07 15:10:44 +00:00
  • 156ad8f721 Michael Platzer's SQL Logging patch, with millisecond timeing and a few stylistic changes. hns 2005-03-07 13:42:57 +00:00
  • 183e222f67 Reset some fields that were previously left out in reset(). hns 2005-03-01 12:50:30 +00:00
  • 21d0cffb54 Check for empty tag stack, fixing bug 414 http://helma.org/bugs/show_bug.cgi?id=414 hns 2005-03-01 12:15:51 +00:00
  • 05753dc7e5 Implement per-HTTP method action names, e.g. main_action_post. The methods that were handled by Helma traditionally (GET, POST, HEAD) are still mapped to actions without method name in case no per-method action is defined. hns 2005-03-01 11:43:14 +00:00
  • 4d0d1b33bb * Fix bug where 0 is assumed as id of the root object in getParent() * Fix bug where child node is set to anonymous after calling addNode() hns 2005-02-26 08:57:43 +00:00
  • 700f2b41ea Remove global getById() in favor of Constructor.getById() which now takes an optional second prototype argument. hns 2005-02-15 14:27:54 +00:00
  • 91136fed4c Implement static HopObject.getById() function as described in this thread: http://grazia.helma.org/pipermail/helma-user/2005-February/002777.html hns 2005-02-11 16:58:24 +00:00
  • 0c3997ccc3 Use package name as log name in getInstance(Class) hns 2005-02-10 22:59:38 +00:00
  • 7aa8a8ac87 Added global getById() function which allows to retrieve any persistent HopObject by type name and id. hns 2005-02-10 16:07:17 +00:00
  • c93316078c * Make sure we use the absolute path in getInstallDir() * Fixing indentation in getInstallDir() * Print stack trace on bootstrap error hns 2005-02-03 17:56:58 +00:00
  • 3933fbf91b Don't write out response body for HEAD requests. hns 2005-01-31 17:05:14 +00:00
  • 44dedeb839 Fixed date format in getStringValue() hns 2005-01-31 15:45:00 +00:00
  • 4f7de157b1 Catch AbortException to abort the transaction but not generate an error message, leaving the response untouched. hns 2005-01-31 15:34:21 +00:00
  • 8014a390cb Committing Robert's patch for bug 394. http://helma.org/bugs/show_bug.cgi?id=394 hns 2005-01-28 15:07:00 +00:00
  • 4f074f329a Skip response closing and writing if the response was already written and committed by the application. hns 2005-01-28 13:52:44 +00:00
  • 0143f7a9dc Add support for res.getServletResponse() and res.servletResponse hns 2005-01-28 13:16:56 +00:00
  • 9778df82eb Add getServletRequest() hns 2005-01-27 14:13:48 +00:00
  • 51d814d56f Try to generate a minimal HTML page in sendError() hns 2005-01-27 12:10:39 +00:00
  • 479a70509d More shifting and shoving and cleaning up in RequestEvaluator. hns 2005-01-26 15:43:56 +00:00
  • 1c635f8b5c Add writeErrorReport() method for plain vanilla error pages. hns 2005-01-26 15:19:36 +00:00
  • 755a0f5606 Always convert java.util.Dates to JavaScript Date objects in Wrap Factory. hns 2005-01-26 13:28:36 +00:00
  • 7e45ee5fbf substitute /HopMacro/Macro/ in messages. hns 2005-01-25 17:04:47 +00:00
  • 771c13d82d * Implement macro comments as <% // ..... %> * Display an error message for unhandled global macros hns 2005-01-25 16:43:08 +00:00
  • b3e46bd821 Added getTransactionName() plus a few JavaDoc comments. hns 2005-01-25 16:13:48 +00:00
  • 026dd7faad * Handle all HTTP methods (all the same way, this is temporary behaviour until we find a way to deal with them) * Add req.getMethod() that returns method name as string * Add req.getServletRequest() that returns the HttpServletRequest object for HTTP requests * Set up req, path, session... objects for all types of requests * Restructured helma.framework.core.RequestEvaluator to allow for more cleanup in the future hns 2005-01-25 16:13:04 +00:00
  • 255d6e9812 Adding AbortException used in res.abort(). hns 2005-01-25 16:10:47 +00:00
  • d15113234e Make the class Serializable instead of Externalizable. hns 2005-01-25 15:59:48 +00:00
  • 20851907c2 Implement res.commit() and res.abort() methods. res.commit() commits all changes to DB and starts a new transaction. res.abort() aborts the current transaction and request. hns 2005-01-25 15:59:14 +00:00
  • bb399fc79d Only manage those properties that were set in previous script compilations, and never manage predefined properties because they may be set unintentionally by code like Image.foo = bar. Should fix bug 397. hns 2005-01-25 07:57:55 +00:00
  • 24a973e662 Implement hashCode() and equals() for ActionFile, FunctionFile, SkinFile and Template classes. This is required for ZippedAppFile to when removing Updatables that are no longer contained (revision 1.19 from Dec 7 2004). Fixes bug 395. hns 2005-01-24 14:06:51 +00:00
  • e3d8976274 Always return empty array for propery enumerations on HopObject prototypes. This is to stop prototype properties from showing up in HopObject proprerty enumerations. HopObject.getAllIds() can be used to get a prototypes properties. hns 2005-01-14 13:46:53 +00:00
  • 5cc104466c Introduce PropertyRecorder interface that allows us to keep track of changed properties in prototypes during code compilation. This way we're able to remove prototype properties that haven't been renewed in the last compilation (i.e. have been removed from the code). hns 2005-01-14 13:23:12 +00:00
  • da007f9506 Set parent scope rather than prototype for temporary global prototype. This should solve the problems described in bug 390 where global functions were called on the temporary prototype in some cases. hns 2004-12-20 13:14:39 +00:00
  • 35791bf5fb Fixes for bug 390 <http://www.helma.org/bugs/show_bug.cgi?id=390> * Use the same class for temporary compile time prototypes as for live protos * Switch over parent scope when moving properties to live prototype. This does not fix any problems because the functions causing the problems in AntvilleLib are nested properties, but it seems like the right thing to do. hns 2004-12-20 12:15:35 +00:00
  • 9b9028df72 Refactored code compilation so that code is compiled against a temporary prototype object rather than the actual live prototype. Moved much compilation code into two new methods in TypeInfo called prepareCompilation() and commitCompilation. The first one sets up the temporary prototype object to compile against, the latter copies over new properties to the live prototype and removes properties that are no longer present. Also, some field names have been shortened. hns 2004-12-17 15:32:52 +00:00
  • 90ef29fb1b Use super.getIds() for property enumeration in HopObject prototypes. hns 2004-12-17 15:30:17 +00:00
  • 20ea453c35 * Include application name in source names. * Make sure files from zip files are removed from prototypes and prototypes are updated properly when they are no longer present. hns 2004-12-07 14:39:55 +00:00
  • 0620912aa2 Update to Jetty 4.2.22 hns 2004-12-07 13:12:48 +00:00
  • 70b3069cb9 Always clean up old properties in prototypes regardless if they are functions or not. hns 2004-12-07 12:52:21 +00:00
  • d1b5b820ad Add parent nodes with updated child collections to NodeChangeListener protocol. Make Node.setLastSubnodeChange() public. hns 2004-11-25 14:17:01 +00:00
  • f042bbd36a Register child object with synthetic key in node manager when adding to a collection with accessname set. hns 2004-11-09 22:30:26 +00:00
  • ba42d67be6 Set DbMapping in deserialized Nodes along with prototype name. hns 2004-11-08 21:59:40 +00:00
  • 1b27fedb9f Immediately copy new jar file to lib/helma.jar in jar task. hns 2004-11-05 15:19:36 +00:00
  • e4343eb563 Fix bug where collection in embedded db is erraneously set to anonymous. hns 2004-11-05 15:02:13 +00:00
  • 01edf54603 Catch up on the promise of separating child nodes from properties: do not set node properties for child nodes with groupby or accessname set. This means that lookups for groupby/accessname nodes becomes pretty expensive for the embedded database because we have to loop through child nodes, but the overhead seems acceptable, and the embedded db is not for high performance deployment anyhow. (Eventually we can implement some kind of caching mechanism here if necessary.) hns 2004-11-05 08:04:11 +00:00
  • 418976539e Make SyntheticKey case insensitive without compromising name capitalization. hns 2004-11-05 06:41:41 +00:00
  • 0ce19fb080 Initialize lastPropertyRead to -1 because otherwise if the app.properties file does not exist, properties are never initialized. hns 2004-10-28 19:17:50 +00:00
  • 4e073785ab * Added NodeManager.init() to separate initialization from the constructor. * Added ObjectCache.shutdown() to allow object caches to be closed. * Catch exceptions and errors thrown by NodeChangeListeners. hns 2004-10-25 18:27:42 +00:00
  • 9d53d33ef9 Introduce NodeChangeListener interface that can be used to get notifications about node changes (inserts, updates, deletes) from the NodeManager. Change Transactor to implement NodeChangeListener. hns 2004-10-22 12:57:15 +00:00
  • a95dcd16a4 Some fixes to allow garbage collection of helma classes/class loaders: * Run and null out shutdown hook when stopping. * Make Jetty log sink a static inner class. hns 2004-10-20 15:47:43 +00:00
  • 65115dfa9a Null out static runner field when shutting down. hns 2004-10-20 15:37:39 +00:00
  • 2a7fa165ec Use weak references to store RhinoCore instances in coreMap to allow them to be garbage collected. hns 2004-10-20 14:39:15 +00:00
  • 79f1134805 null out consoleLog field in closeAll() hns 2004-10-20 14:37:21 +00:00
  • 5646c3881a Rewrite Server.stop() to actually try to stop the server. Rewrite HelmaShutdownHook to use Server.stop(). hns 2004-10-19 12:45:30 +00:00
  • 59bec76b45 Introduce helma.objectmodel.ObjectCache interface for switchable cache implementations. hns 2004-09-17 15:53:35 +00:00
  • f2180bfa81 Improved toString() method hns 2004-09-17 15:40:48 +00:00
  • 2664d31a7d Remove debug print message. hns 2004-09-15 13:37:30 +00:00
  • e0592e5319 No more need to set the application's charset in the servlet config. hns 2004-09-15 13:30:58 +00:00
  • c7257e22d0 Return the charset instance variable in getCharset() rather than asking the application properties directly. hns 2004-09-15 13:30:14 +00:00
  • 6f3f82f40a Remove abstract execute() method and add abstract getApplication(). Remove encoding instance variable and get it from application when needed. hns 2004-09-15 13:28:58 +00:00
  • 381e235e19 Removing RMI based servlet clients. hns 2004-09-15 12:22:37 +00:00
  • ac9e98e7cd Remove last traces of Commons Codec URLCodec. hns 2004-09-15 12:19:44 +00:00
  • 8459618f36 Remove commons-codec.jar since we're back to the JDK URL encoding/decoding. hns 2004-09-15 12:15:28 +00:00
  • 1967c7d76b Remove lines that were unintentionally doubled with a previous patch. Remove unused import statement. hns 2004-09-15 12:13:12 +00:00
  • 71aeea336e UrlEncoded fix from Jürg Lehni to use JDK 1.4 methods if available and switch back to JDK 1.3 methods otherwise. Methods renamed to encode() and decode(), respectively. hns 2004-09-15 11:15:44 +00:00
  • fad94431e0 Make id in SyntheticKey case insensitive by always transforming to lower case in constructor. hns 2004-09-14 14:16:17 +00:00
  • 426a0d0c9d Patch to close InputStreams contributed by Jürg Lehni. hns 2004-09-14 13:29:08 +00:00
  • f90f174719 Bufix for a problem in the inital quantize code from Adam Doppelt, where unique pixels where calculated wrongly. lehni 2004-09-11 10:13:02 +00:00
  • c16fc50354 Some code cleanups as suggested by Jürg Lehni. hns 2004-09-10 09:28:04 +00:00
  • 33808d06b3 Add commons-codec.jar to classpath hns 2004-09-06 17:51:07 +00:00
  • 08b2a25561 Removed the OutputStream / mimeType versions of saveAs that broke compiling lehni 2004-09-06 16:25:39 +00:00
  • 392265358a Recognize <!doctype > tags in HTML formatter hns 2004-09-06 14:43:00 +00:00
  • 1138a509ec Bugfix to avoid an invalid Graphics2D object after changes to the internal image (crop, scale, reduceColors, ...). lehni 2004-09-06 14:31:35 +00:00
  • c444ada032 Set the servlet's defaultEncoding to the app's charset as soon as we get the Application reference. hns 2004-09-06 13:50:08 +00:00
  • b8dd92a125 Switch to Jakarta Commons Codec for URL en/decoding to provide encoding-sensitivity on JDK 1.3. Use application charset for URL encoding and decoding. UnsupportedEncodingException is propagated. hns 2004-09-06 13:48:30 +00:00
  • e3eed21f50 Adding Jakarta Commons Codec 1.3 jar hns 2004-09-06 13:24:56 +00:00
  • 2b48e43964 Implement decent string representation for path object. hns 2004-09-03 10:34:45 +00:00
  • 6bd558bcb0 Minor fixes from Juerg Lehni: Add trailing "/" in path info, plus code improvements hns 2004-09-01 15:27:13 +00:00
  • 0dd94cd340 Reverse order of global.init() and global.initStandardObjects() invocations. This is required by Rhino 1.6R1pre and doesn't hurt with Rhino 1.5. hns 2004-08-30 13:24:43 +00:00
  • 4df534a590 Patch from Paul Alexandrow to query for groupby field rather than accessname in getPropertyNames() if we have a grouped relation. hns 2004-08-30 13:18:35 +00:00
  • ed407c3188 Fixed a bug that affected transparent parts of images. lehni 2004-08-30 10:35:18 +00:00
  • e2c62701d8 replaced the weird-bug-fix-line by this one, which should even be faster as no function calls are involved: lehni 2004-08-06 17:17:25 +00:00
  • a730e1b1c0 correct comments. lehni 2004-08-06 13:10:22 +00:00
  • 18d1d5ed60 added a bugfix line for a very weird bug that only occurs from time to time, on some systems: for more information, read the comments before the following line: if (i == 0) Integer.toString(alpha); lehni 2004-08-06 13:09:03 +00:00
  • 23451becef a few bug fixes so that dithering now actually works. lehni 2004-08-06 11:38:17 +00:00
  • 6398e21b3b added drawImage for other ImageWrapper objects lehni 2004-07-30 13:23:33 +00:00
  • c491999cf5 Update version to "1.4.1" helma_1_4_1 hns 2004-07-29 13:00:38 +00:00
  • 112bc0f6c1 Fix some more JavaDoc comments to stop javadoc from complaining. hns 2004-07-29 12:47:55 +00:00
  • f89a057ffb Fix some JavaDoc comments. hns 2004-07-29 12:22:44 +00:00
  • b72efe9dfb Remove unused WebBroadcaster class hns 2004-07-29 11:53:29 +00:00
  • d8a7f6c3d4 Add getter for the underlying file hns 2004-07-29 11:43:48 +00:00
  • f8d3f0e25d Allow onCodeUpdate function to be defined in prototype chain. hns 2004-07-28 19:00:52 +00:00