Commit graph

  • b5bce7b51d The previous version was checked in by mistake. Going back to what we had before. hns 2002-10-30 16:38:46 +00:00
  • efa4512055 Tentative fix for bug 113: numbers as names of named properties do not work in embedded db hns 2002-10-30 16:35:48 +00:00
  • 6b7682b5a3 Encode quotation mark and apostrophe characters in encodeXml(). hns 2002-10-30 14:13:34 +00:00
  • 20402accfa Fixed bug where a node deleted by replication was left in the cache via secondary key without being marked as invalid. (bug 147) hns 2002-10-30 11:56:59 +00:00
  • 6266b3b5b7 Always rotate tables if new table exceeds threshold. hns 2002-10-30 11:46:51 +00:00
  • dba715b2db Fixed parentheses hns 2002-10-29 17:39:21 +00:00
  • 54c3f80b60 Set application checksum in ResponseTrans. hns 2002-10-29 17:34:10 +00:00
  • 35d0389d8e Added support for an application checksum which is automatically included in dependency checksums/fingerprints/ETags generated via res.dependsOn() and res.digest(). hns 2002-10-29 17:33:35 +00:00
  • 78309c02aa Renamed digestDependencies() to just digest(), which is more finger-friendly. hns 2002-10-29 17:32:32 +00:00
  • c31552f60f Added utility method to convert a long number to a byte array. hns 2002-10-29 17:30:49 +00:00
  • d5e6cfe623 Implemented methods to obtain a checksum that signals changes in the object. These checksums are included in Message Digests so that they change when something in the Application changes. hns 2002-10-29 17:30:14 +00:00
  • f4002ac605 The list of files belonging to a prototype is now managed by the prototype itself. The prototype also keeps a checksum over its files which allows it to recognize changes in any of the files quickly and easily. hns 2002-10-29 17:27:19 +00:00
  • 24dece80bb implemented dependsOn() and digestDependencies() methods hns 2002-10-28 21:34:49 +00:00
  • fed6c39ef3 Added support for ETag conditional GETs. hns 2002-10-28 16:50:55 +00:00
  • cf7e65c704 res.data and req.data do not exist anymore. hns 2002-10-28 16:50:28 +00:00
  • 10848be629 Improved error output in scripting engine initialization, create a ResponseTrans that knows about the RequestTrans if possible. hns 2002-10-28 16:49:29 +00:00
  • 5003588bb7 Added support for ETag conditional GETs, streamlined support for Last-Modified and If-Modified-Since hns 2002-10-28 16:48:28 +00:00
  • 1690b6bf58 Fixed a bug that dropped some zeros in the message digest. Added a method that directly takes a byte array as input. hns 2002-10-28 16:46:10 +00:00
  • 01254c1a88 Use buffered input stream in getURL hns 2002-10-27 18:54:26 +00:00
  • 2922208ccc Added support for ETag and If-Modified-Since conditional GET hns 2002-10-27 18:44:20 +00:00
  • 138eb38903 Added ETag and lastModified fields hns 2002-10-27 18:43:30 +00:00
  • 76bbe4053b replaced "prefix" and "suffix" parameters in global formatProperties() function and corresponding skins by "itemprefix" and "itemsuffix" due to incorrect HTML output. p3k 2002-10-26 11:07:50 +00:00
  • 4ab51d544a Completely changed how XML-RPC invocation is performed. XML-RPC requests are now handled by helma.main.ApplicationManager, which dispatches requests to the right application. Also cleaned up XML-RPC access control a big deal, including it in the generic application properties handling. Fixes bug 135 http://helma.org/bugs/show_bug.cgi?id=135 hns 2002-10-25 17:08:45 +00:00
  • 6cb41d18fd Cut whitespace at end of file hns 2002-10-25 17:05:02 +00:00
  • cffd1ec20d implement FilenameFilter so there is no need for creating an anonymous inner class. hns 2002-10-25 15:23:54 +00:00
  • aa1b666fbd Updated antclick version to 1.0pre2 hns 2002-10-25 13:51:16 +00:00
  • 743b7e7bc7 Included section about Antville and Antclick provided by kris (thanks!), updated some bits and pieces about Helma like the system requirements and the documentation URL. hns 2002-10-25 13:45:21 +00:00
  • 443a7ecab7 Added/Updated Files to Mckoi version 0.94g. hns 2002-10-25 13:29:32 +00:00
  • 444f2aa6bc Remove Mckoi 0.93 database files. hns 2002-10-25 13:27:02 +00:00
  • c96fea4874 set cache size to zero (we don't need a cache when running in embedded mode). hns 2002-10-25 13:18:25 +00:00
  • 81a3591d0b A normal user can't start a server on port 80, switch back to 8080. hns 2002-10-25 12:40:12 +00:00
  • e2f460ce40 Updated to Mckoi 0.94g. hns 2002-10-25 12:32:59 +00:00
  • 186459918a Initialize lastmod. hns 2002-10-24 15:37:56 +00:00
  • 8573a0ce89 Updated version string hns 2002-10-24 15:37:29 +00:00
  • 1a785e4031 Implemented res.debug() method that appends debug messages to the response body. hns 2002-10-24 12:37:07 +00:00
  • afbdf485ba initScriptingEngine is now capable of creating different scripting engines based on the scripting.engine.factory property. hns 2002-10-24 12:20:53 +00:00
  • 28b4d43653 Install Jetty ContentEncodingHandler that does gzip and deflate compression on responses. hns 2002-10-23 18:32:54 +00:00
  • 38eb79123d Check if onRequest is defined for the current object before calling it. hns 2002-10-23 15:41:15 +00:00
  • 18926fb8e0 When a node accessed by secondary keys (accessname) is fetched but then found by primary key in the cache, reset its create time to its lastmod time. Otherwise, Relation.checkConstraints will (rightly) reject it if a filter is defined for it, since it can't be sure that the filter constraint is still valid for the modified node. hns 2002-10-23 15:40:20 +00:00
  • 4b945e9d72 Made created and lastmodified protected to allow direct access from NodeManager. hns 2002-10-23 15:38:01 +00:00
  • 8ae95ff5bb Change transaction name for error handler so people get less confusing commit/ abort messages (see bug 107, http://helma.org/bugs/show_bug.cgi?id=107 ). hns 2002-10-23 13:05:44 +00:00
  • 8d85952f24 Always abort transaction when catching an error in HTTP request loop. This is because a new transaction is started for the error handling also, so if something goes wrong in error handling, we need to abort the transaction. hns 2002-10-23 12:46:21 +00:00
  • 2c9e42bcb3 Fixed stupid bug in SkinFile constructor. hns 2002-10-23 12:00:46 +00:00
  • 7463553a95 Pretty much reworked all the Helma type management code. hns 2002-10-22 16:33:03 +00:00
  • ea5edf51c9 don't forget to reset buffer stack in reset() hns 2002-10-22 16:32:00 +00:00
  • 003173f895 Use index of last dot in filename to find out the type of a file hns 2002-10-21 12:17:51 +00:00
  • a5b2945065 Only decode path element if it actually is encoded. hns 2002-10-17 18:46:40 +00:00
  • 318964b518 Use a proxy to java.net.URLEncoder which only encodes when there is actual work to do. This is necessary because URLEncoder is quite inefficient (e.g. it preallocates buffers and stuff), and we call it often with short string that don't need encoding. hns 2002-10-17 18:43:24 +00:00
  • 933a0ef7a3 Implemented our own getPathInfo to use the decoding from java.net.URLDecoder. Removed old slack since we now have some guarantees about req.path. hns 2002-10-17 16:00:58 +00:00
  • 9e0dae779c Do not reset servlet response in sendRedirect() otherwise cookies are lost hns 2002-10-17 09:34:14 +00:00
  • bb3a080164 Renamed variable in writeResponse() hns 2002-10-16 16:21:27 +00:00
  • d0aa1a72b5 Lots of code cleanup and little fixes. redirect() now sends a 303 status code instead of 302 for HTTP/1.1. hns 2002-10-16 15:29:54 +00:00
  • 0db8fd2bbd Fixed bugs 131: "No retry code in ServletClient and MultiServletClient" and 132: "helma.serlvet.ServletClient stops working after *some* time" And also did some cleanup work. hns 2002-10-16 15:28:12 +00:00
  • 558c5a5660 Print/rethrow full exception string when an exception is caught from NodeWrapper, since the exception message without the exception class is often not very telling (e.g. "128" in ArrayIndexOutOfBoundsExceptions). hns 2002-10-16 13:25:36 +00:00
  • e91d06e88e removed final keyword which caused compile to fail on OS X (Java 1.3.1) hns 2002-10-15 22:07:24 +00:00
  • ff82c38ff6 Fixed ApplicationBean.getSkinfiles: Skin files in app.skinfiles are now loaded only when accessed. This is implemented using an inner class Prototype.SkinMap. hns 2002-10-15 17:56:10 +00:00
  • efa13b4a00 Cleaned up SkinManager, added method to collect skins in other directories than the prototype directory. hns 2002-10-15 17:54:04 +00:00
  • 6f982f6951 Changed skinDepth from public to protected. hns 2002-10-15 17:52:36 +00:00
  • 063b42744c Various minor optimizations. hns 2002-10-15 17:52:00 +00:00
  • c796392946 added setBufferLength() method to truncate the response buffer. hns 2002-10-15 17:48:24 +00:00
  • 30dd6b206e Rewrote XML encoding of properties not to stumble over null values (hopefully). Also did some minor code cleanup. Support for stopTypes has been added but is commented out. hns 2002-10-14 17:05:06 +00:00
  • 00ae368a85 Cleaned the way boolean properties are transformed into as string hns 2002-10-14 16:40:18 +00:00
  • 825415f526 * Check for null and empty string in all encoder methods. * Encode macro tags and HTML comments inside <code> tag. * Added simple main() method for command line tests. hns 2002-10-14 16:39:18 +00:00
  • 6a7e0ec908 Fixed bug 128 (Logger NullPointerException), moved some code. hns 2002-10-14 15:39:45 +00:00
  • d1fe0ad7c8 Fixed formatting. hns 2002-10-14 15:24:18 +00:00
  • 43b9e08027 ScriptingEngine.invoke() is now called with the wrapping Beans as arguments, so ScriptingEngine implementations do not have to create the beans themselves anymore. hns 2002-10-14 15:13:02 +00:00
  • 1fbe23bc03 Fixed formatting, removed checkWriteLock() in invalidateNode(). hns 2002-10-14 15:09:45 +00:00
  • cfa6ddc3e0 Mark local info for prototype as initialized by setting info.lastUpdate to 1, even if the prototype's lastUpdate is 0 hns 2002-10-07 11:57:48 +00:00
  • 1d1da15b10 made some decent rearrangements p3k 2002-10-04 15:43:37 +00:00
  • bc8893123b set HTTP_PORT to 80 and enabeld XML_PORT by default p3k 2002-10-04 14:40:21 +00:00
  • fec67f3fe3 updated analogous to main version p3k 2002-10-04 14:39:22 +00:00
  • 68afc702b8 corrected search&destroy typo ("OPTIONSS") p3k 2002-10-04 12:17:26 +00:00
  • 53cb41dffe renamed SWITCHES to OPTIONS set HOP_HOME to SCRIPT_DIR if undefined p3k 2002-10-04 12:11:46 +00:00
  • 43c809ff0a added absolute paths for libraries so that the script can be started from within any other directory; re-arranged code p3k 2002-10-04 11:53:43 +00:00
  • 96f48b1fc8 The script can now be started from any directory. It should now be flexible enough for most real world applications. hns 2002-10-03 21:24:58 +00:00
  • 6cb52547dd inspired by hannes' suggestion i tried to improve the start script: it's now enough to comment/uncomment the port variables to de/activate the corresponding server. both, setting of the switches and console messages, will be processed only if the corresponding port variable is set. this is an experimental set-up, will inform mailiing-list for discussion and feedback. p3k 2002-10-03 16:31:29 +00:00
  • 7472f1ed0c inspired by hannes' suggestion i tried to improve the start script: it's now enough to comment/uncomment the port variables to de/activate the corresponding server. both, setting of the switches and console messages, will be processed only if the corresponding port variable is set. this is an experimental set-up, will inform mailiing-list for discussion and feedback. p3k 2002-10-03 16:09:24 +00:00
  • 956ec3d3a8 cut off trailing whitespace on property values hns 2002-10-03 11:40:58 +00:00
  • 2e46e4c121 Issue a warning to the event log if _table is not specified for a relational mapping hns 2002-10-03 11:25:38 +00:00
  • d3d95a8288 Acme GIF encoder is slower for small files but faster for large ones, so we stick with it hns 2002-10-02 15:05:12 +00:00
  • 5c46921eac xmlrpc.jar comes with its own copy of MinML hns 2002-10-02 14:57:13 +00:00
  • c8a85d5a04 removed unused classes hns 2002-10-02 14:46:17 +00:00
  • 8731eaffc7 Switching to Apache XML-RPC. hns 2002-10-02 14:38:47 +00:00
  • bb99727791 Base64 decoder has moved to helma.util package. hns 2002-10-02 14:36:26 +00:00
  • ba3e20917b Moved here from helma.xmlrpc, which has gone. Needed by helma.framework.RequestTrans. hns 2002-10-02 14:35:24 +00:00
  • e59c848a11 Moved here from helma.xmlrpc package which has been replaced by org.apache.xmlrpc hns 2002-10-02 14:32:56 +00:00
  • 016ed7a0f5 made XML-RPC encoding/decoding methods static and public hns 2002-10-02 14:31:42 +00:00
  • dc399d0953 added Apache XML-RPC 1.1 hns 2002-10-02 14:28:09 +00:00
  • 71ddfdebde checked in as non-binary hns 2002-10-02 14:27:26 +00:00
  • 4bd807fbe5 Added Apache XML-RPC 1.1 hns 2002-10-02 14:23:56 +00:00
  • 6b8d8b426c extended invalidate() method: object.invalidate (key) searches for a child object with the given primary key or accessname and evicts this object from the cache. if the object isn't loaded nothing is done. stefanp 2002-10-02 10:10:29 +00:00
  • 8f519432b8 Use new color quantizer for reduceColors() which requires a bit more code Ë" but should be faster. Add code to use new GIFEncoder class to make some performance comparisons. hns 2002-10-02 09:41:40 +00:00
  • 90efca76fa Use Image.getScaledInstance() in resize method and immediately set new width and height. Some reformatting. hns 2002-10-02 09:32:09 +00:00
  • bd1d880506 Added new color quantizer and GIF encoder classes from http://www.gurge.com/amd/java/quantize/ hns 2002-10-02 09:30:56 +00:00
  • 45974b6664 Make image generator window one pixel big, since some versions of Java would set their own size for a zero sized window hns 2002-10-02 09:28:33 +00:00
  • 09f046f87a Set baseURI in applications from ApplicationManager iff it isn't defined in the app properties. hns 2002-10-01 22:49:10 +00:00
  • e3834af297 if charset is not set in server/app properties, use iso-8859-1 (western).otherwise, an uncaught NullPointerException was thrown by String.getBytes(enc). hns 2002-10-01 20:16:47 +00:00
  • 930d50d427 Updated to Jetty 4.1.1 hns 2002-10-01 19:51:08 +00:00
  • 186f434418 Resolved two incompatibilities with JDK 1.3 hns 2002-10-01 19:24:19 +00:00
  • 7bc5876c96 Only open those server ports that were explicitly set through command line options. Updated version string. hns 2002-10-01 16:19:33 +00:00