Commit graph

3302 commits

Author SHA1 Message Date
hns
6d2f294252 * Implement onDebuggerStatement(Context) added in Rhino 1.7.
* Minor Javadoc and import cleanup.
2007-10-29 09:37:59 +00:00
hns
8a27991087 Switching to jala trunk 2007-10-23 12:11:48 +00:00
hns
e307d212fd * Rename Config to ServerConfig in order to prepare for an ApplicationConfig class. 2007-10-11 13:26:02 +00:00
hns
beed995659 * Enabling use of ID sequence generators in H2 databases.
Patch by Robert Gaggl, fixes bug 562 - http://helma.org/bugs/show_bug.cgi?id=562
2007-10-11 12:31:49 +00:00
hns
ae0536eb26 * Allow _parent to consist of three elements, such as page.comments.blocked.
Fixes bug 563 - http://helma.org/bugs/show_bug.cgi?id=563
* Throw an exception when adding to a collection with accessname defined and the 
  collection already contains an object with the given name. Previously, the old object 
  was deleted from the database. 
  Fixes bug 561 - http://helma.org/bugs/show_bug.cgi?id=561
2007-10-11 12:21:40 +00:00
hns
3c059e8778 * Update to stock Apache XML-RPC 2.0.1. 2007-10-11 12:13:07 +00:00
hns
b1980dceec * Update tagsoup.jar to version 1.1.3. Tagsoup is used by getHtmlDocument() as well as Jala. 2007-10-11 11:58:40 +00:00
hns
a58b4a084f * Allow type.properties to be named after their prototype (e.g. Root.properties).
Implement feature request 553: http://helma.org/bugs/show_bug.cgi?id=533
2007-10-11 10:05:53 +00:00
hns
033659c8c5 * Don't mark a HopObject dirty if added to transient collection.
This is a rather conservative fix for bug 554.
  http://helma.org/bugs/show_bug.cgi?id=554
2007-10-11 09:51:17 +00:00
hns
9874ec1cd9 * Remove toggle link for debug output. 2007-10-10 12:30:10 +00:00
hns
4ab4f0ef9c Define svn:externals for helma modules trunk 2007-10-09 13:31:47 +00:00
hns
f232748501 Define svn:externals for jala 1.2 2007-10-09 13:29:56 +00:00
hns
2fa6005ee1 Simplify implementation:
* No need to use reflection because we always have JDK 1.4 functionality. 
* Use java.util.BitSet for lookup of URI-safe characters.
2007-10-03 14:43:39 +00:00
hns
9b75760568 * Add try/catch and logging to updateProperties(), and remove duplicate code. 2007-10-03 14:40:21 +00:00
hns
72fffb0aa1 robert: set svn:mime-type property on all html files 2007-09-28 13:29:58 +00:00
hns
a70b360310 robert: removed svn:mime-type and set svn:keywords property of all text files 2007-09-28 13:16:38 +00:00
hns
a59ea3367e robert: removed svn:mime-type and set svn:keywords property of all text files 2007-09-28 13:16:38 +00:00
hns
463a175753 robert: removed svn:mime-type and set svn:keywords property of all text files 2007-09-28 13:16:38 +00:00
hns
f03f405f04 * Check if changeSet is null in commitCompilation() to avoid NullPointerException.
Fixed bug http://helma.org/bugs/show_bug.cgi?id=466
2007-09-26 12:46:21 +00:00
hns
e9e11ddb9a * Add write() and writeToString() variants that take an additional boolean argument
to write node in shallow/internal database mode. 
  Fixes bug http://helma.org/bugs/show_bug.cgi?id=404
* Some code and javadoc cleanup.
2007-09-26 12:07:34 +00:00
hns
ff20cddcda * Refactor constructors a lil bit, make className final, clean up import statements. 2007-09-26 12:03:06 +00:00
hns
fd598f23cf * Set session cookie in request object. Fixes bug 547.
http://helma.org/bugs/show_bug.cgi?id=547
* Use java.security.SecureRandom for session id generation,
  with fallback to java.util.Random.
2007-09-25 11:01:30 +00:00
hns
f7f2604969 * Move cleanupSessions() from Application to SessionManager. 2007-09-25 10:43:04 +00:00
hns
a35d3ea425 * Convert file name into an absolute path in saveAs().
* Build directories in saveAs() if they don't exist, 
  fixing bug 324 <http://helma.org/bugs/show_bug.cgi?id=324>
2007-09-21 14:57:22 +00:00
hns
4b23a48c14 * Try to be more robust if getInputStream() is called after writeToFile() has been called
by getting the InputStream from the new file instead of the old one, which may not exist 
  anymore. Fixes bug 559 <http://helma.org/bugs/show_bug.cgi?id=559>
* Print error messages when catching Exceptions, plus a little more cleanup.
2007-09-21 14:55:10 +00:00
hns
262eb22335 * Fall back to property name if a filter reference can't be resolved as column name.
Fixes bug 557 <http://helma.org/bugs/show_bug.cgi?id=557>
2007-09-21 13:12:46 +00:00
hns
74b3b217ee * Mark object references as COMPLEX_REFERENCE if the foreign key column is also
mapped as primitive property. Fixes bug 555.
  <http://helma.org/bugs/show_bug.cgi?id=555>
* Get group mapping from parent DbMapping. Fixes bug 553.
  <http://helma.org/bugs/show_bug.cgi?id=553>
2007-09-21 09:31:15 +00:00
hns
9395ebcd06 * Update lib/jetty.jar to Jetty 5.1.14 and lib/servlet.jar with the following patch for AJP13 request paths:
--- jetty-5.1.14/src/org/mortbay/http/ajp/AJP13Connection.java  2007-03-05 01:15:05.000000000 +0100
+++ jetty-5.1.14-patched/src/org/mortbay/http/ajp/AJP13Connection.java  2007-09-20 17:28:17.000000000 +0200
@@ -208,12 +208,9 @@
                        log.warn(packet.toString());
                    }
 
-                    String path=packet.getString();
-                    int sc=path.lastIndexOf(";");
-                    if (sc<0)
-                        request.setPath(URI.encodePath(path));
-                    else
-                        request.setPath(URI.encodePath(path.substring(0,sc))+path.substring(sc));
+                    // fix request path encoding issue, see
+                    // http://grazia.helma.at/pipermail/helma-user/2007-March/006911.html 
+                    request.setPath(packet.getString());
 
                     _remoteAddr=packet.getString();
                     _remoteHost=packet.getString();
2007-09-20 15:33:41 +00:00
hns
a961a2d6cb * Update lib/jetty.jar to Jetty 5.1.14 and lib/servlet.jar to Servlet API 2.4.
* Remove LongSink code from helma.main.Server.
Fixes bug 550 http://helma.org/bugs/show_bug.cgi?id=550
2007-09-20 14:55:00 +00:00
grob
797a719f15 * fixed bug 539
* added private getter for internal buffer and mime multipart object to ease testing
2007-09-20 11:14:10 +00:00
hns
e9fbe01c68 * Fully implement simple object references that don't use the primary key on either side.
Fixes bug 218.
2007-09-20 10:39:31 +00:00
hns
4648a7eee2 * Pimp up res.debug() output a little bit, making it invisible by default and adding
a link to display it. This is just a minor facelift to a feature that needs to be rethought
  and replaced, though.
2007-09-20 09:19:30 +00:00
hns
87722c3b8d Minor cleanups and fixes in helma.util.CronJob:
* Send sub-properties of app properties that start with "cron." so we don't have to 
  do the filtering ourselves.
* Be tolerant of whitespace in cron job time specs (e.g. cron.foo.minutes = 0, 15, 30, 45)
2007-09-20 08:12:13 +00:00
hns
3e54355ef5 Minor cleanups and fixes in helma.util.CronJob:
* Send sub-properties of app properties that start with "cron." so we don't have to 
  do the filtering ourselves.
* Be tolerant of whitespace in cron job time specs (e.g. cron.foo.minutes = 0, 15, 30, 45)
2007-09-20 08:11:01 +00:00
grob
a15d836297 test-commit, please ignore 2007-09-17 10:41:06 +00:00
grob
880a312656 test-commit, please ignore 2007-09-17 10:40:12 +00:00
hns
9066bd1b2e * Improve Rhino Tracer:
- Include method runtime in milliseconds.
  - Indent nested method calls.
  - Stop including method arguments in the trace output.
2007-09-17 09:36:49 +00:00
grob
a5b8ce588e test commit, pls. ignore 2007-09-11 10:22:11 +00:00
grob
bc3130dd64 test commit, pls. ignore 2007-09-11 10:21:26 +00:00
grob
fca989d668 * updated lucene jar files to version 2.2.0
* changed Document.addField(): instead of defining field options as booleans (still supported for backwards compatibility), they can now contain a string defining the storage, indexing and term vector options for this field. this way all options supported by lucene can be used. see apidoc for accepted values. in addition addField() now accepts an instance of helma.Search.Document.Field as single argument too.
* added Document.Field() constructor wrapping a lucene document field instance. The constructor can be called with the same options as Document.addField()
* Document.getField() now returns an instance of helma.Search.Document.Field instead of a plain JS object. For backwards compatibility name and value can still be accessed as properties, but to get detailed information about the field the appropriate methods needs to be called (eg. isTokenized(), isStored())
* removed Index.getModifier() as all but one method of IndexModifier is now available in IndexWriter too
* removed private getWriterModifier() method as waiting for index unlock is now done by Lucene itself (defaults to 1 second)
* getWriter() now supports a second argument enabling or disabling auto commit (defaults to false)
* changed default boolean clause in BooleanQuery.addTerm() and BooleanQuery.addQuery() from "and" (MUST) to SHOULD
* removed Document.getDateField(): the value of a field converted into a date is now accessible via the "dateValue" property of the field
* added Document.removeField(name)
2007-09-06 11:46:48 +00:00
p3k
c6d5098e8c Fixed bug that prevented correct error handling 2007-08-30 12:40:25 +00:00
p3k
2af69af96f Added support for content length and HTTP error messages 2007-08-30 12:38:33 +00:00
hns
c6aa2b46b7 * Update to Rhino 1.6R7 with Token patch from
http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/
2007-08-30 10:06:28 +00:00
zumbrunn
437d603faf changed docs for file.list methods, attempting to work around a JSDoc rendering problem 2007-07-31 21:24:08 +00:00
zumbrunn
54d348d904 fixed docs for File.prototype.renameTo and helma.File.renameTo to show that the expected argument is of type FileObject, not String 2007-07-31 19:50:05 +00:00
zumbrunn
62e88d817a added reference to docs for supported date format pattern 2007-07-30 20:03:58 +00:00
hns
fb20983640 * Make sure jsdocs target is executed before package-raw. 2007-07-18 23:12:40 +00:00
hns
de0c08ce5a * Be more careful about setting parent scope on functions (which may be nested).
Fixes bug 531 reported by juerg lehni on helma-dev.
  http://helma.org/bugs/show_bug.cgi?id=531
2007-07-18 22:54:36 +00:00
hns
00fa917e42 * Patch for bug 521 submitted by Andreas Unterluggauer.
http://helma.org/bugs/show_bug.cgi?id=521
2007-07-18 12:05:12 +00:00
michi
95530f2f0f fixed bug 525:
it is now possible..
* to specify a maximum response size
* to define a custom response handler (e.g. for directly writing the response to the disk)
* to specify credentials directly in the URL

additionallz the returned result-object now contains a map with all header-fields.
2007-07-17 16:12:09 +00:00