Commit graph

3175 commits

Author SHA1 Message Date
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
hns
f3ddd892de * Handle java.sql.Types.BOOLEAN. Fixes bug 529, 2007-07-16 08:13:30 +00:00
hns
fb3029ed25 * Handle java.sql.Types.BOOLEAN. Fixes bug 529,
patch submitted by Maksim Lin
2007-07-16 08:07:28 +00:00
hns
a5e5a0915e * Allow float to boolean conversion. 2007-07-16 08:03:03 +00:00
hns
4bf021d45b * Be more careful about throwing exception in RequestTrans.set().
* Remove spurious System.err.println().
2007-07-05 16:32:06 +00:00
zumbrunn
460ace26be minor tweaking for docs generation 2007-07-01 15:50:28 +00:00
hns
8579a68675 * Implement thread local connection caching for non-transactor threads.
Fixes problem with connection proliferation with helmaswarm id generator
  (see http://helma.org/bugs/show_bug.cgi?id=527)
2007-06-28 15:42:17 +00:00
hns
701a2671e9 * Use zero length byte array for class comparison, tweak comments. 2007-06-28 13:34:57 +00:00
hns
d7618448fb * Update to todays CVS snapshot branch Rhino1_6R6_BRANCH with
token patch from http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/
2007-06-28 13:02:54 +00:00
hns
25bfad73c5 * Remove unused obsolete fields.
* Fix cookie domain check against null host string.
2007-06-26 09:11:34 +00:00
michi
917f48ccac bug fix for helma.Html.isSelected; see http://www.nabble.com/helma.Html-bug-tf3842136s2589.html#a10879801 2007-06-22 08:13:23 +00:00
hns
62e678468c * Update to todays CVS snapshot branch Rhino1_6R6_BRANCH with
token patch from http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/
2007-06-21 09:17:48 +00:00
hns
dd4beb2490 * Reintroduce defineLibraryScope() because it is still used in various places,
but deprecate and drop second argument (boolean initStandardObjects).
2007-06-20 09:13:52 +00:00
hns
7c8404d57d * normalize filename in FileItem constructor. 2007-06-20 08:22:02 +00:00
hns
43ee46e653 * Do not use enum as parameter name as it's a keyword in java 1.5. 2007-06-15 17:57:49 +00:00
hns
524028da3a * Major reshuffling of servlet/request code.
* Implement req.cookies, req.params, req.postParams and req.queryParams collections
* Improve access to parameter values as array: param_array is always available even with just one value
* Implement req.getHeader(name), req.getHeaders(name), req.getIntHeader(name), req.getDateHeader(name)
* Implement res.setHeader(name), res.setDateHeader(name), res.addHeader(name), res.addDateHeader(name)
2007-06-15 10:58:25 +00:00
hns
acb9676f0c * Implement StringUtlils.collect() that converts an Enumeration to a String array. 2007-06-15 10:49:07 +00:00
hns
882dfacb2e * Implement toString() that displays arrays. 2007-06-15 10:46:02 +00:00
hns
82b35af983 * Avoid infinite recursion in makeChildrenPersistable() 2007-06-15 09:54:54 +00:00
hns
c52a29741e * Add new getParentSetting() method that allows to retrieve the
unparsed, verbatim _parent option from the type.properties file.
2007-06-13 12:54:34 +00:00
hns
1f362c1803 * Don't synchronize isRunning() as that can cause deadlocks during shotdown. 2007-06-13 12:45:24 +00:00
hns
bf95a9c036 * Always use stream interface for retrieving BLOB and LONGVARBINARY columns.
* Check for null reader in streamy LONGVARCHAR code.
2007-06-05 18:28:39 +00:00
hns
b783016a6b * Don't make session.getUpload() create a new UploadStatus instance. 2007-06-05 18:27:21 +00:00
michi
2c36528d98 switched from getColumnName to getColumnLabel; as suggested here: http://www.nabble.com/helma.Database---suggested-improvement-t3841979s2589.html 2007-06-05 13:20:28 +00:00
hns
5abdda6177 * add totalUploadLimit apps.properties setting to limit combined file upload size
(as opposed to individual upload size)
2007-06-04 12:02:27 +00:00
hns
380ff54187 * Do not pass file uploads in memory as byte arrays.
* Implement file upload monitoring support.
* Do not swallow exceptions in GET/POST parameter parsing
* Store any bytes remaining after GET/POST parameter parsing
  into req.data.http_get_remainder and http_post_remainder, respectively.
2007-06-04 11:02:40 +00:00
hns
8e82dfe5d9 * Fix license header from Apache 2 to Helma 2 license. 2007-06-04 08:06:30 +00:00
hns
0068de78ec * Add new MimePart.getInputStream() method.
* Add MimePart constructor that takes a jakarta commons-fileupload FileItem
  as argument.
* Make all fields private, add getters and setters for lastModified and eTag.
* Add some javadoc.
2007-06-04 08:06:00 +00:00