Commit graph

  • 6da249a73d Rethrow wrapped ConcurrencyExceptions. Also updated code to rethrow wrapped TimeoutExceptions. hns 2003-11-26 11:38:36 +00:00
  • 846ff46e1e Add leading space in " WHERE " when composing select statements. Fixes bug http://www.helma.org/bugs/show_bug.cgi?id=313 hns 2003-11-21 16:13:19 +00:00
  • babe14b16f Reverse sequence of <get-from-nodemgr> and <get-from-propmap> in getProperty(). This may return old cached properties from the propmap when it shouldn't, but it fixes the much worse bug where embedded-db-collections are created from scratch again and again. hns 2003-11-21 10:59:10 +00:00
  • 76abbbdddc minor formatting fix hns 2003-11-21 10:56:27 +00:00
  • 88b2d41536 Remove code that was commented out and isn't coming back hns 2003-11-19 15:10:11 +00:00
  • a8da2b48bd Re-add check if Relation is PRIMITIVE or REFERENCE when creating properties in createNode (was removed yesterday, not sure it's really needed) Remove code that was commented out and isn't coming back hns 2003-11-19 15:09:54 +00:00
  • 615c9c65d1 Set initial TypeInfo.lastUpdate to -1 so a Prototype with no files (lastUpdate == 0) will be evaluated at least once. This fixes a bug with empty prototypes not having their prototype set (i.e. get(), list(), href() etc were unavailable). hns 2003-11-19 14:43:22 +00:00
  • 37436236df Add an intermediate step when fetching properties from result sets in createNode() so that we can be sure to use the proper DbMapping for column-to-property mappings (which may change according to the object's prototype column) This should fix bug 310. http://helma.org/bugs/show_bug.cgi?id=310 hns 2003-11-18 17:39:22 +00:00
  • c37d1670d5 Implement protected setName() method to set the property's name hns 2003-11-18 17:36:46 +00:00
  • 6453f53bd9 Always return our own DbColumns[]. This is needed in order to add/change mappings in extended prototypes. hns 2003-11-18 17:36:13 +00:00
  • b97ba99e22 Reworked Mail object contstuctor code: * Do not set smtp host unless it is explicitely set in the properties * Set message encoding as defined in mail.charset property, defaults to ISO8859-15 * Cache Mail session in Mail object prototype * Store app properties as Java fields in prototype rather than as JS property in constructor hns 2003-11-18 15:23:09 +00:00
  • 0ea547488b Use Session.getInstance() rather than Session.getDefaultInstance(). This creates a new Session for each Mail() object, creating an additional overhead of ~10millis, but it picks up changes in the properties files, fixing bug 308. http://www.helma.org/bugs/show_bug.cgi?id=308 hns 2003-11-18 12:29:41 +00:00
  • 7040da5438 Update to JavaMail 1.3.1 FCS hns 2003-11-18 10:32:14 +00:00
  • 10540b83e3 Remove unused imports hns 2003-11-14 13:40:01 +00:00
  • e486bbb9b0 Added experimental res.forward() to forward a request to a local (static) resource. The base resource must be mounted as <app>.protectedStatic in the apps.properties file. Currently no Content-Type is set on the response. hns 2003-11-14 13:14:07 +00:00
  • ea32bc9da4 Added experimental res.forward() to forward a request to a local (static) resource. The base resource must be mounted as <app>.protectedStatic in the apps.properties file. hns 2003-11-14 13:13:20 +00:00
  • 0c6d25e038 Added two options for apps.properties for directory indices and index pages: <app>.staticIndex = true <app>.staticHome = index.html, default.htm Default values are (false) for directory listings and "index.html, index.htm" for index pages. hns 2003-11-14 13:11:25 +00:00
  • 6f213b481c Implement query hints as suggested by bug 306 http://helma.org/bugs/show_bug.cgi?id=306 hns 2003-11-12 12:47:19 +00:00
  • ae56944420 Clean up Java-Object JS-constructor mess: get the right constructor and invoke it instead of trying them all. hns 2003-11-10 16:30:24 +00:00
  • 49b08cc5a7 Update version date hns 2003-11-06 15:31:08 +00:00
  • c57356a5cb Adapt function line number output to changes in HtmlEncoder which adds line separators after the <br /> rather than before. hns 2003-11-06 15:09:36 +00:00
  • 0655b03c60 Simplify property access to only use node or nodeless methods, not both Fix bug in getById() reported by Juerg Lehni Throw EvaluatorException instead of JavaScript exception Remove catched exception not anymore thrown by new rhino snapshot hns 2003-11-06 14:36:18 +00:00
  • 286d522f0d Adapt to new TokenStream constructor signature from rhino CVS snaphost. Remove unused imports. hns 2003-11-06 14:33:21 +00:00
  • e6cd999687 Remove unused import statements hns 2003-11-06 14:32:42 +00:00
  • 2d23806586 Update to rhino CVS snapshot from 2003/11/04 hns 2003-11-06 14:31:40 +00:00
  • 2c44477ede Update to Jetty 4.2.14 hns 2003-11-06 14:30:38 +00:00
  • 646ef8f495 Do not wrap primitive property values as objects when retrieving them - as objects they are unusable for many purpuses, e.g. testing for equality via ==. hns 2003-11-06 12:00:28 +00:00
  • 16621735c6 Cleanup import statements. hns 2003-11-05 11:56:19 +00:00
  • 87aca52907 Make return values more "JavaScript compatible" (long->double, String[]-> Object) to make them work with recent rhino snapshots. hns 2003-11-05 11:55:45 +00:00
  • 1e75ca9b90 Cleanup import statements hns 2003-11-05 11:52:22 +00:00
  • 3a61763cbc * Cleanup imports * Disable ContentEncoding for compatibility with Jetty 4.2 hns 2003-11-05 11:51:47 +00:00
  • 7b97a1314d By default use system class path in helma class loader, but allow for -Dhelma.exludeSystemClasses=true switch to exclude it. hns 2003-11-05 11:50:48 +00:00
  • b8914ce0fd Added separate constructor that allows for a parent class loader argument. Use the standard parent class loader in the old (single argument) constructor. hns 2003-11-05 11:48:57 +00:00
  • 2b3b10e1e1 Remove leading underscore from JOIN_PREFIX since Oracle doesn't like it. hns 2003-10-29 15:38:16 +00:00
  • 45d32cc2da Added a comment that tries to make clear the difference between isVirtual() and isCollection() hns 2003-10-24 15:35:31 +00:00
  • 9e8f04aa4a Fix bug where collection properties on transient nodes are created over and over again. Use Relation.isVirtual() rather than Relation.isCollection() to find out if a relation is a collection property. hns 2003-10-24 15:34:56 +00:00
  • e8fcab410a Updated version string to 1.3.2-pre1 hns 2003-10-24 12:20:58 +00:00
  • 39d8683b84 Use Relation's additionalTables option when building queries. This activates the additionalTables feature contributed by Juerg Lehni. hns 2003-10-23 14:35:02 +00:00
  • e45ef47dee Commit parsed filter feature contributed by Juerg Lehni. hns 2003-10-23 14:33:59 +00:00
  • f08e350367 Renamed invoke methods to make their use clearer. Some minor code cleanup. hns 2003-10-23 12:53:43 +00:00
  • c0830be336 DbMapping: Changed most fields visibility to private DbMapping: Change getPropertyRelation visibility to private, always use getSubnodeRelation from outside instead. Node: Rewrote getProperty(String) to be simpler and easier to understand. furthermore, getProperty(String) now also returns child objects (subnodes) making it unnecessary for calling code to also use getChildElement() or getSubnode() Node: Fixed NullPointerException in getElementName() for transient nodes Node: Use DbMapping.getSubnodeRelation() instead of DbMapping.getPropertyRelation() NodeManager: Fixes in getNode() methods, which now invoke each other depending on key/query type Relation: Removed unused arguments from constructor Relation: Fixed NullPointerException in createOnDemand() HopObject: Do not use getChildElement() in jsFunction_get() (see change in Node.getProperty()) HopObject: Handle case where jsFunction_get() and jsFunction_set() are called with non-strings that should be handled as string, e.g. org.mozilla.javascript.NativeString hns 2003-10-23 12:00:35 +00:00
  • ccf197aeac throw EvaluatorException instead of RuntimeException to prevent Rhino exception wrapping hns 2003-10-23 11:44:58 +00:00
  • 72e12535f6 Cosmetic cleanup: imports, unused code. hns 2003-10-23 11:44:36 +00:00
  • 0f5abe0028 throw EvaluatorException instead of RuntimeException to prevent Rhino exception wrapping, change to new DatabaseObject constructor signature. hns 2003-10-23 11:44:13 +00:00
  • 010fef5ee4 Minor cosmetic fixes, changed constructor signature hns 2003-10-23 11:43:28 +00:00
  • 2efb42922d Fix import statements and javadoc comments hns 2003-10-23 11:04:37 +00:00
  • dac8f7d54c Fix import statements hns 2003-10-22 16:53:40 +00:00
  • 33175a07c8 Remove unused import statements. Changed TypeInfo variable name from "info" to "type" hns 2003-10-22 16:37:03 +00:00
  • 0ca20d5842 Remove unused import statements and updated some javadoc comments hns 2003-10-22 16:36:24 +00:00
  • 84416e8a43 Remove unused import statements and other unnecessary code hns 2003-10-22 16:34:06 +00:00
  • 60cbbba73b Remove unused import statements hns 2003-10-22 16:31:07 +00:00
  • 822307984b Performance improvement in HopObject.get() by trying child object first and property afterwards. hns 2003-10-15 16:55:29 +00:00
  • 3271f940cd * Make JavaScript HopObject.get() return generic Node properties in addition to child objects. * Added checkNode method() to refresh node in case it has been invalidated. hns 2003-10-15 16:10:26 +00:00
  • c1ddf495ca Implement HopObject.set() function compatible to Helma 1.2 hns 2003-10-15 13:55:10 +00:00
  • c9efe6d8ea Implement support for hrefFunction and hrefSkin postprocessing options, fixing bug 292 http://helma.org/bugs/show_bug.cgi?id=292 hns 2003-10-15 13:22:04 +00:00
  • 8b8afac449 * Increase default uploadLimit for file upload to 4 MB hns 2003-10-14 09:48:54 +00:00
  • 710dd12e17 * Moved getSubHeader() method from FileUpload to MimePart and made it public static * Check charset in MimePart.getText() * Increase default uploadLimit in FileUpload to 4 MB hns 2003-10-14 09:48:30 +00:00
  • c55a192d5d wrapper function Xml.getFromString(str) called Xml.get() instead of Xml.getFromString(str, null) michi 2003-10-13 17:43:16 +00:00
  • fa4ce3ed6f Recognize application/text in getText() hns 2003-10-10 19:03:07 +00:00
  • a4e558cb85 Implement support for Xml.get() and Xml.getFromString(). Added JavaDoc comments. hns 2003-10-10 18:55:30 +00:00
  • 36e0b31790 * Implement mechanism to register parent nodes with changed child nodes with the transactor. When finishing the transaction, the transactor will call setLastSubnodeChange() on the parent nodes. This is necessary because the lastSubnodeChange flag should only be set after child node changes have been committed to the database. (Fixes bug 285 http://helma.org/bugs/show_bug.cgi?id=285 ) * Changed the way select statements are built: Use tablename.* rather than * to prevent columns from additionalTables are fetched unnecessarily. * Code cleanup everywhere, mostly in Transactor.java, Relation.java and NodeManager.java hns 2003-10-10 18:09:52 +00:00
  • 6f8c9b9837 * Implement mechanism to register parent nodes with changed child nodes with the transactor. When finishing the transaction, the transactor will call setLastSubnodeChange() on the parent nodes. This is necessary because the lastSubnodeChange flag should only be set after child node changes have been committed to the database. (Fixes bug 285 http://helma.org/bugs/show_bug.cgi?id=285 ) * Changed the way select statements are built: Use tablename.* rather than * to prevent columns from additionalTables are fetched unnecessarily. * Code cleanup everywhere, mostly in Transactor.java, Relation.java and NodeManager.java hns 2003-10-10 18:09:51 +00:00
  • 507949310c * Implement mechanism to register parent nodes with changed child nodes with the transactor. When finishing the transaction, the transactor will call setLastSubnodeChange() on the parent nodes. This is necessary because the lastSubnodeChange flag should only be set after child node changes have been committed to the database. (Fixes bug 285 http://helma.org/bugs/show_bug.cgi?id=285 ) * Changed the way select statements are built: Use tablename.* rather than * to prevent columns from additionalTables are fetched unnecessarily. * Code cleanup everywhere, mostly in Transactor.java, Relation.java and NodeManager.java hns 2003-10-10 18:09:50 +00:00
  • 8774a52e44 Consider comma separated lists of IP addresses in addIPAddress() hns 2003-10-09 18:32:26 +00:00
  • aa1e10691f Wrap HopObject array items before building JS Array in HopObject.list(). hns 2003-10-09 18:17:33 +00:00
  • 1b5cbfd822 Fix cache setter from setcache() to setCache() hns 2003-10-09 15:24:21 +00:00
  • 3a12fe94ef compile _as_string variants for legacy templates (.hsp) hns 2003-09-30 10:45:00 +00:00
  • 186f7d37d7 Implemented experimental formatParagraphs() method that uses p tags to format paragraphs hns 2003-09-19 16:12:48 +00:00
  • 253ca75822 Reworked formatting code Implemented paragraph formatting Fixed bug with newlines in pre tag hns 2003-09-19 16:12:01 +00:00
  • 2015aeef89 Fix bug in previous commit: Make children persistable before setting collection/mountpoint to virtual, otherwise children will be lost. hns 2003-09-17 13:52:33 +00:00
  • d1a7cd1463 Rewrote makePersistentCapable() as makePersistable() to properly handle collections/mountpoints that do not need to be persisted themselves but need their child nodes to be processed. This fixed bug 274 "Accessing collections of transient nodes turns them permanently transient" http://helma.org/bugs/show_bug.cgi?id=274 hns 2003-09-17 13:08:24 +00:00
  • 3a03afc09d Fix bug in needsPersistence() that didn't persist object references. hns 2003-09-17 13:04:30 +00:00
  • a2dfb6a9b9 Only check for executable bin/java if JAVA_HOME is set, and if it isn't found, don't exit but just issue a warning and let the script go on. hns 2003-09-16 15:30:53 +00:00
  • e6959610db Fix for http://helma.org/bugs/show_bug.cgi?id=273 Be more precise about encoding newlines: Do not add any new linebreaks, plus use the system specific line separator. hns 2003-09-16 13:11:59 +00:00
  • 4466c58864 Constraints-linkmode patch from Daniel Ruthardt <http://grazia.helma.at/pipermail/helma-dev/2003-August/000272.html> Changes to patch: * Changed type.properties option name from "linkmode" to "logic" * Added support for XOR * Some internal code reorganization hns 2003-09-15 16:26:42 +00:00
  • a73d52d184 Remove support for [named] but still consider it when parsing. hns 2003-09-15 16:20:56 +00:00
  • 71fae17bf4 Do not try to resort to child object when getting a property (experimental) hns 2003-09-15 14:42:23 +00:00
  • 512cea20ac Call hasFunction() on the prototype rather than on HopObjects themselves to avoid fetching references or child objects from database. hns 2003-09-15 14:41:08 +00:00
  • fad97efc60 * Always throw exception when there's an error in global code * Reimplement hasFunction() on prototypes for HopObjects. * rename putPrototype() to registerPrototype() hns 2003-09-15 14:40:07 +00:00
  • 7bdbcf1de8 updated to antville 1.1 database schema grob 2003-09-12 16:15:02 +00:00
  • 976db3a463 Added HopObject.getById() as proposed by Juerg Lehni http://helma.org/bugs/show_bug.cgi?id=269 Added JavaDoc comments hns 2003-09-10 10:59:24 +00:00
  • 2b9cee82da Print out exception's toString() rather then just its class. hns 2003-09-09 11:23:15 +00:00
  • 5577263f66 * When there is a syntax error in any file associated with a prototype, always throw an error and display a proper error message when on object of that type is accessed. * RhinoEngine.hasFunction() now checks on the actual object (wrapper) and thus is always right. * Unwrap WrappedException when caught in RhinoEngine.invoke() * Use helma.util.CacheMap instead of java.util.WeakHashMap for wrapper caching, possibly fixing a GC problem hns 2003-09-05 19:53:07 +00:00
  • 6eb8cf9442 Try to use proper character encoding in multipart/form-data (file upload) requests. hns 2003-09-05 19:32:34 +00:00
  • fb3196cfd5 Unwrap JS-native number and boolean objects in put() and return them as they are in get(). hns 2003-09-05 15:44:24 +00:00
  • 6d7a8eba66 Make sure the array returned by HopObject.list() has its prototype set properly. hns 2003-09-04 20:03:41 +00:00
  • 76a07955d3 Allow unprototyped JavaScript objects as macro handlers. hns 2003-09-03 10:05:21 +00:00
  • e3dfc52191 Return a native JavaScript array in HopObject.list() rather than a wrapped Java array. hns 2003-09-02 16:55:24 +00:00
  • 75c7dff23b Fix bug in HopObject.remove() where we prematurely call unset(). The right thing *seems* to be to actually always call removeNode on the node's parent. hns 2003-09-02 16:08:05 +00:00
  • 262ba9d5e3 Remove debug message when removing function hns 2003-08-29 15:49:58 +00:00
  • 3e6b0bee32 This commit was manufactured by cvs2svn to create tag 'helma_1_2_6'. hns 2003-08-28 12:18:45 +00:00
  • c907cd5479 Increased version to 1.2.6 hns 2003-08-28 12:18:44 +00:00
  • 1857ff79c5 Increased version to 1.3.1 helma_1_3_1 hns 2003-08-28 12:17:53 +00:00
  • 8e4c36d83e Token definitions moved from org.mozilla.javascript.TokenStream to org.mozilla.javascript.Token in the new Rhino CVS snapshot. hns 2003-08-27 15:55:36 +00:00
  • 31987ea058 Removing rhino.jar from lib/ext (it's in lib now). hns 2003-08-27 15:54:03 +00:00
  • f9afc55c26 Adding rhino.jar to list of system classes, removing jdom.jar. hns 2003-08-27 15:53:15 +00:00
  • e787d2f209 Removing jdom.jar. hns 2003-08-27 15:52:05 +00:00
  • 18684f94ec Adding Rhino CVS snapshot from 2003/08/27. hns 2003-08-27 15:50:03 +00:00
  • 2e315e21d9 Make HTTP response status default to 200. hns 2003-08-25 14:40:33 +00:00
  • 7436ee2237 * Changed Helma version to 1.3.1 * Made CVS tag of apps configurable with cvs.apps.tag option hns 2003-08-20 12:08:10 +00:00