Commit graph

  • 1182f46d8c Make sure database connections are tested at most every 60 seconds by retaining connection test status across requests. Fixes bug 622 http://dev.helma.org/bugs/show_bug.cgi?id=662 hns 2009-04-30 13:04:43 +00:00
  • 9c123b41e9 Also check for multi-constraint relations when adding child nodes and defer setting of constraints until nodes are persisted. Fixes a bug reported by Simon Oberhammer on the mailing list: http://groups.google.com/group/helma/browse_frm/thread/8026700caf582560 hns 2009-04-28 15:14:32 +00:00
  • 3c44bb305d Implement setting complex properties on complex relations by deferring the setting of constraints. Fixes a bug reported by Simon Oberhammer on the mailing list: http://groups.google.com/group/helma/browse_frm/thread/8026700caf582560 hns 2009-04-28 13:30:29 +00:00
  • b0478b020b Try to fix NullPointerException in NodeProxy.getNode(). hns 2009-04-20 11:07:55 +00:00
  • 4875a85fce Remove weird feature to allow overriding subskins via mainskin, making skin lookup code much simpler. Fix bug to find base skin in skinpath from extended skin in prototype repository. hns 2009-04-17 20:41:00 +00:00
  • 1af914b6b1 Merge lazy_collections branch. hns 2009-04-17 14:49:26 +00:00
  • 8b65614827 Implement skin inheritance via <% .extends skinname %>. Lookup code is now incredibly convoluted for what it does and needs some streamlining. hns 2009-04-06 05:54:26 +00:00
  • ea2d20c55f - Replace custom Server.InetEndpoint class with java.net.InetSocketAddress - Remove code in Server.checkPort() that calls InetAddress.getLocalHost() in case no interface is defined. hns 2009-04-05 12:38:01 +00:00
  • 3f6010377e Simplify even more. hns 2009-04-01 16:06:13 +00:00
  • b3112585bb Simplify code a little bit. hns 2009-04-01 16:03:30 +00:00
  • d6a51d3fc9 Implement limit/offset support for oracle and use the occasion to refactor and simplify Relation.buildQuery() a bit. hns 2009-04-01 15:49:59 +00:00
  • 196bf97053 Add experimental definePrototype() function. hns 2009-03-31 20:20:13 +00:00
  • 3d882de822 Make getIntegerProperty() more robust by catching and logging NumberFormatExceptions. hns 2009-03-31 12:53:33 +00:00
  • 5fe2b74d30 Do not convert all values to strings. hns 2009-03-31 12:52:24 +00:00
  • a32b4f2c86 Add static getCollection() method on HopObject constructors to generate collections programmatically and on the fly. Implement limit and offset collection properties for databases that support it (Postgresql + Mysql) hns 2009-03-31 11:54:21 +00:00
  • 0a62df7875 Update rhino.jar to js.jar from Rhino 1.7R2 final release. hns 2009-03-30 13:07:47 +00:00
  • d26410abc7 Don't define Object.prototype.dontEnum as READONLY, reflecting the status of other predefined functions and properties - see bugs #643 and #602. http://dev.helma.org/bugs/show_bug.cgi?id=643 http://dev.helma.org/bugs/show_bug.cgi?id=602 hns 2009-03-30 12:26:14 +00:00
  • ed8637f449 Update to js.jar from rhino1_7R2-RC4.zip hns 2009-03-17 14:48:38 +00:00
  • 95cb0c224f Close input streams after passing them to java.util.Properties.load(). hns 2009-03-17 14:41:10 +00:00
  • 6d6f9ff341 Throw exception instead of returning null if file can't be read. hns 2009-03-17 14:26:11 +00:00
  • fab316995a Fix bug where storage type name is null when a extended prototype inherits the _db but has its own _table. Allow extended prototypes to only override the _db, but not the _table. hns 2009-02-18 15:48:43 +00:00
  • 7044354843 Remove duplicate maxSize assignment. hns 2009-02-18 15:43:48 +00:00
  • f83909c67d Fix bug 657: Report warnings as error when strictVars app property is set to true. hns 2009-02-18 09:24:33 +00:00
  • 829d4ead3c Improve repository lookup code and error message. hns 2009-02-17 16:04:53 +00:00
  • 99cfdfd6f6 Allow applications to explicitly set the HTTP status code with res.redirect(). hns 2009-02-02 15:35:00 +00:00
  • 6041e0cf05 Tagging the Helma 1.6.3 release. helma_1_6_3 hns 2009-01-15 13:24:33 +00:00
  • ca1aa7f02c Add rootObjectFunctionName property that allows to define a function to get the app's root object. hns 2008-12-18 13:57:31 +00:00
  • 4b2f195568 Minor cosmetic fix. hns 2008-12-18 11:55:39 +00:00
  • eba343b868 Implement rootObjectPropertyName setting to allow "pure" javascript applications where root object is fetched from a global variable in the scripting engine. hns 2008-12-18 11:32:58 +00:00
  • 94d85929b4 patch by tobi, catching invalid date format errors and letting the now_macro write error output into the skin instead zumbrunn 2008-12-16 13:23:33 +00:00
  • 6d3f6c3165 Remove helma.doc package and DocApplication functionality. hns 2008-12-15 22:52:18 +00:00
  • 2ea2823a35 Make sure repositories added via app.addRepository are added before the current repository, but don't make the current repository their parent repository. This mostly undoes revision 9305, and fixes bug 654 http://helma.org/bugs/show_bug.cgi?id=654 hns 2008-12-15 22:46:29 +00:00
  • b20ef3074a Remove dist directory in ant clean. hns 2008-12-15 15:54:41 +00:00
  • c31f60ffa7 Toggle version to 1.7.0 and clean up build file: Remove obsolete CVS stuff, combine sub-targets with just one caller, and remove unused targets. hns 2008-12-15 15:11:20 +00:00
  • 3673da711c Remove all generated files in clean task. hns 2008-12-15 12:42:23 +00:00
  • a72c19adc5 Be smarter about opening listeners in JettyServer hns 2008-12-13 02:53:10 +00:00
  • c820cab550 Create jetty server in init() so we can open privileged ports when running with jsvc. hns 2008-12-13 02:36:39 +00:00
  • 256335adde Make launcher Main class compatible with jsvc (apache commons daemon) and adapt Server lifecycle API. hns 2008-12-13 01:39:10 +00:00
  • 0cb7e2a1aa Add ApplicationManager constructor without RMI port argument. hns 2008-12-11 15:08:54 +00:00
  • 6b12ae32ea Make RequestEvaluator survive broken/missing rhino.jar. hns 2008-12-03 14:06:19 +00:00
  • 9b8ef5d64c Implement toString() in class InetEndpoint. hns 2008-11-27 10:10:52 +00:00
  • 15ae889600 Fix cookie parsing to handle HttpOnly and other cookie extensions correctly. hns 2008-11-17 11:37:57 +00:00
  • fa3c971a6e Merge revision 9366 from trunk: Use LinkedHashSet in ResourceProperties to preserve insertion order in properties updates. hns 2008-11-12 22:55:26 +00:00
  • 053237600e Use LinkedHashSet in ResourceProperties to preserve insertion order in properties updates. hns 2008-11-11 14:09:34 +00:00
  • 930c1cf6fc Merge revision 9360 from trunk: Apply totalUploadLimit value to ordinary form post requests. hns 2008-11-06 17:44:01 +00:00
  • 5c71734acb Apply totalUploadLimit value to ordinary form post requests. hns 2008-11-06 17:37:25 +00:00
  • 6141392ab9 Fix bug 647: Allow HopObjects to use ScriptableObject slot properties, for example to implement getters and setters. Patch from Juerg Lehni. <http://helma.org/bugs/show_bug.cgi?id=647> hns 2008-11-05 15:36:27 +00:00
  • 941395437b Fix bug 649: Don't mark node as modified on transient property change. <http://helma.org/bugs/show_bug.cgi?id=649> hns 2008-11-05 14:28:03 +00:00
  • b64f5aeb22 Merge 9356 from trunk: Factor out jetty server into JettyServer wrapper class and duplicate InetAddrPort as InetEndpoint to avoid direct dependency of helma.main.Server on Jetty 4, which may be problematic when running Helma apps through helma.servlet.StandaloneServletClient within a servlet container. hns 2008-11-05 12:55:41 +00:00
  • 57b5275705 Factor out jetty server into JettyServer wrapper class and duplicate InetAddrPort as InetEndpoint to avoid direct dependency of helma.main.Server on Jetty 4, which may be problematic when running Helma apps through helma.servlet.StandaloneServletClient within a servlet container. hns 2008-11-05 12:49:06 +00:00
  • b9a776c979 Add addHeader(), setHeader(), getHeader() and removeHeader() methods to Mail object. Remove unused java class constants. Fix for bug 540 <http://helma.org/bugs/show_bug.cgi?id=540> hns 2008-10-30 16:01:06 +00:00
  • b62df4317f changed build.xml to include itself in generated src packages zumbrunn 2008-10-29 12:13:51 +00:00
  • 72341e832e changed build.xml to include itself in generated src packages zumbrunn 2008-10-29 12:13:37 +00:00
  • a255b29aef Update externals to helma_1_6_3 tags. hns 2008-10-27 15:36:55 +00:00
  • b41c6af75c Update externals to helma_1_6_3 tags. hns 2008-10-27 15:33:26 +00:00
  • 75f4961190 build.xml got lost in 1.6 trunk, re-adding. hns 2008-10-27 15:13:11 +00:00
  • 0ed4f8483e merging 9336 from trunk: added the CDDL to the licenses directory, since we include JSAdapter, which is under the CDDL zumbrunn 2008-10-27 14:45:38 +00:00
  • 8838238c95 More merges from trunk: r9334: Make location of db.properties customizable using the dbPropFile server property. r9337: Patch from Tobi Schäfer to pass Jetty XML configuration file to Helma server. hns 2008-10-21 13:57:50 +00:00
  • d0ede5de85 Add support for enabling TLS in helma.Mail as suggested by user Johnti on the Helma group: http://groups.google.com/group/helma/browse_frm/thread/d32296c5df8996cb/af407e588fb60054 hns 2008-10-20 15:09:12 +00:00
  • a4811de1e0 Partial backport from Helma NG file module: Add optional arguments to open: append to append to existing file instead of opening it for reading, and charset to define the encoding for reading/writing the file. Also fixes a bug where close() does not properly reset all internal variables. Fixes bug 636 <http://helma.org/bugs/show_bug.cgi?id=636> hns 2008-10-20 14:51:32 +00:00
  • 9f2238c019 Patch from Tobi Schäfer to pass Jetty XML configuration file to Helma server. hns 2008-10-20 14:44:41 +00:00
  • 2fc811ccc0 added the CDDL to the licenses directory, since we include JSAdapter, which is under the CDDL zumbrunn 2008-10-20 14:23:36 +00:00
  • a8677d1afc Reactivate Server.checkPort() but try to use a server socket instead of connecting with a client socket as suggested by Daniel Ruthardt in bug 637 <http://helma.org/bugs/show_bug.cgi?id=637> hns 2008-10-20 13:51:31 +00:00
  • fb12fd3e4d Make location of db.properties customizable using the dbPropFile server property. Contributed by Bernhard Fröhlich. Fixes bug 640 <http://helma.org/bugs/show_bug.cgi?id=640> hns 2008-10-20 13:35:43 +00:00
  • d1f972591f Merge helma 1 trunk from revision 8828 to 9332 minus the commit 9325 for case sensitive HopObject properties which is going to Helma 1.7 exclusively. hns 2008-10-20 12:48:53 +00:00
  • ac28cd7542 Resolve relative paths relative to Helma home directory. Fixes bug 639 <http://helma.org/bugs/show_bug.cgi?id=639> hns 2008-10-20 12:19:31 +00:00
  • 8a5c065901 Change version number to 1.6.3 hns 2008-10-20 10:38:37 +00:00
  • c28482264e Change version number to 1.6.3 hns 2008-10-20 10:37:52 +00:00
  • 9a0a61e698 Fix bug with closed database connections in very long running requests by making sure connections are re-checked every 10 seconds. hns 2008-10-17 16:20:15 +00:00
  • f099d9ae69 Minor code cleanup. hns 2008-10-17 16:07:31 +00:00
  • 1504777bcc Import helma.objectmodel.db.Node instead of using the fully qualified classname all the time. hns 2008-10-17 16:06:43 +00:00
  • 99c9b3a867 Return a transient HopObject instead of a ListViewWrapper in HopObject.getOrderedView(). Do import helma.objectmodel.db.Node in HopObject. hns 2008-10-17 16:04:28 +00:00
  • 0e7c4354c9 Make HopObject properties case sensitive. hns 2008-10-17 14:18:24 +00:00
  • bff550c6d9 Activate instruction count based thread termination. Replace deprecated context enter()/exit() calls. hns 2008-10-17 14:05:23 +00:00
  • 33fac6be68 Fix bug in request handling when incoming requests are attached to an existing response and the response is generated by directly accessing the res.servletResponse HttpServletResponse instance. hns 2008-10-17 12:02:24 +00:00
  • a635964fc8 Go back to Java 1.4 compatibility. The few generics uses aren't worth it to require Java 1.5. hns 2008-10-17 09:14:36 +00:00
  • e827d0beb4 Make sub-properties updateable, plus minor code cleanup. hns 2008-10-17 09:10:34 +00:00
  • 2c2f95253f Set log level to "starting" message to DEBUG. Set log level for "inserted node" message and consorts to DEBUG. Fix and improve error log messages. Make Log accessors in Application public. hns 2008-10-17 08:53:30 +00:00
  • f1dd9c6f37 Add log message when a request starts evaluating, and make commit log message look nicer and easier to parse. hns 2008-10-16 15:06:44 +00:00
  • ee391ae6db Improve thread naming and include thread ids in helma log message. hns 2008-10-16 14:30:47 +00:00
  • 3af404d39e Unify macro error handling, and don't dump stack traces for macro errors. hns 2008-10-16 13:50:29 +00:00
  • ffff56465f Fix for bug 625: only don't encode within macro tag, but do encode in HTML tags. hns 2008-10-16 13:20:56 +00:00
  • d3cb3afce8 Fix for bug 625: don't encode & as entity if encountered within a tag. hns 2008-10-16 13:17:22 +00:00
  • 4cdc177964 Add support for secure and HttpOnly session cookies, with HttpOnly being enabled by default. The features are controlled through the httpOnlySessionCookie and secureSessionCookie app properties. We now compose and set the session cookie ourselves as this is the only reliable way to do it in a cross-servlet-container compatible way and without adding dependencies to the servlet container. hns 2008-10-16 12:15:42 +00:00
  • 5217132767 Some code cleanup and make sure StandaloneServletClient actually works by avoiding NullPointerExceptions and calling Server.init(). hns 2008-10-15 14:49:08 +00:00
  • fc8ce41184 Do not use the currently evaluated code repository as parent/root repository for repositories added via app.addRepository(). I don't know why I did this in the first place, but it messes up code evaluation order because multiple repositories end up with the same root repository. hns 2008-10-15 10:29:18 +00:00
  • 3e1df369bf Move build.xml to top-level directory. hns 2008-10-15 09:36:24 +00:00
  • b556bc4bd4 Move build.xml to top-level directory. hns 2008-10-15 09:30:57 +00:00
  • c531985afe Increase app.xmlrpcCount for "new style" XML-RPC requests served by Jetty. Fixes bug 629 http://helma.org/bugs/show_bug.cgi?id=629 hns 2008-09-20 20:45:46 +00:00
  • fd80b451d9 Patch from Jürg Lehni to not track unset() on non-persitable properties. Fixes bug 633 http://helma.org/bugs/show_bug.cgi?id=633 hns 2008-09-20 20:22:37 +00:00
  • 761ab5560b Fix serialization for transient HopObjects. hns 2008-09-09 13:53:51 +00:00
  • c15785a22d updated mailing list and source repository links zumbrunn 2008-08-12 20:40:53 +00:00
  • d25b8298ee Add debug output for prototype handling. hns 2008-08-06 13:12:38 +00:00
  • 50ab484fd0 updated range of years of copyright notice in the license to include 2008 zumbrunn 2008-08-06 10:47:15 +00:00
  • 60e56647eb Undo previous commit. hns 2008-07-28 10:56:51 +00:00
  • fb9f5cf8cd Add more synchronization to avoid memory race conditions. hns 2008-07-28 10:23:03 +00:00
  • f3c6c7a93f Make app.addRepository() synchronized to avoid memory race conditions. hns 2008-07-28 08:24:42 +00:00
  • 01e8b5ccbd Make sure _all_ access to TypeManager.prototype field is synchronized. hns 2008-07-21 23:05:28 +00:00
  • 51ba3dc963 Make sure _all_ access to TypeManager.prototype field is synchronized. hns 2008-07-21 23:02:22 +00:00
  • 41a422fd01 Synchronize more methods in TypeManager to prevent race conditions. hns 2008-07-17 12:08:10 +00:00