Commit graph

1038 commits

Author SHA1 Message Date
hns
78cc65f88b req may have been unset in recycle() by the time we reach the catch clause,
so use the current thread for debugging output.
2002-09-04 16:38:28 +00:00
hns
9c8c460355 Recognize Timeouts without explicit timeout flag, just comparing
if we still "own" the evaluator thread.
2002-09-04 16:32:26 +00:00
hns
3713d73580 Marked timeout field as volatile. 2002-09-04 15:47:10 +00:00
hns
003caed8d7 Implement timeout field to know when to rethrow exceptions in
script execution as TimeoutExceptions. The field is set to true in abort()
and set to false in enterContext().
2002-09-04 15:24:55 +00:00
hns
38c9d3cff5 rethrow TimeoutExceptions caught in Macro execution. 2002-09-04 14:30:57 +00:00
hns
67b6d434f3 Log abort messages to the access log instead of the event log to give a
better idea about request activity and the ratio between successful/aborted requests.
2002-09-04 14:03:48 +00:00
hns
5b0d8935e8 Call abort() on the scriptingEngine to let it know that the current
execution is being aborted.
2002-09-04 14:01:29 +00:00
hns
495495da18 Added abort() method to let the Engine/Evaluator know that the current
execution is being aborted (usually due to a request timeout).
2002-09-04 14:00:28 +00:00
hns
9eb0955806 Updated version string. 2002-09-04 13:37:03 +00:00
hns
06430a62e8 Do not call stop() method on threads when aborting a transaction.
The method is deprecated, and it seemed to leave db connections in an
unreclaimable state.
2002-09-04 13:35:50 +00:00
hns
921e4787cb Do not try to perform path translation relative to the servlet mountpoint
since this is done already by the servlet container.
2002-08-30 15:26:57 +00:00
hns
251b9e0fa3 Added <hr> to list of recognized HTML tags. 2002-08-30 14:28:10 +00:00
stefanp
9b9e73f508 temporary fix: made Xml.write() use default UTF-8 encoding. 2002-08-21 17:11:58 +00:00
stefanp
e4979a7175 made XmlDatabase use the app's charset
(app.properties/charset=ISO...)
new method: Application.getCharset()
2002-08-16 18:22:47 +00:00
stefanp
eb397b6def fixed bug that caused default xml-conversion not to work properly.
removed commented out code.
2002-08-11 17:26:04 +00:00
hns
a0ce604062 Do not locally define pwfile field, which is meant to be an instance variable. 2002-08-07 12:44:42 +00:00
hns
51a564cd60 Updated version string. 2002-08-06 14:50:27 +00:00
hns
65bef92295 Perform getCanonicalFile() immediately when creating hopHome in main method
of Server instead of only doing it when needed.
2002-08-06 14:47:30 +00:00
hns
1f6e49e791 Fixed bug where serving of static files didn't work on Windows with hopHome
property set by using File.getCanonicalFile().
2002-08-06 12:57:24 +00:00
hns
a097a07937 Re-enable server-wide passwd file for the authenticate() function. 2002-08-05 16:39:18 +00:00
hns
1b29302939 * Updated version string
* Improved startup message which now includes info about Java version
* Default Helma log is now log file, not console
* added getDbProperties() method to retrieve server-wide db sources.
2002-08-02 18:33:12 +00:00
hns
096541e347 Fixed bug where prototype was marked as checked too early, resulting in
other evaluators to use the prototype is if the code was fully parsed/compiled.
2002-08-02 18:19:04 +00:00
hns
a1080de978 Get prototype resources through synchronized methods instead of directly
accessing them. This fixes a bug where prototypes that were in the process of
being compiled were accessed by evaluators.

Pass through RedirectException if notModified() has been called on the response
object.
2002-08-02 13:32:56 +00:00
hns
6182b9313a Return true on needsUpdate if zip file has been removed. 2002-08-02 13:25:22 +00:00
hns
b2862b95bb Added lastModified property that contains a date either of when the session
was created or when the session was last logged in or out. The property can also
be set from script code.
2002-08-02 10:50:48 +00:00
hns
113ea0aecc Added support for HTTP Last-Modified and If-Modified-Since headers and
304 Not Modified response.
2002-08-02 10:49:40 +00:00
hns
6b87ffb004 Removed deprecated/unused servlet constructor. 2002-08-02 10:28:52 +00:00
hns
65b8d6b2c4 Major clean-up work on Application constructors. Removed some old
options like setting application file extensions etc. Instead now the Application
constructors can take arguments for the app and db home directories.

Updated helma.main.ApplicationManager and helma.servlet.StandaloneServletClient
to the new constructors.

TypeManager now has file extensions as static final members.
2002-08-02 10:27:31 +00:00
stefanp
236a819d86 change in extension-mechanism:
initScripting() now returns a HashMap (key=varname, value=ESValue) which
will be added to the global object by FesiEvaluator. This ensures that global
vars are (re-)set before each request.
DemoExtension was updated to reflect this change.
2002-08-01 14:37:25 +00:00
stefanp
a4a0405241 fixed a bug that didn't let primitive values returned by a bean pass through
because of a classcastexception.
2002-07-31 15:57:25 +00:00
hns
44aff437b4 Better session cookie creation algorithm. Random number and timestamp are now
woven into one number. Both shorter and (presumably) more secure.
2002-07-29 18:11:51 +00:00
hns
7585b72d7f * Properties file is now read only when needed instead of reading it in constructor
* Implemented case insensitivity for Hashtable methods (get(), containsKey())
* Optimized file checking. Synchronized code is entered only if file has been modified.
* Added lots of comments.
2002-07-29 18:10:29 +00:00
hns
40ba46d788 Fixed issues with HTML comments and Helma macros in Helma format functions. 2002-07-29 14:53:13 +00:00
stefanp
1012b31a6a made app.properties-object readonly, plus formatting fixes. 2002-07-29 12:46:36 +00:00
stefanp
e6cf8647cc added readonly option. 2002-07-29 12:44:57 +00:00
stefanp
b4595a2a29 fixed bug that would check for another server running on the default rmi port
even if helma was using only the embedded webserver.
2002-07-29 12:42:52 +00:00
kmfdm
4b35b3bf2c added comment that advises initScripting, applicationStarted and applicationStopped to be synchronized. 2002-07-29 08:32:09 +00:00
hns
67c80bb772 updated version string. 2002-07-25 12:16:21 +00:00
hns
8d72e0f9c4 Switch off event logging in Jetty 2002-07-25 11:27:18 +00:00
hns
aa73b41701 Acme Serve is no longer used in Helma. 2002-07-24 19:16:28 +00:00
hns
53410917bd Switch to Jetty for embedded web serving needs. 2002-07-24 18:37:20 +00:00
hns
20ea4b874f Get init parameters in in init method instead of a special constructor
the way servlets should.
2002-07-24 18:35:45 +00:00
hns
4e7cc29a82 Slight modification of the way too large file uploads are handled. 2002-07-24 18:34:46 +00:00
hns
a106e43fd0 Ditched getTranslatedSkinpath() and setTranslatedSkinpath in RequestTrans.
getSkinpath() and setSkinpath now directly deal with Object arrays.
2002-07-19 11:35:21 +00:00
hns
02d64e6d1e __prototype__ internal property is now also accessible as _prototype.
Simplified check for internal properties: Every property name starting with an
underscore is now interpreted as internal property.
Added check for null propertyName.
2002-07-18 20:32:28 +00:00
hns
bfa99996c8 Only return property-to-db mapping as properties enumeration if the node
is stored in a relational database. Otherwise, the actual properties are
returned.
2002-07-18 20:19:52 +00:00
hns
c202e31ea3 Set default uploadLimit.
Avoid hanging in in.read() when uploadLimit is exceeded.
2002-07-15 16:15:47 +00:00
hns
101e3ee58a Start embedded XML database without the db file name parameter, which doesn't
exist anymore and wasn't used anyhow.
2002-07-15 14:34:19 +00:00
hns
0128e07d69 Removed code to retrieve prototype from propertiy map in getPrototype().
(This was a backwards compatibility feature for when prototype was stored as
a generic property.)
2002-07-15 14:33:32 +00:00
hns
54f2a0e317 Issue a message to the Server log when moving applications on the
embedded web server.
2002-07-12 19:17:20 +00:00