Commit graph

2585 commits

Author SHA1 Message Date
hns
aa648dd876 * Add some sanity checks to improve error messages. 2007-03-30 15:28:38 +00:00
hns
4781c7a8ff * Avoid double stack trace printing in execute() 2007-03-30 10:54:34 +00:00
hns
2b5d5c089b * Rename asJavaObject() to toJava(). 2007-03-30 09:30:59 +00:00
hns
dbcb600857 * Make sure Request and Session are created with a funciton name placeholder
even if invokeInternal() is called with a function object. Some cleaning up,
  do not declare recycle() as public.
2007-03-29 15:39:26 +00:00
hns
72487ca844 * Add argument checking to RhinoEngine.invoke(). 2007-03-29 15:35:16 +00:00
hns
804b6b0075 * Enhance app.invokeAsync(): return handle provides methods
waitForResult() and waitForResult(millis) that block until the
  function terminates.
2007-03-29 09:31:24 +00:00
hns
83add89edb * Update with patches from http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/
including patch to allow access to public java methods in non-public classes.
2007-03-29 09:26:23 +00:00
hns
c836b73bf2 * Handle max-thread-count exception in invokeAsynx(). 2007-03-28 21:07:55 +00:00
hns
ecfa47bdc7 * invokeAsync(): put running->true in original thread to avoid trap. 2007-03-28 20:54:43 +00:00
hns
80740b46a4 * Don't forget to release the RequestEvaluator after all is done. 2007-03-28 20:51:22 +00:00
hns
86aedcff1e * Implement app.invoke() and app.invokeAsync(). 2007-03-28 20:18:01 +00:00
hns
ad2b66c246 * Do not enable usage of Thread.stop() for request timeouts by default. 2007-03-28 20:06:04 +00:00
hns
6514226078 * Improve error message on invalid _prototype value as suggested
by Juerg Lehni on helma-user
2007-03-28 18:53:14 +00:00
hns
b67a171983 * Implementing global asJavaObject() function. 2007-03-28 14:44:55 +00:00
hns
05a978e901 * Extend ScriptingEngine.invoke() to directly accept JavaScript function objects.
* Make RequestEvaluator.invokeInternal() and RequestEvaluator.invokeDirectFunction()
  accept Javascript function objects as arguments.
2007-03-28 14:32:46 +00:00
hns
900d16654a * Fix bug where post parameters weren't parsed with prototype.js Ajax requests
because of charset subheader appended to ContentType
* Use Servlet.log() instead of System.err.println() and pass exception as second argument.
2007-03-28 14:21:17 +00:00
hns
21dfa78b0b * Stop server when shutting down. 2007-03-28 13:49:43 +00:00
hns
b4276f683b * Log Jetty messages to Helma logger. 2007-03-28 13:40:09 +00:00
hns
b2a6acdf97 * Minor formatting bug: missing dot in onStop() error output. 2007-03-28 13:10:04 +00:00
hns
4575142c60 * Update to new Rhino CVS snapshot with the patches from
http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/
  including fixes for rhino bugs 359358 and 359359
2007-03-28 11:48:03 +00:00
hns
bb03265ec0 * Compiled Jetty 4.2.27 with the following patch for AJP13 request paths:
diff -Nur jetty-4.2.27/src/org/mortbay/http/ajp/AJP13Connection.java jetty-4.2.27-patched/src/org/mortbay/http/ajp/AJP13Connection.java
--- jetty-4.2.27/src/org/mortbay/http/ajp/AJP13Connection.java  2006-11-23 11:44:50.000000000 +0100
+++ jetty-4.2.27-patched/src/org/mortbay/http/ajp/AJP13Connection.java  2007-03-28 13:34:52.000000000 +0200
@@ -194,12 +194,9 @@
                         Code.warning(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-03-28 11:45:41 +00:00
hns
11022c42b6 * Forward put()s from the thread scope to the shared scope during
repository injection. Fixes bug 504.
2007-03-27 19:51:43 +00:00
hns
c04d2db80f * Implement res.pushBuffer(StringBuffer) and res.popBuffer() to get
StringBuffers in and out of the res buffer stack. This is needed for
  efficiently implementing the method described in
  http://dev.helma.org/wiki/Handler+for+rendered+skins/
2007-03-27 12:53:28 +00:00
hns
ac0a5f1daa * Implement app.charset and app.getCharset() to get the app's default charset
* Fill in missing JavaDoc comments
2007-03-27 12:46:35 +00:00
hns
39cdaf045f * Undo previous change. 2007-03-27 12:44:43 +00:00
hns
9fe75abfba * Make req.path start with "/" 2007-03-27 12:34:20 +00:00
hns
0dbf6751b7 * Complain about missing handler in default failmode.
* Streamline a bit by passing ScriptingEngine instead of RequestEvaluator
  in some cases.
2007-03-23 19:43:57 +00:00
hns
731ec80ac1 * Refactor Macro.render() method into two distict methods in order to invoke
invoke macros without rendering the result to the response (useful for
  nested macros).
2007-03-23 16:32:19 +00:00
hns
dd899e67b9 * Go safe and use Rhino inspection for getProperty() on HopObjects. 2007-03-23 16:31:03 +00:00
hns
b233ad0d4d * Updated snapshot with patch for rhino bug 375081
https://bugzilla.mozilla.org/show_bug.cgi?id=375081
2007-03-23 14:05:45 +00:00
hns
3e20cadca1 * Allow subskins of the currently rendered skin to be rendered using
relative skin names ("#subskinName")
* Fix minor bug in subskin parsing.
2007-03-23 11:16:06 +00:00
hns
4531ef6e4b * Implement subskins
* Fix skin failmode levels
* Add Resource.getOverloadedResource()
* Implement ScriptingEngine.isTypedObject(Object)
* Fix skin length bug with non-ASCII characters
2007-03-22 15:34:10 +00:00
hns
0b363a4b96 * Mark all changing fields as volatile.
* Issue a warning if a non-existing function was invoked.
2007-03-22 15:18:47 +00:00
hns
b6d72d79af * Add allowDeepMacros property which must be set to "true" in order to allow
macros with deep paths.
* Issue an error message if a macro isn't terminated properly.
2007-03-20 11:02:23 +00:00
hns
984c6a62a4 * Implement positional macro parameters.
* Resolve conflict between failmode and default attributes:
  failmode=silent now results in default value to be used if the macro
  fails to resolve or execute.
* Extract and clean up argument preparation code.
2007-03-19 16:46:45 +00:00
hns
159251911d * Implement new toCharArray(String) method. 2007-03-16 23:18:06 +00:00
hns
3020e80650 * Fix bug that prevents non-global filters to work. 2007-03-16 06:11:17 +00:00
hns
18f79fd12a * Update to new Rhino CVS snapshot with the patches from
http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/
  including Rhino bug https://bugzilla.mozilla.org/show_bug.cgi?id=373897
2007-03-15 17:22:59 +00:00
hns
de09d0aac9 * Implement app.getAppsProperties() to return the subset of
apps.properties relevant to the current application.
2007-03-15 17:16:32 +00:00
hns
e4784f870d * Refactor and enhance Skin class:
- implement macro/filter pipes <% foo | bar %>
  - implement deep macros <% foo.bar.foo %>
  - implement nested macros <% foo x=<% bar %> %>
  - implement failmode=silent|verbose attribute
* Refactor ScriptingEngine interface and implementation to support
  new skinning features.
2007-03-15 17:15:25 +00:00
hns
1ef63471aa * Optimize WrapMaker methods a little bit. 2007-03-15 17:12:32 +00:00
hns
e9cf02914c * Implement app.getAppsProperties() to return the subset of
apps.properties relevant to the current application.
2007-03-15 16:23:22 +00:00
hns
4494d0bff5 * Implement negative result caching in getPrototypeName(Object). 2007-03-15 16:21:00 +00:00
hns
2b7e92d9f6 * Change res.abort() semantics:
Just abort transaction and do not stop request execution,
  since we now have res.stop() to do the latter.
2007-03-15 16:19:28 +00:00
hns
c070627d99 * Set prototype and parent scope, although we'd have to return NOT_FOUND
in get() in order to get the prototype chain working.
2007-03-15 16:16:16 +00:00
hns
504e5dba18 * Fix string splitting regexp in splitLines(). 2007-03-15 16:08:59 +00:00
zumbrunn
c8ae4f4286 updated jsdoc related build scripts 2007-03-12 16:39:17 +00:00
hns
814f1307db * Add check and debug message for invalid line index. 2007-03-09 11:32:41 +00:00
hns
6aba4c136f * Minor formatting fix. 2007-03-09 10:15:41 +00:00
hns
156e65909e * Implement switchProperties() to allow to switch db connections at runtime.
* Minor cleanup/simplification in getConnection().
2007-03-08 15:40:09 +00:00