2018-04-01 Massimo Manghi * VERSION,configure.ac: bumping version to 2.3.6 2018-01-15 Massimo Manghi * doc/xml/install.xml: fixed broken links 2017-11-11 Massimo Manghi * : releasing as 2.3.5 2017-11-06 Massimo Manghi * tests/virtualhost.test,channel.test: fixed stanzas that caused these tests to fail in certain cases because the Host: header wasn't interpreted correctly 2017-10-29 Massimo Manghi * win/: removing obsolete directory for windows support * rivet/init.tcl: recreated from init.tcl.in * VERSION: new version 2.3.5 2017-10-24 Massimo Manghi * rivet/packages/dio/dio_Mysql.tcl: handling special field NULL 2017-10-13 Massimo Manghi * rivet/init.tcl.in: Following Jeff Lawson's suggestion we check if init.tcl is loaded from within mod_rivet. If we're not running from it we don't divert the [exit] command * tcl/rivet-tcl/redirect.tcl: now handling generic boolean arguments or any integer > 0 (as for the HTTP status codes) * src/librivet/rivetWWW.c: fixed subtle buffer overflow with sprintfn 2017-08-08 Massimo Manghi * src/apache-2/mod_rivet.c: implementing check on post_config hook calling Rivet_InitHandler. This avoids the module initialization to run twice but only on the second time the hook is called * configure.ac: bumping version number to 2.3.5 2017-08-03 Massimo Manghi * .: releasing as 2.3.4 2017-07-27 Massimo Manghi * src/librivet/rivetWWW.c: Doubling the size of chunks allocated for the buffer in Rivet_EscapeSgmlCharsCmd (6 chars) and setting the chunk size in Rivet_EscapeStringCmd back to the original size (3 chars) (closes bug #61353) 2017-07-20 Massimo Manghi * rivet/packages/formbroker/formbroker.tcl: now using Tcl [string is boolean ...] 2017-07-19 Massimo Manghi * doc/xml/intro.xml: better wording of the ::rivet::catch illustration in the manual introduction 2017-06-09 Massimo Manghi * doc/xml/: more documentation fixing 2017-05-15 Massimo Manghi * src/apache-2/mod_rivet.c: server root interpreter needs to re-seed the random number generator 2017-04-19 Massimo Manghi * doc/xml/directives.xml: fixed typo * VERSION,configure.ac: bumping version number to 2.3.4 * doc/xml/formbroker.xml: various corrections 2017-02-10 Massimo Manghi * rivet/packages/formbroker/formbroker.tcl: now handling natively also boolean in the form y|n or 0|1 2016-12-07 Massimo Manghi * rivet/packages/session/session-class.tcl: fully qualifying ::rivet::* command names in this packages. Add method 'stash' to store form data in the session cache * rivet/packages/session/form*.tcl: fully qualifying ::rivet::* command names in this packages * src/librivet/rivetWWW.c: new buffer size allocation to prevent apache from crashing when too many characters needing escaping are in a string 2016-11-28 Massimo Manghi * .: releasing rivet 2.3.3 2016-11-17 Massimo Manghi * rivet/packages/dio/dio_Postgresql.tcl: applied consistent single quote character handling by calling PgTcl function pg_quote (closes bug #60378) * rivet/packages/formbroker/formbroker.tcl: fixed bug in method response. Package version number bumped up to 1.0 * doc/xml/formbroker.xml: first draft of the manual page of package formbroker with example of implementation of a validator * contrib/validate_mac.tcl: add example of a validator * doc/xml/commands.xml: fixed typo in ::rivet::xml manual page 2016-11-15 Massimo Manghi * rivet/rivet-tcl/catch.tcl|try.tcl: better script evaluation is catch/try construct, specified complete ::rivet::abort_page generated error codes * rivet/packages/formbroker/formbroker.tcl: add package formbroker * doc/xml/formbroker.xml,asciiglyphs.xml: add documentation for packages formbroker and asciiglyphs 2016-11-09 Massimo Manghi * src/mod_rivet/mod_rivet_common.c: the request_rec field to be checked in order to determine whether we are serving the request is 'header' non 'content_type'. This bug didn't surface because their set to the same string when a request is handed to the module chain, but it's been around ever since. * VERSION,configure.ac: version set to 2.3.3 2016-09-21 Massimo Manghi * Changelog: logging release of this artifact as rivet 2.3.2 2016-09-19 Massimo Manghi * rivet/rivet.tcl.in,rivet.tcl: fixed errors in comments 2016-09-13 Massimo Manghi * INSTALL: correct version number * doc/commands.xml: Documenting new ::rivet::url_query command 2016-09-09 Massimo Manghi * tests/bailout.test: add tests for ::rivet::catch and ::rivet::try * tests/catch.rvt,try.rvt: script testing handling various conditions 2016-09-09 Massimo Manghi * tests/runtests.tcl: support for Apache 1.3 dropped. Add modules needed by Apache 2.4 * tests/apachetests/apachetests.tcl: Dropped support for Apache 1.3 * tests/shorthand.test: shorthand notation versioning added * tests/virtualhost.test: removed NameVirtualHost directive no longer supported 2016-09-08 Massimo Manghi * Changelog: removed spurious duplicated entry * rivet/rivet-tcl/try.tcl: enable Id svn keyword * rivet/rivet-tcl/catch.tcl: fixed wrong script invocation, enable Id svn keyword * rivet/rivet-tcl/url_query.tcl: add new command ::rivet::url_query 2016-09-07 Massimo Manghi * rivet/rivet-tcl/catch.tcl: fixed argument management in ::catch call 2016-07-14 Massimo Manghi * doc/xml/intro.xml: amended wrong section title in introduction 2016-07-06 Massimo Manghi * doc/xml/commands.tcl: typo in section ::rivet::xml corrected * rivet/packages/form/form2.tcl: merging recent fix of the select element generation * configure.ac,VERSION: changing version to 2.3.2 2016-06-16 Massimo Manghi * doc/xml/commands.xml: manual page for ::rivet::catch rewritten * Changelog: entry for 2.3.1 release corrected (the date was quite incidentally postponed to 16 June, thus exactly today) 2016-04-16 Massimo Manghi * .: released as 2.3.1 2016-04-13 Massimo Manghi * VERSION,configure.ac: version number set to 2.3.1 2016-04-05 Massimo Manghi * rivet/packages/form/form.tcl: wrong element created by 'file' method * doc/xml/examples.xml: conflicting targets fixed 2016-04-04 Massimo Manghi * doc/rivet.xml: Add 2016 to copyright notice 2016-03-26 Massimo Manghi * .: Relased as 2.3.0 2016-03-18 Massimo Manghi * tclconfig/: reverting to previous release 2016-03-17 Massimo Manghi * tclconfig/tcl.m4,install-sh,ltmain.sh,libtool.m4: updating autotools and libtool macros to the latest versions available 2016-03-07 Massimo Manghi * src/parser/rivetParser.c: Add Apache 2.0 mandatory copyright notice. removed unneed inclusion of config.h (cruft left over since many years) 2016-02-26 Massimo Manghi * rivet/packages/asciiglyphs.tcl: merging changes done in trunk 2015-12-14 Massimo Manghi * rivet/packages/asciiglyphs/asciiglyphs.tcl: removed debugging lines 2015-12-09 Massimo Manghi * rivet/packages/asciiglyphs.tcl: character selection mechanism amended * doc/xml/commands.xml: documenting ::rivet::try 2015-12-07 Massimo Manghi * rivet/packages/asciiglyphs/asciiglyphs.tcl: new file renamed after hexglyphs.tcl which now prints more than the hexadecimal character set 2015-12-05 Massimo Manghi * rivet/rivet-tcl/try.tcl: new command ::rivet::try wraps core same command to trap ::rivet::abort_code and ::rivet::exit interruptions * rivet/rivet-tcl/catch.tcl: using [uplevel] to control Tcl core [catch] command (as it's been customary with Tcl ever since) * rivet/init.tcl: modified to remove ::rivet::try from the export list 2015-12-02 Massimo Manghi * doc/images/*.png, doc/rivet.css: styles and navigation items color changed to mark the difference with Rivet 2.2 and Rivet 2.1 * doc/xml/commands.xml,intro.xml: new commands ::rivet::exit and ::rivet::catch documented * rivet/init.tcl: new version 2.3 of package Rivet 2015-11-27 Massimo Manghi * VERSION,configure.ac: version number increased to 2.3.0 2015-11-25 Massimo Manghi * src/rivet.h: add macro RIVET_EXPORT_COMMAND (wraps Tcl_Export) * src/librivet/rivet[WWW|List|Crypt].c: proper way to put these commands on the export list * src/rivetcmds/rivetCore.c: Commands are now put explicitly on the export list (if build with --enable-rivet-commands-export) * rivet/init.tcl: removed -force switch when importing the ::rivet command set. Rationalization of Tcl commands export list * doc/xml/command.xml: add manual page for ::rivet::exit * tests/bailout.test: add test for bailout commands ::rivet::abort_page and ::rivet::exit * configure.ac: add INIT_VERSION symbol substitution 2015-11-21 Massimo Manghi * src/rivetcmds/rivetCore.c: return EXITPAGECODE when ::rivet::exit is called.Add [::rivet::abort_page -exiting] exit condition detection 2015-11-20 Massimo Manghi * rivet/rivet-tcl/catch.tcl: new command [::rivet::catch ...] wraps the core command but returns an error anyway if raised by either [::rivet::abort_page] or [::rivet::exit] 2015-11-18 Massimo Manghi * rivet/packages/hexglyphs/hexglyphs.tcl: now printing the whole alphabet and some puntuation character * src/rivetcmd/rivetCore.c: Implementing command exit * src/apache-2/mod_rivet.c: New command ::exit required the flag exit_process be checked to see if a child process must exit and also to treat exit like an ::rivet::abort_page invocation that eventually causes the process to go away. Abort page conditions now checked through flag abort_page * rivet/init.tcl.in: now reimplementing the core command exit 2015-10-21 Massimo Manghi * rivet/packages/hexglyphs/hexglyphs.tcl: package to create ASCII art glyphs of hexadecimal characters 2015-09-09 Massimo Manghi * src/apache-2/mod_rivet.c: We don't delete the Tcl interpreter anymore, we just let the process exit do the cleanup. 2015-07-29 Massimo Manghi * src/apache-2/mod_rivet.c: someone noticed the handler was registered as APR_HOOK_LAST instead APR_HOOK_MIDDLE as recommended by the specifications 2015-07-27 Massimo Manghi * src/apache-2/mod_rivet.c: add more comments, improved code readability in Rivet_CreateTclInterp 2015-06-21 Massimo Manghi * VERSION: new version 2.2.4 * configure.ac: changing version to 2.2.4, definition of config.h variable RIVET_CONFIGURE_CMD carring the configure full command that prepared the build of the module * src/apache-2/mod_rivet.c: Improved readability of code in Rivet_ChildHandlers. Add RIVET_CONFIGURE_CMD to 'server' array 2015-06-03 Massimo Manghi * doc/rivet.css: changing selector for namespace table as DocBook seems not to honor the id attribute anymore * doc/xml/request.css: changing the id "namespaces" as class 2015-05-21 Massimo Manghi * doc/xml/installation.html: wrong links fixed 2015-05-05 Massimo Manghi * src/apache-2/mod_rivet.c: New procedures Rivet_PrintErrorMessage and Rivet_ExecuteErrorHandler. Error handling generalized and Tcl status returned by Tcl_EvalObjEx is propagated by Rivet_ExecuteAndCheck to interrupt execution even when an error occurs or abort_page is called from a nested template. Flag globals->page_aborting is used to prevent error loggin because ::rivet::abort_page is called. Therefore globals->page_aborting is reset when a real error occurs (closes bug #57501) 2015-04-26 Massimo Manghi * VERSION,configure.ac: changing version to 2.2.3 looking ahead for a future release 2015-04-22 Massimo Manghi * doc/xml/internals.xml: replaced reference to the old configure.tcl script and replaced with up-to-date directions on how to build with the debugger using the current autotools based scripts 2015-04-16 Massimo Manghi * docs/xml/install.xml: removed documentation for obsolete configure switch --with-apache-version 2015-03-28 Massimo Manghi * INSTALL: update installation and configuration examples 2015-03-11 Massimo Manghi * doc/xml/internals.xml: Improved paragraph on how to extend mod_rivet * src/apache-2/mod_rivet.c: Improper handling of 'HTTP_NOT_FOUND' and HTTP_INTERNAL_SERVER_ERROR caused an access to non existing memory (Bug #57686) 2015-02-20 Massimo Manghi * INSTALL: installation instructions update * VERSION: new version 2.2.2 * configure.ac: new version 2.2.2 2015-02-06 Massimo Manghi * src/apache-2/mod_rivet.c: moving execution of after_every_script before request cleanup (still a null procedure, but just in case we give it something to do) 2015-02-02 Massimo Manghi * src/rivetcmds/rivetCore.c: in Rivet_Parse returned value of Rivet_ParseExecFile is propagated up to the caller. Probably unnecessary now, but just in case we want to have special handling of TCL_CONTINUE or TCL_BREAK (bug #57501) * src/apache-2/mod_rivet.c: moving call to after_every_script out of Rivet_ParseExecFile and into Rivet_SendContent. Any call to ::rivet::abort_page is now trapped by AbortScript (bug #57501) * src/config/TclWebapache.c: if charset is set in the configuration then it's set in the headers just before HTTP headers are sent (moved from mod_rivet.c) 2015-01-12 Massimo Manghi * tests/redirect.test,channel.test: adding tests for new features of Rivet 2.2.1 2015-01-08 Massimo Manghi * doc/xml/commands.xml: documenting the ::rivet::redirect command * doc/xml/directives.xml: add SeparateChannels directive documentation * src/rivetcmds/rivetInspect.c: add handling of SeparateChannels/separate_channels configuration flag 2015-01-06 Massimo Manghi * src/apache-2/mod_rivet.c: handling separate_channel flag to create virtual host specific Rivet channels * src/config/apache_config.c: handling SeparateChannels configuration directive 2015-01-05 Massimo Manghi * configure.ac: adding macro APU_HANDLING for OS where apr-utils have a different installation directory * src/Makefile.am: new macro symbols APU_INCLUDES and APU_CFLAGS 2014-12-22 Massimo Manghi * tests/headers.test: add test for command 'headers get' * src/Tclweb.h: new definition for functions TclWeb_OutputHeaders[Set|Get] * src/config/Tclwebapache.h: New functions TclWeb_OutputHeaders[Set|Get] * src/rivetcmds/rivetCore.c: new subcommand '::rivet::headers get' * tclconfig/libtool.m4: new script for libtool 2014-12-18 Massimo Manghi * rivet/rivet-tcl/redirect.tcl: adding Damon's redirect command based on direct manipulation of the headers * src/rivetcmds/rivetCore.c: adding command [::rivet::headers sent] providing basic introspection for the I/O buffer internal status * src/apache-2/mod_rivet.c: moving Tcl_Flush from Rivet_ExecuteAndCheck to the very end of Rivet_SendContent, avoiding multiple calls in case ::rivet::parse is called. * src/experimental: removing it from this branch. Threaded code will be developed in trunk for rivet 2.3 2014-08-04 Massimo Manghi * configure.ac: adding support for --with-rivet-channel switch for alternate implementations of a Rivet Tcl channel * src/: further modularized to make refactoring a bit easier. But it's still the code we released as 2.2.0 2014-07-14 Massimo Manghi * src/experimental/mod_rivet.c: working toy module capable of running Tcl scripts with a worker MPM * src/experimental/rivetChannel.c: now depending on the thread private data 2014-07-17 Massimo Manghi * src/channel/rivetChannel.[c|h]: add preprocessor symbol to prevent multiple includes 2014-07-16 Massimo Manghi * src/experimental: add experimental code for threaded module 2014-07-10 Massimo Manghi * src/apache-2/apache_config.[h|c]: moved to src/config * src/apache-2/TclWebapache.c: this file moved temporarily into src/config to separate it from the specific module implementation * src/experimental: making room to a new implementation of mod_rivet * src/channel/rivetChannel.c: the request_rec pointer is passed through another pointer as this channel is now the only channel handled by mod_rivet and it's shared across virutal hosts * src/apache-2/mod_rivet.c: now creating only one Rivet channel instance and storing a pointer to the current request_rec in the structure mod_rivet_globals, as the running the prefork MPM we can only handle a request at a time. * src/apache-2/*.tcl: removing obsolete tcl files 2014-07-09 Massimo Manghi * m4/ax_split_version.m4: adding macro for version number manipulation 2014-06-22 Massimo Manghi * configure.ac: new macros MOD_RIVET_CORE and RIVET_CHANNEL. Macro APACHE_VERSION preserved but not called anymore * rivet/init.tcl.in: Add template for rivet/init.tcl * src/Makefile.am: building mod_rivet with code entirely selected by autoconf defined symbols * src/apache-2/mod_rivet.c: comments added. Rivet package version depends now on preprocessor symbol RIVET_TCL_PACKAGE_VERSION 2014-06-10 Massimo Manghi * tests/rivet.test: removed lang.test as it was testing just a tautology 2014-06-04 Massimo Manghi * doc/images/color-table.png, doc/xml/examples.xml,doc/examples/color-table-tcl: Changing old table.rvt example in a more enticing colorful table generation 2014-06-03 Massimo Manghi * 2.2/: merging changes from trunk * doc/xml/intro.xml: Acknowledgements reworded into a list * doc/images/: logo has now a transparent background, navigation icons colors turned into a greenish tint * rivet.xsl,rivet.css: new style based on a green gamut to make pages visually different from Rivet 2.1 2014-06-02 Massimo Manghi * VERSION,configure.ac: tagging this code as 2.2.0 * src/rivet.h,src/rivetcmds/rivetCore.c: macro CHECK_REQUEST_REC moved from rivetCore.c to rivet.h * doc/xml/internals.xml: New section documenting how to extend mod_rivet with new commands written in C 2014-05-22 Massimo Manghi * rivet/packages/dio/aida.sql: redifining responsability of class Aida (not to be officially released) 2014-04-17 Massimo Manghi * src/: reintegrating modularization branch. Now every subsystem mod_rivet is made of (module, channel, parser, commands, request multipart handling) can be developed separately * src/rivetcmds/rivetCore.c: reintroduced handling of the -string argument that disappeared from Rivet_ParseCmd probably because of the merge with modular. * src/apache-2/mod-rivet.c: Corrected comments to Rivet_ParseExecString 2014-04-16 Massimo Manghi * rivet/packages/dio/aida.tcl,dio_Tdbc.tcl,sql.tcl: more methods implemented in aida.tcl * doc/xml/commands.xml: new form '::rivet::inspect server' documented * src/rivetcmds/rivetInspect.c: adding is_virtual flag to dictionary returned by '::rivet::inspect server' * branches/modular: merging latest changes in trunk * trunk/src/rivetcmds/rivetInpect.c: adding is_virtual flag to dictionary returned by '::rivet::inspect server' 2014-04-11 Massimo Manghi * src/rivetcmds/rivetCore.c: misplaced check on request_rec in Rivet_InspectCmd * tests/failtest.tcl,failtest.test,checkfail.tcl: adding tests for ::rivet::inspect 2014-04-07 Massimo Manghi * tests/failtest.[test|tcl],failcheck.tcl: implementing test for consistent error handling by commands that are supposed to refuse execution outside of a request processing * tests/inspect.tcl: implementing test of command '::rivet::inspect script' * src/rivetcmds/rivetCore.c: typo in command ::rivet::apache_table 2014-04-04 Massimo Manghi * tests/failtest.tcl,failtest.test,checkfail.tcl: adding script for commands that must fail outside of a request processing (to be completed) * src/rivetcmds/rivetCore.c: comment rephrased 2014-03-30 Massimo Manghi * src/rivetcmds/rivetInspect.c: Add function Rivet_CurrentServerRec returning a dictionary of some field values stored in the server_rec object * src/rivetcmds/rivetCore.c: Add support for 'server' argument returning the dictionary built by Rivet_CurrentServerRec * src/TclWeb.h: adding declaration of function constructor of a TclWebRequest object * src/apache-2/TclWebapache.c: Add functions TclWeb_NewRequestObject and TclWeb_InitRequest to reinitialize a TclWebRequest object on each request * src/apache-2/apache_request.[c|h]: API change for ApacheRequest_new taking now an apr_pool_t object instance for creating an ApacheRequest oject pointer. Task to reset this object to initial values is now delegated to ApacheRequest_init. * src/apache-2/mod_rivet.[c|h]: new field in globals stores the current server_rec object pointer. This pointer is used in RivetInspect.c to access to field of the object for introspection 2014-03-26 Massimo Manghi * doc/xml/commands.xml: wrong example for lassign_array corrected * src/apache-2/mod_rivet.c: Adding comment explaining the meaning of setting/resetting globals->r as a way to detect if a script is running in the context of a request processing * src/rivetcmds/rivetCore.c,rivetInspect.c: Tcl object handling improved. Code simplified and ap_assert call added in Rivet_CurrentConfDict if there is no handling of a configuration parameter by Rivet_ReadConfParameter (which should never happen) * configure.ac, VERSION: version number bumped to 2.1.5 2014-03-16 Massimo Manghi * doc/images/Rivetlogo_small.png: removed because already in doc/ and duplicate to home.png 2014-02-28 Massimo Manghi * doc/xml/upgrading.xml: Adding Karl's note about upgrading from NeoWebScript 2014-02-24 Massimo Manghi * doc/xml/commands.xml: completed reworking of manual page for command ::rivet::inspect. * .: Preparing RC1 archive for version 2.1.4 2014-02-22 Massimo Manghi * doc/xml/commands.xml: further elaboration of the section about command ::rivet::inspect 2014-02-21 Massimo Manghi * tests/inspect.[test|tcl]: adding tests for introspection command 2014-02-19 Massimo Manghi * src/rivetcmds/rivetCore.c: spurious ref count decrement caused random crashes * src/rivetcmds/rivetInspect.c: fixed behaviour when inspect is passed with an undefined argument value * configure.ac: reindented some function to improve readability and editor independence 2014-02-19 Massimo Manghi * src/rivetcmds/rivetInspect.c,src/librivet/rivetList.c: removing lines of code commented and unused * doc/xml/commands.xml: documenting command lremove * tests/rivetlib.test: adding more tests for lremove 2014-02-11 Massimo Manghi * tests/rivetlib.test: adding tests for rivetlib * rivet/packages/dio/aida.tcl,sql.tcl: new files for development of DIO compatible interface to tdbc * rivet/rivet-tcl/lassign_array.tcl: removed since already provided in rivetlib * docs/xml/commands.xml: documenting features of lassign_array.tcl rivetlib version 2014-02-06 Massimo Manghi * ChangeLog: timestamps of latest entries of this file carried the wrong year (2013) * rivet/packages/dio/dio_Mysql.tcl: fixed comment lines placed within the switch construct that have become incompatibile with Tcl8.6. * configure.ac: add AC_C_INLINE macro 2014-02-04 Massimo Manghi * src/rivetcmd/rivetCore.c: testing globals->r against NULL and in case return a null string * src/apache-2/mod_rivet.c: using only globals->r to flag a request processing under way 2014-02-03 Massimo Manghi * src/apache-2/mod_rivet.c: globals->req had to be set to NULL in Rivet_PerInterpInit! 2014-02-02 Massimo Manghi * src/apache-2/mod_rivet.[c|h]: further optimizing code avoiding to allocate a TclWebRequest structure on every request. This structure is allocate when the interpreter is initialized and a pointer stored in rivet globals * src/rivetcmd/rivetInspect.c: impoved consistence if Tcl objects handling 2014-01-30 Massimo Manghi * src/apache-2/mod_rivet.c: this ChangeLog entry is meant to amend the 2014-01-27 entry that missed to point out as small still important change in mod_rivet.c. Rivet_SendContent is not calling Tcl anymore to coax command 'info script' to return the current Rivet script full path. This will soon be solved by adding a new functionality to command '::rivet::inspect' 2014-01-27 Massimo Manghi * src/apache-2/apache_config.[c|h]: new file with Apache module configuration procedures moved here from mod_rivet.c. This code is likely to be Apache 2.x but totally independent from the running MPM. Therefore it was moved here to improved size and manageability of mod_rivet.c * src/apache-2/mod_rivet.c: The module central code, from which configuration handling procedures were removed 2014-01-08 Massimo Manghi * rivet/packages/dio/aida.tcl: adding aida.tcl experimental file for a DIO compatible interface to TDBC. * rivet/packages/dio/sql.tcl: now able to produce same basic SQL queries ::DIO::Database class is doing now 2013-12-19 Massimo Manghi * rivet/packages/dio/dio_Postgresql.tcl: reindented and tabs converted to spaces * rivet/packages/dio/sql.tcl: class DIO::Sql now returning basic SELECT SQL statements 2013-12-18 Massimo Manghi * rivet/packages/dio/sql.tcl: further developments. Class Sql is now able to build an abstract representation of a SELECT query * rivet/packages/dio/dio.tcl: typo in a comment 2013-12-16 Massimo Manghi * rivet/packages/dio/sql.tcl: trying to redesign rivet in order to comply with Tdbc and aiming at making DIO a pure interface to Tdbc dropping the dependency with DBMS specific drivers 2013-12-13 Massimo Manghi * rivet/packages/dio/dio_Tdbc.tcl: first version of Tdbc driver for DIO. This class is able to execute basic queries and needs further development 2013-12-08 Massimo Manghi * configure.ac: version number bumped up to 2.1.4 2013-12-06 Massimo Manghi * rivet/packages/dio/dio_Postgres.tcl: minor changes (code indentation revised) * rivet/packages/dio/dio_Tdbc.tcl: experimental support for the tdbc abstraction library * doc/xml/install.xml: the manual still suggested to call make install-packages, whereas 'make install' does everything now as it was before 2.1.2 2013-12-04 Massimo Manghi * src/apache-2/apache_request.c: log message in ApacheRequest___parse() commented out (Bug #55845) 2013-12-03 Massimo Manghi * src/apache-2/mod_rivet.c: Rivet template preprocessor symbols renamed in the more expressive RIVET_TEMPLATE and RIVET_TCLFILE * rivet/rivet-tcl/lassing_array.tcl: new command lassing_array taken from DIO's result set class (inspired by Tclx) * doc/xml/commands.xml: lassign_array documented in the manual * rivet/packages/dio/dio.tcl: reformatted during analysis for supporting tdbc based driver 2013-11-04 Massimo Manghi * src/Makefile.am: this Makefile.am is now in charge for building mod_rivet librivet.so and librivetparser.so. This fixes and problem with the 'distclean' target and keeps us from further customization of automake (subdir-objects property) * src/runtests.tcl: changed path to mod_rivet.so and librivetparser.so 2013-10-15 Massimo Manghi * src/rivetcmds/rivetCore.c: 'headers redirect' used to return TCL_RETURN to force the caller to terminate and interrupt the processing. It didn't actually worked exactly that way and starting with Tcl 8.6.1 it also failed returning a Tcl invalid error code (Bug #55583). Turning it into TCL_OK seems to cure the problem 2013-09-26 Massimo Manghi * doc/xml/session.xml: fixed code example indentation * rivet/packages/calendar.xml: fixed class and tag for calendar banner 2013-09-23 Massimo Manghi * rivet/packages/calendar/calendar.tcl: fixed zero length argument list calling method emit 2013-09-22 Massimo Manghi * modular: committing changes from last merge 2013-09-21 Massimo Manghi * contrib/tcl.vim: list of subcommands completed 2013-09-20 Massimo Manghi * contrib/tcl.vim: Vim's syntax highlighting extension including also rivet's command set (experimental) 2013-09-18 Massimo Manghi * rivet/init.tcl: removed paranoid debugging log messages 2013-09-17 Massimo Manghi * src/[parser|apache-2|librivet]/Makefile.am: AM_CPPFLAGS are not a transparent replacement for INCLUDES at least when a Makefile.am is in a subdirectory. Placing include directory switches in the target specific _CPPFLAGS variable 2013-09-15 Massimo Manghi * tclconfig/missing: new version of 'missing' taken from automake 1.14 * src/[parser|apache-2|librivet]/Makefile.am: depracated INCLUDES variables replaces with their recommended counterparts AM_CPPFLAGS * configure.ac: new message about the notifier failing to start in child processes after the child processes fork 2013-09-14 Massimo Manghi * rivet/packages/calendar/calendar.tcl: too restrictive test on Tcl versione fixed * rivet/rivet-tcl/parray_table.tcl: also the parray putting out an HTML table is now escaping SGML characters * INSTALL: new installation instruction amending the rejected installation approach done in 2.1.2 and restoring old target 'install' to get everything moved to their final directory * doc/xml/install.xml: same for INSTALL * doc/xml/commands.xml: new 'parse -string' form documented 2013-09-13 Massimo Manghi * rivet/packages/dio/dio_Mysql.tcl: attempting to correct detection of SELECT query by checking if a SELECT keyword exists at the beginning of query either following a '(' or only space characters (their trimmed away in any case) 2013-08-30 Massimo Manghi * rivet/rivet-tcl/parray.tcl: escaping SGML characters that might appear in the output to avoid cross scripting 2013-08-29 Massimo Manghi * branches/modular: merging latest changes from trunk 2013-08-26 Massimo Manghi * configure.ac: expanded warning message about broken implementations of Tcl when using forks and the event loop * Makefile.am: target 'install' now depends on targets install-binaries and install-packages, thus install the whole Rivet code as it did before 2.1.2. Packagers wanting to separated binary and Tcl code can draw on those 2 targets * INSTALL,doc/xml/install.xml: changed documentation to reflect the restored organization of install targets 2013-08-12 Massimo Manghi * rivet/packages/form/form2.tcl,form.tcl: form packages called Rivet's command '::rivet::env' in its unqualified form. Fixed adding the ::rivet namespace specification. * src/apache-2/rivetCore.c: errata corrige for entry added on 2013-07-19: command 'parse -string' superseded test command parsestr, thus removed from rivetCore.c 2013-08-07 Massimo Manghi * ./: merging changes done in trunk 2013-08-07 Massimo Manghi * src/apache-2/mod_rivet.c: adding MPM descripting fields to the 'server' array * configure.ac: warning message about Tcl version not supporting fork correctly moved to the end of configure.ac, so that it's more readable by the user 2013-08-06 Massimo Manghi * rivetcmds/rivetCore.c,rivetInspect.c: moved core commands into this new directory. Their code is (nearly) independent from Apache version and in future it might be shared between different versions/branches of the module * src/apache-2/Makefile.am: changed reference to rivetCore.c and rivetConf.c to their new position and new names * src/apache-2/mod_rivet.c: conditional compilation to Tcl_InitIdentifier might help preserving event loop on Unices where no pthreads_atfork call exists (Bug #55153) * configure.ac: Tcl version checked to detect when the notifier might not be working (Tcl < 8.5.15 and Tcl < 8.6.1). In case a warning message is printed 2013-07-19 Massimo Manghi * tests/parse.test,parsestring.rvt: adding test for 'parse -string' variant to Rivet command 'parse' 2013-07-17 Massimo Manghi * src/apache-2/mod_rivet.[h|c],rivetCore.c: reverting new command 'parsestr' and turning string parsing command into the support for the new -string modifier of the ordinary parse command 2013-07-06 Massimo Manghi * src/parser/parserPkgInit.c: commands are created through the RIVET_OBJ_CMD macro * rivet/packages/tclrivet/tclrivet.tcl: loading the rivetparser library caused weird side effects and the interpreter failed when this package was required by a script. It's still to be understood why librivetparser was loaded using command 'load' in tclrivet.tcl * src/apache-2/mod_rivet.c: reverting an attempt to include rivetparser as package required by default. 2013-07-05 Massimo Manghi * configure.ac: changed the default path for installation dir * doc/xml/commands.xml: add manual page for command ::rivet::xml 2013-06-28 Massimo Manghi * src/apache-2/mod_rivet.c,rivetCore.c: command 'parsestr' to parse templates stored in Tcl objects coded * doc/Makefile.am: 'clean' target made a little terser 2013-06-26 Massimo Manghi * Makefile.am: forcing install/unistall targets to recreate pkgIndex.tcl in order to have a coherent directory of packages actually available 2013-06-24 Massimo Manghi * INSTALL: It must be made explicit installation is a two stage operation now 2013-06-24 Massimo Manghi * rivet/packages/session/session-class.tcl: two new methods 'load' (loads a whole package data for a given package and session) and 'clear' (it deletes either a whole package or a single data like for a session) 2013-06-22 Massimo Manghi * src/apache-2/mod_rivet.c: cleanup of unused code in mod_rivet.c. Adding comments to undocumented functions * src/parser/rivetParse.c: New TODO comment added 2013-06-12 Massimo Manghi * Makefile.am: splitting install targets into 'make install' (mod_rivet.so, librivet.so,librivetparser.so + Tcl commands in rivet/rivet-tcl) and 'make install-packages' (whole content of rivet/packages), thus decoupling binary and non binary installs. Notice: 'make install' creates a fully functional install of Rivet in case packages such as 'form', 'session', 'DIO' aren't needed. * rivet/rivet-tcl/xml.tcl: Adding svn:keywords Id to svn properties * doc/xml/install.xml: updating manual to document the new installation command sequence 2013-06-04 Massimo Manghi * tclconfig/* : merging into this branch the latest commits done from trunk 2013-06-03 Massimo Manghi * tclconfig/[ltmain.sh,compile,depcomp]: more libtool scripts updated 2013-06-03 Massimo Manghi * src/parser/Makefile.am: adding include paths to INCLUDE * src/Makefile.am: Rivet library build moved to this script * src/librivet/Makefile.am: Rivet library build removed from this file 2013-06-02 Massimo Manghi * src/Makefile.am: including librivet.so build in this file * src/librivet/Makefile.am: kept for reference but without effective code now * tclconfig/[install-sh,config.sub,config.guess]: new versions for script used by the autoconf/automake/libtool toolchain 2013-05-24 Massimo Manghi * src/: branching trunk to branches/modular to reorganize mod_rivet in a way that should enable the development of single components (apache request, Rivet channel, parser) with minimal branching 2013-05-21 Massimo Manghi * src/apache-2/apache_request.c: ApacheRequest___parse further simplified and made less restrictive about the combination of method and mimetype of the request * src/apache-2/mod_rivet.c: add debug message in exit handler 2013-05-06 Massimo Manghi * src/apache-2/rivetCore.c: call to 'panic' changed to fulfill the hardening flags that (quite oddly) fail when building against Tcl8.6 on some platforms or Linux distros 2013-04-30 Massimo Manghi * doc/xml/commands.xml: improved entry for ::rivet::var with an explanation and example provided by Harald * configure.ac,VERSION: version number bumped to 2.1.2 2013-02-12 Massimo Manghi * src/apache-2/mod_rivet.c: To avoid clash on freeing resources Tcl_Finalize is removed from child process cleanup (Bug #54162) 2013-02-11 Massimo Manghi * rivet/packages/dio/dio.tcl: fixing nasty bug introduced with Rivet 2.1. When method 'store' is updating the call to method update needs a flat list as last argument, not just a sigle valued list argument * doc/xml/commands.xml: Improved explanation for command abort_page * src/apache-2/rivetConf.c: corrected typo in header * src/apache-2/apache_request.c: new handling of apache requests largely relaxes checks on the 'Content-Type' header (Bug #53661) 2013-02-02 Massimo Manghi * src/apache-2/apache_request.c,src/apache-2/mod_rivet.c: extending request handling also for PUT and DELETE. Applied patch provided by Jeff Lawson in bug report #53892 2013-02-01 Massimo Manghi * src/apache-2/Makefile.am, src/Makefile.am: removed -v flag from rm command in install-data-hook: target to avoid incompatibility with same command's implementation in Solaris (Bug: #54181) 2013-01-28 Massimo Manghi * src/apache-2/mod_rivet.[c|h],rivetCore.c: removed hardcoded error code generated by abort_page and defined in the preprocessor symbol ABORTCODE. 2013-01-25 Massimo Manghi * rivet/rivet-tcl/xml.tcl,rivet/rivet-tcl/tclIndex: New command for XML fragments composition 2013-01-20 Massimo Manghi * Makefile.am: added removal of libool created .la files for librivetparser and librivet 2012-12-30 Massimo Manghi * rivet/rivet-tcl/xml.tcl: revised command for simple XML string mark up 2012-12-18 Massimo Manghi * src/librivet/rivetPkgInit.c: package version taken from preprocessor symbol RIVET_VERSION so that it's guaranteed mod_rivet.c will get the right library version. * src/apache-2/mod_rivet.c: removed trailing spaces from various lines (offends some patch management tools such as quilt) 2012-12-17 Massimo Manghi * doc/xml/install.xml: fixed link to download page on the website * rivet/packages/dio/dio.tcl: method store uses internally methods 'insert' or 'update' (depending on the existence of a row having the same keyfield). The latest version of DIO shipped a 'store' method that returns the very same value returned either by 'insert' or 'update'. Previous versions of DIO returned invariably 1, which was undocumented and not very well thought out (handled errors in 'store' return a -code error, not necessarily 0). Previous behavior is reinstated (bug #54313) 2012-12-16 Massimo Manghi * rivet/packages/session/session-class.tcl: method 'store' had an hardcoded 'parray' the ran when an error occurred. It also printed a message using 'puts' instead of 'debug' 2012-12-15 Massimo Manghi * src/apache-2/rivetCore.c: command 'headers' returns a meaningful error in case a subcommand is invalid 2012-12-12 Massimo Manghi * src/apache-2/mod_rivet.c: Tcl_PkgRequire for packages Rivet and rivetlib are exchanged so that commands in librivet.so can be imported when they are on the export list and a programmer issues a 'package require ::rivet' (fixes bug #54290) * rivet/init.tcl: this script is now providing package 'Rivet' instead of 'RivetTcl'. init.tcl initializes the Tcl core of Rivet and a package rivet has to exists for compatibility with version 2.0 where it was provided rather pointelessly by librivet.so. 2012-12-03 Massimo Manghi * doc/Makefile.am: Manual pages output encoding set to UTF-8 2012-11-13 Massimo Manghi * doc/xml/form.xml: subcommand 'checkboxes' documented 2012-11-09 Harald Oehlmann * rivet/packages/form/form2.tcl: Checkboxes with no value and an arbitrary default value are initialy checked. *** POTENTIAL INCOMPATIBILITY *** The default value is not taken as checkbox value any more. This was IMHO a security hole. (reported on rivet-dev by Jeff Lawson) 2012-11-05 Harald Oehlmann * rivet/packages/form/form2.tcl: Bug fixed: method textarea did not honor default values. (reported on rivet-dev by Jeff Lawson) 2012-10-29 Massimo Manghi * rivet/packages/session/[session-create-mysql.sql|session-create-sqlite.sql]: index riv_sess_cache_ix had a incomplete unique key definition that missed the 'package_' column (fixes bug #54063) 2012-10-28 Massimo Manghi * doc/xml/commands.xml: Manual entry for makeurl extented to clarify how the protocol is determined. 2012-10-16 Massimo Manghi * doc/xml/directives.xml,doc/xml/commands.xml,doc/xml/install.xml,doc/xml/examples.xml, doc/xml/request.xml,doc/convert_examples.tcl.in,doc/examples-sgml/hello1.rvt: Trying to improve the manual revising and extending it 2012-10-01 Massimo Manghi * doc/xml/request.xml,doc/xml/install.xml: attempting to improve the documentation * doc/images/: Adding missing icons 2012-09-30 Massimo Manghi * tests/parsepackage.test: changed path to librivetparser.so 2012-09-29 Massimo Manghi * rivet/rivet-tcl/xml.tcl: Adding command for simple quick XML fragments generation 2012-09-22 Massimo Manghi * rivet/packages/dio/dio.tcl: various methods used as accessors to some property variables of the class Database were not returning their values as expeected. This also surfaced a bug in method 'string' where a result object wasn't used correctly. Method 'count' failed when no keyfield was set. Since it should be possible to call this method also when there is no keyfield defined private method table_check is returning specific error codes making possible to catch this error and ignore it in 'count' (fixed bugs #53733 and #53732) * rivet/packages/dio/dio_Sqlite.tcl: Class Sqlite did not set the variable 'interface' to value 'Sqlite' as expected. 2012-09-21 Massimo Manghi * doc/README: improved instruction for code examples inclusion into XML manual * doc/rivet-full.xml: removed 2012-09-18 Massimo Manghi * rivet/pkgIndex.tcl: index file regenerated 2012-09-17 Massimo Manghi * src/librivet/rivet[Crypt|WWW|List|pkgInit].c,src/parser/rivetParser.[c|h], src/parser/parserPkgInit.c: files for librivet and the Rivet parser moved into src/librivet and src/parser. * src/Makefile.am,src/librivet/Makefile.am, src/parser/Makefile.am: new automake conf files reflect libraries reorganization. * src/apache-2/Makefile.am: mod_rivet builds from the newly located parser code. Is it sensible to let the module depend on a real package (provided by libparser.c)? * configure.ac: add variable substitution for newly created Makefile.am 2012-09-16 Massimo Manghi * tests/runtests.tcl,tests/apachetest.tcl: User and Group directives removed from conffile template to make test suite independent from the output of command 'id' from which the values for this parameters were inferred (Bug #53396) * tests/shorthand.rvt: oddly enough the template output the same line twice. 2012-09-03 Harald Oehlmann * Thank you accepting me as committer 2012-08-19 Massimo Manghi * src/apache-2/mod_rivet.c: the module returns now a HTTP_INTERNAL_SERVER_ERROR when a request namespace cannot be created 2012-08-16 Massimo Manghi * src/rivetPkgInit.c: improved namespace structure pointer handling (contributed by Georgios Petasis) 2012-08-15 Massimo Manghi * rivet/packages/dio/dio_Oracle.tcl: fixed method makeDBFieldValue in class Oracle (Bug #53703) 2012-08-15 Massimo Manghi * doc/xml/dio.xml: Fixed wrong declariation of 'insert' subcommand in page manual (Bug #53670) * rivet/packages/dio/dio_Postgresql.tcl: method makeDBFieldValue implemented and tested with package Sessiona (Bug #53703). * rivet/packages/session/session-create.sql: file renamed as session-create-postgresql.sql. Schema tested with package Session. * Changelog: entry of Aug 12 corrected: the method of Database (dio.tcl) in question was 'store' not 'fetch' * rivet/packages/session/session-class.tcl: removed 'conf' variable that could clash with application code (and in at least one case it did) (Fixes bug #53544) 2012-08-13 Massimo Manghi * rivet/packages/dio/dio_Sqlite.sql,rivet/packages/dio/dio_Mysql.tcl: These connector classes didn't compute correctly the number of seconds as unix timestamp to be returned for comparison with the same information returned by [clock seconds] (Bug #53703) * rivet/packages/session/session-class.tcl: special datetime field were registered associated to the rivet_session and rivet_session_cache names, whereas the class has member variables for storing these definitions (Bug #53543) 2012-08-12 Massimo Manghi * rivet/packages/dio/dio.tcl: Database's class 'store' method was rewritten on a more simple assumption that methods 'insert' and 'update' know how to actually .... insert and update rows * rivet/packages/dio/dio_Sqlite.tcl: The class was found to fail in various circumstances determining the number of rows affected by a query and determining the set of fields in a table involved by a query. Since a 'select' query is treated in a rather distinctive way from other SQL queries, a new public variable 'select' was added to the properties of the class in order to handle consistently the 2 cases within SqliteResult. The number of rows affected rows is obtained from the 'changes' subcommand of Sqlite3 connector. * rivet/packages/dio_Mysql.tcl: wrong special field handling fixed 2012-08-11 Massimo Manghi * rivet/packages/session/session-create-sqlite.sql: new file with schema of session package tables for Sqlite. 2012-08-07 Massimo Manghi * doc/rivet.css: text in monospace characted made a little smaller * rivet/packages/form/form.tcl: Workaround to avoid wrong parsing of form data when parameter values have spaces in them * src/apache-2/mod_rivet.c: 'server' array uses RIVET_VERSION instead of the lengthy RIVET_PACKAGE_VERSION 2012-07-31 Massimo Manghi * rivet/packages/dio/dio_Sqlite.tcl: Add search case for package sqlite3. Add method makeDBFieldValue to handle time and date special fields support. Add method 'quote' which overrides the same method in Database, as correct way to escape quotes (') characters for Sqlite is doubling them ('') 2012-07-04 Massimo Manghi * doc/examples/download.tcl: The example has been having ever since an error in calling 'source' instead of 'parse'. The multitude of the userbase never realized. 2012-07-03 Massimo Manghi * CHANGES: file emptied from obsolete notes * src/apache-2/mod_rivet.c: Add UploadDirectory to the list of handled options for RivetUserConf 2012-06-27 Massimo Manghi * configure.ac: Version number set as 1.2.0b1 * rivet/packages/form/form.tcl: form package 1.0 taken from branches/2.0 * doc/xml/commands.xml: improved page manual about incr0 being declared deprecated 2012-06-20 Massimo Manghi * contrib/form.tcl: Requiring package TclOO making explicit it's needed to run this version of form.tcl 2012-06-01 Massimo Manghi * rivet/packages/form/form2.tcl: New form2.tcl providing form 2.0 package (proposed name for the file) 2012-05-18 Massimo Manghi * doc/xml/intro.xml: add acknowledgments for contributions made by Cyril, Jeff and Harald * doc/xml/commands.xml: add page manual for ::rivet::inspect * src/apache-2/mod_rivet.c: add handling for Debug, DebugIp and DebugSeparator in user conf table. * rivet/rivet-tcl/debug.tcl: Array ::RivetUserConf (which is used to convey control parameters for the command) is now created on demand using command ::rivet::inspect * doc/rivet.css: adjustments needed to make characters size consistent and nice looking 2012-05-17 Massimo Manghi * doc/xml/examples.xml: "Hello World" example reworked * rivet/packages/dio/dio.tcl: fixed SQL syntax that would break compatibility with Oracle (fixes reopened bug #53222) 2012-05-15 Massimo Manghi * doc/hello1.rvt: add new "Hello World!" example to explain the new shorthand syntax 2012-05-14 Massimo Manghi * doc/rivet.xsl,doc/rivet.css,doc/images/[prev.png,next.png,up.png]: new stylesheet and icons for the page manual 2012-05-13 Massimo Manghi * rivet/packages/tclrivet/tclrivetparser.tcl: Tcl parser implements new shorthand echo syntax (closes bug #53217) * doc/xml/entities.xml: New manual page for package RivetEntities * rivet/packages/tclrivet/parse.tcl: auto_path handling improved (closes bug #52898) * rivet/packages/form/form.tcl: indentation converted to spaces to improve editing across different editors. Fixed problem with variable clash in constructor. Also removed unneeded [expr ...] in conditions that prevented byte compiling (Closes bug #52650) * doc/xml/commands.xml: improved manual entry for 'var list' (Fixes bug #52911) 2012-05-12 Massimo Manghi * src/rivetParser.c: add shorthand expression for (contributed by Jeff Lawson, addresses #53217, tclrivetparser still to be fixed) * tests/shorthand.[test|rvt]: add test of shorthand notation for string output * rivet/rivet-tcl/cookie.tcl: add support for HttpOnly flag (contributed by Cyril Shtumf, fixes bug #53224) * rivet/packages/session/session-class.tcl: support for HttpOnly flag improves security and reduces the risk of cross-site scripting attacks (contributed by Cyril Shtumf, fixes #52224) * rivet/packages/dio/dio.tcl: wrong SQL syntax generated in delete method when multiple fields are used in the selection clause (contributed by Cyril Shtumf, fixes bug #53222) * rivet/packages/dio/dio_Mysql.tcl: Mysql connection must be checked when connection reference is reused because it could have dropped (contributed by Cyril Shtumf, fixes #53221) 2012-05-09 Massimo Manghi * rivet/rivet-tcl/http_accept.tcl: new command ::rivet::http_accept * doc/xml/commands.xml: new manual entry for ::rivet::http_accept * doc/rivet.xml: Add new file entities.xml describing package 'RivetEntities' (only a stub, to be elaborated) * doc/xml/entities.xml: New manual page for package 'RivetEntities' 2012-05-08 Massimo Manghi * src/rivetPkgInit.c: reinstated safe interpreters initialization * doc/xml/install.xml: corrections and further elaboration of explanation for the --disable-import-rivet-commands 2012-05-07 Massimo Manghi * src/apache-2/rivetCore.c: new command ::rivet::inspect implementing function Rivet_InspectCmd * src/apache-2/rivetConf.c: Ancillary functions for instrospection procedure Rivet_InspectCmd * src/apache-2/Makefile.am: Added handling of rivetConf.c * src/apache-2/mod_rivet.c: Handling of configuration directives restricted to meaningful options when RivetDirConf or RivetUserConf directives are set. An error message is printed when child process initialization directives are set by RivetDirConf and RivetUserConf. Rivet_PropagatePerDirConfArrays and Rivet_PropagateServerConfArray functions disabled as the ::rivet::inspect command can work out a better alternative creating the RivetServerConf, RivetDirConf and RivetUserConf on demand. * src/apache-2/mod_rivet.h: Added declaration for functions in rivetConf.c * rivet/rivet-tcl/lassign.tcl: removed, since Tcl 8.5 lassign implements and extends the same functionalities 2012-04-30 Massimo Manghi * rivet/packages/form/form.tcl: Patch provided by Jeff Lawson to manage -label switches. The package now requires package uuid from Tcllib. * : Entry of 2012-04-07 amended as the path to mod_rivet.[c|h] was clearly wrong 2012-04-07 Massimo Manghi * rivet/apache-2/mod_rivet.[c|h]: One more change to an ap_log_error call suggested by the compilation hardening flags 2012-03-26 Massimo Manghi * rivet/packages/entities.tcl: new package RivetEntities, replacement for tcllib ::html::entities but with no extra dependecies (as a matter of fact it works without Rivet too) 2012-03-13 Karl Lehenbauer * configure.ac: Default separate virtual interps to "no". (--enable-virtual-interps-separation option implies disabled if not set.) * rivet/packages/form/form.tcl: In the forms package, stop bleeding the raw value of radio buttons and checkboxes into the generated HTML. * src/apache-2/mod_rivet.c: Rework ap_log_error calls to include the mod_rivet module name. Emit debug-level messages for successful execution of GlobalInitScript and ServerInitScript. * README.freebsd: Update to reflect the modern world. * README.configure: Document how to regenerate the configure script, etc. * tclconfig/depcomp, tclconfig/missing, tclconfig/config.guess, tclconfig/config.sub, tclconfig/ltmain.sh: Update from newer libtools, etc. 2012-03-08 Massimo Manghi * rivet/rivet-tcl/,/rivet/packages/simpledb: various changes suggested by code profiler (thanks to Harald Oehlmann) * rivet/packages/tclrivetparse.tcl: wrong handling of swich cases made method 'parse' unusable * src/rivet.h: obsolete comment amended 2012-01-16 Massimo Manghi * rivet/rivet-tcl/tclIndex.tcl: regenerated with auto_mkindex. 2012-01-15 Massimo Manghi * rivet/rivet-tcl/parray_table.tcl: this file was erroneously introduced as tablearray.tcl. Renamed. * rivet/rivet-tcl/putsnnl.tcl: experimental putsnnl command rewritten to improve features and make it more flexible by adding option for padding with   entities. 2012-01-10 Massimo Manghi * rivet/rivet-tcl/parray_table.tcl: New command parray_table to print the content of an array into an HTML table * rivet/rivet-tcl/putsnnl.tcl: More consistent form for 'putsnnl'. If the second argument is given and it's an integer then the string is at most characters long. If > [string lenghth ] then the output is still wide. If is a positive integer the string is printed right-aligned, if negative the string is left-aligned 2011-12-26 Massimo Manghi * rivet/rivet-tcl/putsnnl.tcl: Add new command 'putsnnl', a wrapper for 'puts -nonewline' with the extra optional feature of prepending the output with a definite number of spaces (it helps pretty printing of HTML) 2011-12-09 Massimo Manghi * src/rivetPkgInit.c,src/parserPkgInit.c: libs now are fully based on stubs and the tcl version parameter passed with Tcl_InitStubs is the same Tcl version their linked against. Probably too strict, but a cautious point as we are moving towards Tcl8.6 and Tcl9, which will probably require recompilation of the whole Tcl software 2011-12-08 Massimo Manghi * trunk/: Final commit merging changes to scoping commands in the ::rivet namespace 2011-12-07 Massimo Manghi * doc/examples, doc/convert_examples.tcl.in: Add ::rivet namespace to examples and examples code converter * doc/examples/*.rvt: removed unneeded sgml chars escaping * doc/xml/install.xml: removed duplicated entry of a 'configure' switch 2011-12-06 Massimo Manghi * rivet/rivet-tcl/tablearray.tcl: new procedure 'tablearray' prints an array content in an HTML construct. Test procedure, we maybe want to have something more general for printing also dictionaries. 2011-12-06 Massimo Manghi * configure_ac: add new test on Tcl version using AX_VERSION_COMPARE. 2011-12-06 Massimo Manghi * doc/xml/request.xml,doc/xml/install.xml: documenting new configure switches 2011-12-05 Massimo Manghi * src/apache-2/mod_rivet.c: child init sets also the array module_conf to signal the compilation flags --enable-rivet-commands-export and --enable-import-namespace-commands for the benefit of init.tcl * configure.ac: new macro created to handle --enable-rivet-commands-export and --enable-import-namespace-commands * rivet/init.tcl: module_conf signals when commands have to be exported from ::rivet and when they have to be implicitly imported into the global namespace for compatibility with previous versions of Rivet. 2011-11-21 Massimo Manghi * doc/xml/directives.xml,doc/xml/commands.xml: removed note about 'rivetlib' package no more needed. Notes about ServerInitScript not having effect when virtual hosts have their own private slave interpreters. 2011-11-20 Massimo Manghi * doc/xml/commands.xml,doc/xml/install.xml: documentation for building Rivet updated. * configure.ac: corrected help message for --disable-rivet-commands-export 2011-11-20 Massimo Manghi * src/rivet.h: Macro definition for Rivet command objects has rolled back to its previous form and doesn't call Tcl_Export anymore. In case commands are exported by calling Tcl_Export in rivetCore.c and rivetPkgInit.c * tests/*: test suite reviewed for new tests 2011-11-16 Massimo Manghi * src/apache-2/rivetCore.c: code rationalization. namespace reference will not be passed to the RIVET_OBJ_COMMAND macro and commands are exported by calling Tcl_Export on the whole command set in ::rivet. The whole process is controlled by the macro symbol RIVET_NAMESPACE_EXPORT * src/rivet.h: only one RIVET_OBJ_COMMAND object exists now. Call to Rivet_WWWInit, Rivet_CryptInit and Rivet_ListInit haved changed. Rivet namespace pointer in not passed around anymore and it's handled only in rivetPkgInit.c * src/rivetPkgInit.c: 2011-11-14 Massimo Manghi * configure.ac: new switch --enable-rivet-commands-export to enable/disable commands in ::rivet namespace 2011-11-12 Massimo Manghi * src/apache-2/rivetCore.c: reindented to improve readability. * doc/xml/commands.xml: typo corrected * tclconfig/ltmain.sh: new script from recently released libtools * configure.ac: new macro AC_CONFIG_MACRO_DIR to include macros in m4 2011-10-12 Massimo Manghi * debian/*: actually removed from trunk (yesterday it was removed from branches/2.0) 2011-10-11 Massimo Manghi * debian/*: removed from trunk and moved into parent directory. Maintaining scripts and configuration for Debianizing a package in the same package repository is deprecated and error prone. 2011-10-09 Massimo Manghi * debian/*: preparing to move the debian stuff away from development branches of Rivet. I'm committing the latest changes done in the process of releasing the Debian package for 2.0.4 2011-09-26 Massimo Manghi * m4/ax_compare_version.m4: add macro for version comparison from the GNU macro archive 2011-09-23 Massimo Manghi * src/apache-2/rivetCore.c,src/apache-2/TclWebapache.c: merging changes made to fix bugs and requests to command 'makeurl', 'load_env' and 'load_headers' 2011-09-07 Massimo Manghi * doc/xml/commands.xml: Add existing undocumented commands - import_keyvalue_pairs - lempty - lmatch - lassign (consider to remove, as it overlaps for name and features with identical Tcl core command) - read_file - wrap - wrapline Changed 'makeurl' documentation to account for new features recently committed 2011-09-06 Massimo Manghi * src/apache-2/mod_rivet.c: Add Id svn keyword. * src/apache-2/TclWebapache.c: Command load_env and load_headers now resolve the array name parameter following the default method (removed TCL_NAMESPACE_ONLY flag that prevented creation of an array in a proc's scope). Still default values for the arguments create such arrays in the ::request namespace * src/apache-2/rivetCode.c: preprocess macros ENV_ARRAY_NAME and HEADERS_ARRAY_NAME modified to explicitly put in ::request namespace the default arrays. Procedure Rivet_MakeURL chages so that command 'makeurl' now accepts relative paths and prepends them with the value of the SCRIPT_NAME environment variable. When run without arguments 'makeurl' returns the value in the SCRIPT_NAME env variable. 2011-06-03 Massimo Manghi * tclconfig/ltmain.sh: new version shipped with libtool 2011-06-01 Massimo Manghi * tclconfig/libtool.m4: autoconf 2.68 has a new IF..ELSE.. statement in m4 macros and libtool.m4 needs to get along it. New version copied into tclconfig. 2011-05-09 Massimo Manghi * src/apache-2/mod_rivet.c: fixed misleading error message displayed when rivet_abort_script fails 2011-05-05 Massimo Manghi * configure.ac: APACHE_VERSION returns an error message for--with-apache-version=1. * src/apache-1/: removed from trunk 2011-04-14 Massimo Manghi * src/Makefile.am,src/apache-2/Makefile.am: Add target install-data-hook with command line for removing unneeded .la files from target directories * configure.ac: doc/convert_examples.tcl is generated from template: added to AC_CONFIG_FILES * debian/changelog,debian/control: changed to reflect improvement in the script for Debian 2011-06-07 Massimo Manghi * rivet/init.tcl: because of bug #3216070 of Tcl we cannot preload rivetlib, so it doesn't make sense to import the rivet namespace, because we cannot have all the command set loaded in and an import has to be done for them in the application scripts * rivet/rivet-tcl/incr0.tcl: Tcl8.5 provides identical functionalities, so this command is now aliased in the interpreter by the native incr command. * rivet/rivet-tcl/tclIndex: recreated 2011-04-06 Massimo Manghi * configure.ac: Added doc/convert_examples.tcl to files created from its .in template 2011-04-03 Massimo Manghi * doc/convert_examples.tcl.in,doc/convert_examples.tcl: Added script to convert code examples from their native form to a sgml escaped form. * doc/Makefile.am: Target 'examples' added * doc/xml/install.xml: Expanded --with-apxs explanation. * doc/README: expanded with instructions for adding new examples to the docs. 2011-04-01 Massimo Manghi * doc/: new directory doc/examples-sgml. This is the directory where examples ready for inclusion in the manual must stay. The directory doc/examples is now meant to keep examples suitable for actual test and exectution * doc/convert_examples.tcl: New procedure that check for changes in doc/examples and, if needed, creates/recreates the corrisponding file in doc/examples-sgml escaping characters 2011-03-03 Massimo Manghi * rivet/rivet-tcl/*.tcl: all the commands in here moved into ::rivet namespace. File tclIndex recreated * doc/xml/directives.xml,doc/xml/commands.tcl: Documentation changed to reflect the new scoping of the command set. Commands in rivet-tcl/ not yet documented have been briefly explained with some examples. * src/apache-2/mod_rivet.[c|h],src/apache-2/rivetCore.c: changes in trunk merged into the rivet-namespace branch 2011-03-01 Massimo Manghi * src/apache-2/rivetCode.c: 'abort_code' command is now created through the RIVET_CMD_OBJ macro 2011-02-18 Massimo Manghi * src/rivet.h,src/apache-2/rivetCore.c,src/rivetPkgInit.c: Core commands namespace is now '::rivet' and the package provided by the core module is "::rivet". Also package RivetLib was renamed as 'rivetlib'. 2011-02-14 Karl Lehenbauer * src/apache-2/mod_rivet.c: Only create root interpreter once, not twice. In Rivet_CopyConfig cache_size and cache_free were getting copied twice. Only once now. * src/apache-2/rivetCore.c: Remove unused command var from Rivet_Upload. Remove unneeded loglevel var from Rivet_LogErrorCmd. 2011-02-14 Massimo Manghi * src/apache-2/mod_rivet.[h|c],src/apache-2/rivetCore.c: Removed loading of RivetLib by default. Getting RivetLib into the module keeps Apache to segfault in other calls. In order to gain access to commands provided by RivetLib (formerly called Rivet) a 'package require RivetLib' must be in a Rivet script or in one of the initialization script (e.g. ServerInitScript ChildInitScript or GlobalInitScript). Notice: RivetLib exports the commands to the '::Rivet' namespace. * src/rivetCrypt.c, src/rivetWWW.c, src/rivetList.c: they now export their commands to the '::Rivet' 2011-02-11 Massimo Manghi * src/apache-2/mod_rivet.[c|h]: new conf scripts rivet_abort_script and rivet_force_script. rivet_abort_script is run when an abort_page command is called in the page content generation * src/apache-2/rivetCode.c: add new command abort_code that returns the code passed to abort_page 2011-02-08 Massimo Manghi * src/apache-2/rivetCore.c: call to Rivet_InitWWW to include into Rivet's core the commands provided in src/rivetWWW.c * src/apache-2/mod_rivet.c: the inclusion into the module of RivetLib through Tcl_PkgRequire proved to cause segfaults in Rivet_ServerConf. The commands in rivetWWW.c are temporarily loaded by rivetCore.c * src/apache-2/Makefile.am: build of mod_rivet.so includes also code from src/libWWW.o 2011-02-07 Massimo Manghi * branches/rivet-namespace: new branch to experiment with the Rivet namespace and Rivet package * src/rivetPkgInit.c: Provides RivetLib package now when loaded by mod_rivet. Commands are now in the ::Rivet namespace * src/rivet.h: new macro RIVET_OBJ_CMD creates a command in the ::Rivet namespace and puts the command object on the namespace export list * src/apache-2/mod_rivet.h: the globals structure now holds a pointer to the Tcl_Namespace object representing ::Rivet namespace * src/apache-2/rivetCore.c: commands are now created with the RIVET_OBJ_CMD macro * rivet/init.tcl: provides package RivetTcl 2.1. This makes possible to consistently peek the init.tcl associated to the module. Command 'incr0' is now aliased by Tcl standard 'incr' * rivet/apache-2/mod_rivet.c: Rivet_PerInterpInit loads package RivetTcl 2.1 and package RivetLib 1.2. the latter ships the commands in rivetWWW.c rivetCrypt.c and rivetList.c * rivet/rivet-tcl/tclIndex: Command 'incr0' removed (see init.tcl) 2011-01-31 Massimo Manghi * configure.ac: default value for directive SeparateVirtualInterps changed to 'yes'. * VERSION: version number set as 2.1.0r1 ('r' is for 'revision') * doc/xml/directives.xml: New directive ServerInitScript is documented. 2011-01-23 Massimo Manghi * src/apache-2/mod_rivet.[c|h]: Created new ServerInitScript configuration directive: it assigns rivet_server_init_script with a script run in Rivet_InitHandler after configuration has been built and before server children are forked. A master interpreter is created in Rivet_InitHandler. Children interpreters should hopefully be pure clones of this interpreter created by 'fork' 2011-01-09 Massimo Manghi * configure.ac: fixed AC_DEFINE_UNQUOTED macro call for definition of proprocessor symbol RIVET_MAX_POST, an integer valued symbol which was put in quotation marks. File indentation was fixed and tabs replaced with spaces 2010-12-03 Massimo Manghi * configure.ac: new macros to set default values of configuration parameters. * src/apache-2/mod_rivet.c,mod_rivet.h: Default values are set in rivet_config.h through autotools. The Tcl Rivet environment is now loaded from mod_rivet by calling Tcl_PackageRequire("RivetTcl","1.1"); after auto_path is properly set. Configuration scripts are now stored in Tcl_Obj objects * doc/xml/install.xml: Add documentation for new 'configure' switch. * rivet/init.tcl: the path to RIVETLIB_DESTDIR is added to auto_path in mod_rivet. 2010-12-02 Massimo Manghi * debian/libapache2-mod-rivet.*,debian/changelog: removed redundant lines from postist script (Debian package) * rivet/rivet-tcl/cookie.tcl: add command "cookie unset" * contrib/form.tcl,contrib/README: add a form.tcl based on TclOO. New README explanatory file * doc/xml/commands.xml: new command "cookie unset" explained 2010-10-27 Massimo Manghi * branches/2_0: changes done in branches 2_0 reintegrated into trunk. This implied the following changes in trunk * debian/[clean,docs,*.substvars,dirs,files,install]: not needed, hence removed from repository * debian/[changelog,copyright,rules]: files changed to produce a clean package out of the source tree * VERSION,configure.ac: version number bumped up to 2.0.2 * doc/rivet-chunk.xsl: obsolete and misplaced copyright statement removed 2010-10-20 Massimo Manghi * debian/[clean,install,docs,dirs]: removed because not needed or redundant * debian/copyright: completed to include also the Tcl license. Added copyright notes for stuff in win/ 2010-10-19 Massimo Manghi * debian/control,debian/Makefile.am: Minor adjustments to debian/control to fulfill Debian policy * debian/libapache2-mod-rivet-doc.docs: the 'contrib' directory is installed now in this package. * src/apache-2/rivetCore.c: In Rivet_ApacheTable the variable table is initialized to NULL to silence a compilation warning * doc/Makefile.am: the 'distclean' target must remove the Makefile * Makefile.am: rivet_config.h removal added to 'distclean-local' 2010-10-18 Massimo Manghi * rivet/packages/tclrivet/parse.tcl: add svn:executable property as suggested by the debian consistency scripts * debian/*: more changes to remove unnecessary files from the binary packages of Debian 2010-10-14 Massimo Manghi * debian/: more adjustments in the way of getting a working setup for Debian. Some information was moved to make it 'package specific'. More tweaking on debian/control and /debian/changelog 2010-10-13 Massimo Manghi * src/buildscripts: trying to keep the source tree as tidy as possible. src/buildscripts/* are removed because they were\ then initial and later abandoned Rivet build scripts * branches/2_0/src/buildscripts: removed also from the branch development * branches/2_0/debian/*: merging the debian scripts largely rewritten in trunk. Added control files to build 2 packages for debian (binary module and docs) 2010-10-11 Massimo Manghi * tclconfig/config.sub,tclconfig/config.guess: Debian package build system signalled that these 2 files were too old and suggested to update them with newer versions shipped by automake-1.11 * debian/*: various stuff was changed trying to shape scripts to make debian packages as uneventful as possible * doc/Makefile.am: The 'clean' target in doc/Makefile was renamed as 'distclean'. HTML files are deleted only when a deep cleaning is required. 2010-10-07 Massimo Manghi * debian/*: various changes that fix some consistency faults in the debian packages 2010-10-06 Massimo Manghi * debian/*: most files in this directory have been modified to comply with the latest version of debian packaging system. Some files were deleted because superseded by others which have been added to produce 2 separate packages: one for the module and the Tcl library, the other for the html manual. 2010-09-20 Massimo Manghi * debian/*: changing some info in files needed by the debian 2010-09-18 Massimo Manghi * debian/*: files modified and added in the process to build a debian package * doc/Makefile.am: comments added. Better target handling 2010-09-15 Massimo Manghi * debian/README.Debian, debian/rivet.load: add files needed to build a Debian package * debian/rules, debian/changelog, debian/control: experimental versions of files needed by .deb packages 2010-09-14 Massimo Manghi * doc/html/*: directory removed from repository * doc/Makefile.am: New targets for creating the doc/html/ directory and copying new or modified graphic files from doc/images to doc/html/images 2010-08-30 Massimo Manghi * doc/images: Graphics displayed in the manual is copied in this directory. This is a first step in the transition to a manual generation procedure that should achieve a cleaner repository structure 2010-08-26 Massimo Manghi * configure.ac: removed AC_DEFINE(BUILD_rivet....) as the tcl.m4 providing TEA 3.9 makes redundant this definition. Argument to TEA_INIT changed accordingly * tclconfig/tcl.m4: overwritten by the new tcl.m4 and made a couple of adjustments that make it autoreconf/autoheader friendly. 2010-07-20 Massimo Manghi * doc/examples/rivet_web_service.tcl,doc/html/*.html: Improved example of Ajax servlet. Manual changed accordingly. 2010-07-18 Massimo Manghi * src/apache-2/mod_rivet.c: static void ap_chdir_file renamed as static int Rivet_chdir_file. Rivet_chdir_file returns the value returned by chdir. This value is checked and in case of error the request aborts with an HTTP_INTERNAL_ERROR and a message is printed in the log file. * VERSION,configure.ac: version number changes as 2.0.1 (temporarily) 2010-07-13 Massimo Manghi * doc/rivet.xml,doc/html/*.html: Latest minor changes before releasing * VERSION,configure.ac: Release number changed as 2.0.1 2010-07-12 Massimo Manghi * branches/2_0: Merge of trunk changes into the 2_0 branch. 2010-07-12 Massimo Manghi * rivet/packages/calendar/calendar.tcl: new comments added. Fixed misspelled -errorinfo option in a return statement. * rivet/packages/session/session-create.sql: columns 'key' and 'package' are renamed as 'key_" and 'package_'. * rivet/packages/dio/dio_Postgresql.tcl: fixed typo in variable name * doc/xml/calendar.xml: More correction made on calendar.xml * doc/html/*.html: The whole manual has been rebuilt with the latest changes 2010-07-07 Massimo Manghi * INSTALL: improved installation instructions before merging trunk into branches/2_0 2010-07-03 Massimo Manghi * rivet/package/calendar/calendar.tcl: Add check on tcl version. If Tcl8.4 is being used we also need 'dict' backport as Calendar uses a dictionary to store some internal data. * doc/xml/calendar.xml: Wrong header corrected. Added explicit note about the requirements of the package 2010-07-03 Massimo Manghi * rivet/packages/calendar/calendar.tcl: Fixed indentation in weekdays row * doc/html/: Manual pages regenerated to include latest changes in section about package Calendar 2010-07-02 Massimo Manghi * rivet/packages/calendar/calendar.tcl: Add experimental package Calendar 2010-07-02 Massimo Manghi * doc/html/calendar.html, doc/html/xml_calendar.html: Add html manual pages for Calendar * doc/xml/calendar.xml: more changes to calendar.xml 2010-07-02 Massimo Manghi * doc/xml/calendar.xml: Add manual page for package Calendar (package still to be added to repository) * doc/xml/form.xml: Page for package 'form' written with a more structured docbook organization that allows finer styling of a manual page. * doc/rivet.xsl: Add xsl configurations for elements refsect1,refsect2 and refsect3 * configure.ac: Add message when building for Apache 1.x 2010-07-01 Massimo Manghi * doc/xml/Makefile.am: removed target 'html/rivet.html" from 'docs' depends. The no-chunks version of the manual can be build running 'make docs-nochunk' 2010-06-30 Massimo Manghi * doc/xml/form.xml: Add 'checkbox' subcommand documentation * doc/html/*.html: Updated manual pages 2010-06-30 Massimo Manghi * rivet/packages/form/form.tcl: fixed various methods in package form: 'field' method must treat checkboxes and radiobuttons alike, so that labels are printed next to the button. 'radiobuttons' specialized method should not propagate the '-labels' switch to the attributes of the tag. * doc/rivet.xml: add new documentation in file doc/xml/form.xml * doc/xml/form.xml: add to repository * doc/html/form.html,doc/html/form_package.html: add to repository * doc/html/*.html: new manual pages including the form package 2010-06-22 Massimo Manghi * Makefile.am: Rivet install target deletes every pkgIndex.tcl file that might have been left around in the Rivet directory tree, before calling pkg_mkIndex.tcl to regenerate the library index file in the root directory. * rivet/packages/tclrivet/parse.tcl,rivet/packages/commserver/server.tcl: add existence test on argv variable that wept during the installation process. If not set exits silently (variable is required for a sensible use of the procedures) * rivet/packages/tclrivet/tclrivet.tcl: wrong path to librivetparser.[so|dll] corrected 2010-06-19 Massimo Manghi * src/apache-2/mod_rivet.c: filled SERVER_CONF variable in the 'server' array with value generated by the build system of the directory holding the conf files. This fulfills a TODO comment in the code. The array server is undocumented and is not clear if it was added for the benefit of the programmer or for debugging of the module. * src/apache-2/mod_rivet.h: structure definitions beautified and aligned. 2010-05-14 Massimo Manghi * BUGS,INSTALL,Changelog: small improvements in the documentation 2010-05-14 Massimo Manghi * tclconfig/install-sh: the install-sh script is replaced with the same script shipped with automake-1.11 2010-05-13 Massimo Manghi * src/apache-1/TclWebapache.c: call to ap_send_http_headers centralized in TclWeb_SendHeaders * src/apache-2/TclWebapache.c: bugfix for string assigned to the content_type field that has to be duplicated to preserve from memory deallocation by Tcl, includes to modules from apache APR library added, call to ap_send_http_headers centralized in TclWeb_SendHeaders 2010-04-29 Massimo Manghi * src/apache-2/apache_multipart_buffer.c: Add include to silence a compilation warning. * src/apache-2/apache_multipart_buffer.h: set svn property to enable $Id: keyword expansion * doc/xml/session.xml: Commented line about a 'CookieDomain' command of Session that appears to be non coded yet. To be added to the TODO file. 2010-04-29 Massimo Manghi * configure.ac,VERSION: Pre-branching operations: AC_INIT now uses 2.0.0 as version number to be used across the build system. Also the file VERSION has been updated to reflect the release number. 2010-04-27 Massimo Manghi * src/apache-1/TclWebapache.c,src/apache-1/rivetCore.c,src/apache-1/mod_rivet.c, src/apache-1/apache_request.c,src/apache-1/apache_multipart_buffer.c: changes and additions made for apache 2 added to the code for apache 1.x 2010-04-22 Massimo Manghi * rivet/init.tcl: add to auto_path the directory where init.tcl is located, as this is also the directory for package Rivet 2010-04-19 Massimo Manghi * tests/upload.[rvt|test]: fix upload message sent to server. The end boundary went undetected and Rivet added it to the uploaded file. Thus the problem affected only the test, not the module. Added delimiter to the returned message to allow easy spotting of an empty string. 2009-12-08 Karl Lehenbauer * rivet/packages/form/form.tcl, form.txt: Add new form methods for HTML 5 form elements "color", "date", "datetime", "datetime_local", "email", "file", "image", "month", "number", "range", "search", "tel", "time", "url", "week" 2009-11-03 Massimo Manghi * src/apache-2/rivetCore.c: in function Rivet_Upload the list of subcommands had 2 entries for 'tempname" leading Tcl_GetIndexfromObject to mismatch the entry for the 'names' subcommand with its numerical counterpart. This caused the child process to segfault when processing a 'upload names' command. 2009-11-02 Massimo Manghi * tests/apachetest/apachetest.tcl: apachetest::getallincludes failed to properly handle glob style file patterns. 2009-09-17 Karl Lehenbauer * rivet/packages/form/form.tcl, form.txt: Add a new form method, "button", that's just like "submit" except pressing enter doesn't cause it to be invoked. Add quick doc, form.txt, on the forms package. Terminate in form selectors. 2009-09-15 Karl Lehenbauer * rivet/packages/form/form.tcl: If the array containing default values for the form is passed in when the form is created (for instance: form myform -defaults response -method post), make sure form classes public variable "defaults" is set to that array name. 2009-09-03 Karl Lehenbauer * src/apache-2/rivetCore.c: Add new command, apache_log_error, which allows consistent logging to the Apache error log file. 2009-06-24 Karl Lehenbauer * acinclude.m4: Include m4/ax_prefix_config_h.m4 to define the AX_PREFIX_CONFIG_H macro. * tclconfig/libtool.m4, tclconfig/config.guess, tclconfig/config.sub, tclconfig/ltmain.sh: Freshened these files with the latest versions from libtool. * configure.ac, tclconfig/tcl.m4, tclconfig/ChangeLog, tclconfig/README.txt, tclconfig/install-sh: Updated to Tcl Extension Architecture (TEA) 3.7. 2009-05-05 Karl Lehenbauer * src/apache-2/mod_rivet.c: When Rivet is shutting down and per-vhost separate virtual interpreters were in use, the shutdown code deleted the master interpreter and all of the slave interpreters using Tcl_DepeteInterp(). This was an error as it should only delete the mater interpreter, as deleting the master interpreter causes its slaves to be deleted. It now does this. (Had it checked using Tcl_InterpDeleted to see if the interpreter was already marked as deleted, it probably would have been OK.) * src/rivetChannel.c - update Tcl channel handler to channel version 4. 2009-05-05 Karl Lehenbauer * Add new Rivet Tcl command,apache_table, which can query, get and set values in the Apache "notes", "headers_in", "headers_out", "err_headers_out" and "subprocess_env" tables. * Add new "upload" option "tempname" that'll return the name of the temporary file containing the upload. * When instantiating separate virtual interpreters, postpend an interpreter count to the self-created slave interpreter name, to keep Tcl_CreateSlave from failing if two or more virtual hosts have the same ServerName and don't have a port defined in the ServerName directive. * Detect and report failure of Tcl_CreateSlave rather than assuming it succeeded and dereferencing a null pointer when it didn't. Also added asserts to detect null interpreter pointer. * Slightly improved error messages when a child init or exit function fails. 2009-05-01 Karl Lehenbauer * Rename global request rec pointer from globalrr to rivet_panic_request_rec, add rivet_panic_pool and rivet_panic_server_rec, grabbing those values from Rivet initialization rather than request handling so that they are initialized enough that Rivet_Panic can use them. (Previously Rivet_Panic or Tcl_Panic at initialization time caused a null-pointer-dereference segmentation violation because no request was being served. In Rivet_Panic, avoid emitting the unparsed URI unless a request is being processed. 2009-04-27 Karl Lehenbauer * src/apache-2/mod_rivet.c: In Rivet_SendContent, when checking to see if the file doesn't exist, check r->finfo.filetype rather than r->finfo.protection. (The prior check failed to detect that the Rivet source file did not exist, causing zero length webpages to be sent rather than 404's.) 2009-01-16 Massimo Manghi * Makefile.am: Add DESTLIB variable handling as suggested by kikusz@gmail.com and accordingly with Automake directives for local install rules. 2008-12-21 Massimo Manghi * src/apache-2/rivetCode.c: add handling for subcommand 'tempname' 2008-12-15 Massimo Manghi * src/apache-2/TclWebapache.c: fixed test on configuaration flag 'upload_files_to_var' 2008-12-11 Massimo Manghi * src/apache-2/mod_rivet.c: fixed call to apr_strcat in function Rivet_ExecuteAndCheck (the corresponding call in the apache-1 code has been checked and appears to be correct). * doc/xml/internals.xml: Removed broken external link pointing to a no more existing gdb tutorial. 2008-12-03 Massimo Manghi * doc/rivet.xml: document timestamp is generated with the EXSLT datetime() function controlled through the element. The timestamp now reflects the actual time when the xsl processor is run, instead of time when the svn commit is carried out. * doc/rivet.xsl: customization added to make a list of examples appear at the end of the table of contents. * doc/html/*.html: manual pages rebuilt and committed to repository 2008-11-21 Massimo Manghi * doc/rivet.xml: file broken up into chunks containing the toplevel sections of the manual. For every file an xml entity was created. * doc/xml/*.xml: added xml files containing every toplevel section of the manual. * doc/Makefile.am: added dependency from xml/*.xml for html pages generation 2008-11-17 Karl Lehenbauer * src/apache-2/TclWebapache.c: Make TclWeb_UploadChannel open the uploaded file and make the file handle available through standard Tcl mechanisms, removing OS depdendencies. Make TclWeb_UploadData access the uploaded file through standard Tcl mechanisms, making the uploaded data available and also removing OS dependencies. Add TclWeb_UploadTempname to get the name of the temp file the uploaded file was saved to. Include apr_strings.h to remove compiler warning of implicit definitions of apr_pstrdup and apr_psprintf as well as multiple warnings about casts to pointer from integer of different size. Force rsc->upload_files_to_var to be set, temporarily, pending figuring out why the configuration directive to set that is not working. * src/apache-2/rivetCore.c: Check return from Tcl_GetIndexFromObj call in "upload" command processing (Rivet_Upload command). Return an error when the subcommand (channel, save, data, exists, size, type, filename, tempname, or names) is invalid. Add "tempname" option to "upload" command. "upload tempname" will return the name of the temporary file a file uploaded via a POST command was saved to. * src/apache-2/mod_rivet.c: Change "char *" arguments to Rivet_ServerConf, Rivet_DirConf and Rivet_UserConf to be "const char *" to bring them in line with what Apache expects, fixing compiler warnings warnings about "assignment discards qualifiers from pointer target type". Use a "void *" argument where expected in calls to AP_INIT_TAKE2 for Rivet_DirConf and Rivet_UserConf and do an assigment to the Rivet-desired types of rivet_server_conf to eliminate "initialization from incompatible pointer type" compiler warnings. Make Rivet_SetScript's script and string arguments be const char * instead of char *. * src/apache-2/apache_request.c: Change "char *error[1024]" to "char error[1024]" to fix "incompatible pointer type" error in the call to apr_strerror. * src/apache-2/apache_request.h - make temp_dir be a const char * instead of a char *. * src/apache-2/apache_multipart_buffer.c: Add include of apr_strings.h to remove compiler warning of implicit definitions of apr_pstrcat and warnings about casts to pointer from integer of different size (which occurred on 64-bit machines, anyway.) * doc/rivet.xml: added the "tempname" option to "upload". 2008-11-13 Massimo Manghi * src/apache-2/rivetCore.c: In function 'Rivet_Parse' the call to Tcl_FSStat was turned into the corresponding apr function 'apr_stat'. This change was motivated by a possibile mismatch between Rivet's allocation of the structure 'Tcl_StatBuf' and the handling of the structure done within the Tcl C library. This seems to have healed a pointer corruption that caused segfaults when the 'parse' command was executed. 2008-10-07 Massimo Manghi * src/apache-2/apache_multipart_buffer.c, src/apache-2/rivetCore.c, src/apache-2/TclWebapache.c,src/rivetChannel.c,src/rivetCrypt.c: Inclusion of config.h changed to reflect renaming of config.h. * configure.ac: new AX_PREFIX_CONFIG_H added to 'configure' generation. Added switch --enable-display-version for having Rivet's version printed in Apache signature * m4/ax_prefix_config_h: added macro for renaming config.h into rivet_config.h (or whatever we deem a good name for this file). Preprocessor symbols in this file are also prefixed with RIVET_ * Makefile.am: added handling of the macros in the 'm4' directory. * src/apache-2/mod_rivet.h: removed definition of preprocessor symbol for hiding version number in apache logs (feature now controlled in 'configure') * src/apache-2/mod_rivet.c: Changed preprocessor symbols that are now prefixed by 'RIVET_'. Moved misplaced #ifdef APACHE2 test. Maybe this test is useless as we certainly are building against APACHE2 when compiling this file 2008-09-06 Massimo Manghi * INSTALL: instructions for builing Rivet expanded with examples taken from real builds for Debian and Slackware. * src/apache-2/apache_request.[c|h]: removed TODO comments concerning ap_hard_timeout and ap_kill_timeout as these functions doesn't not exist anymore in the apache 2.x api. Added the Content-type as a new argumento to ApacheRequest_parse_multipart for parts boundary determination. The correctness of the content type has to be done before calling in order to do the check only once. Commented declarations of variables not used. The 'tempname' string is allocated now from the apache pool. Changed template for temporary file name generation. If apr_file_mktemp fails a more descriptive error is logged. * src/apache-2/apache_multipart_buffer.[c|h]: removed line in multipart_buffer_read that lead the buffer pointer to fail following the parsing process. Input buffer size changed to a larger and more common size of 8192 bytes 2008-08-30 Massimo Manghi * doc/rivet.[xml|xsl], doc/html/*.html: changed a couple of rule in rivet.xsl: they basically make example boxes a bit more flexible for html browsing and made their background color a bit more "neutral". I also made the character in them slighly smaller in order to have more space for code lines. 2008-08-28 Massimo Manghi * src/apache-2/mod_rivet.c: using the 'parse' command twice within the innermost nested level would trick rivet into treating the second template as a Tcl script. Condition on the flag 'toplevel' has been reintroduced in the on the file type (Rivet_ParseExecFile), but the whole mechanism has to be revised. Adopting a reverse logic in this test should achive the same result in more linear way if (Rivet_CheckType(req->req) == TCL_FILE) { ---> Tcl script } else { ---> Rivet template } 2008-07-03 Massimo Manghi * src/apache-1/mod_rivet.[c|h]: done modifications needed to replicate for the apache 1 code the functionalities added to the apache 2 module 2008-07-01 Massimo Manghi * src/rivet.h: added macro STRNEQU(s1,s2) which efficiently compares 2 strings. Unlike STREQU(s1,s2) this new macro compares at most strlen(s2) characters. * src/TclWeb.h: added charset field to TclWebRequest. This new property gets initialized to NULL every time this structure is instantiated. If used it stores a pointer to a string that specifies a header value fragment for the page being generated. * src/apache-2/TclWebapache.c: request_rec is treated as an opaque structure and the field 'content_type' is set by calling the ap_set_content_type apache core function * src/apache-2/mod_rivet.h: a 'honor_header_only_reqs' is added to the rivet_server_conf for handling of the HonorHeaderOnlyRequests configuration option * src/apache-2/mod_rivet.c: Every content_type is checked for possible charset specifications. When found this is stored in the TclWebRequest structure to be processed later. If a script or template doesn't set a content type on its own (with the 'headers type ' command) the charset is written in the http headers. Added support for the 'HonorHeaderOnlyRequests' switch. Other minor changes include better code formatting in some functions and commenting out some cruft left around. 2008-01-08 Massimo Manghi * rivet/packages/dio/dio.tcl: auto_path shouldn't be set or modified outsite init.tcl * rivet/init.tcl: We want the Tcl code specific to an installation to take precedence over other Tcl packages or other versions of the same stuff. Therefore I put the references to the rivetlib directory in the first positions in auto_path. 2008-01-07 Massimo Manghi * src/apache-2/TclWebapache.c: Fixed timestamp printed in the DATE_LOCAL and DATE_GMT fields of the environment table. * src/apache-2/mod_rivet.h: Fixed definitions for RIVET_INIT and RIVET_DIR. I couldn't fix SERVER_CONF though 2008-01-06 Massimo Manghi * Makefile.am: target 'uninstall-local' added. Stuff in RIVETLIB_DESTDIR gets removed upon deinstallation * rivet/packages/dio/dio_Mysql.tcl: small fixes for 2 methods. In method 'open' the switch '-host' was not handled. In method 'exec' the handling of 'select' queries has been changed because the previous method failed in certain circumstances (queries build with lists) * src/apache-[1|2]/mod_rivet.c: Status returned by Tcl_EvalFile is now checked explicitly against TCL_ERROR * doc/html/*.en.html: Html pages regenerated after changes in rivet.xml * src/rivetCore.c: Moved into src/apache-1. This file was compiled by src/apache-1/Makefile.am, whereas src/apache-2 had its own rivetCore.c module. * src/apache-1/Makefile.am: Changed to reflect rivetCore's new location. rivetWWW.c removed from module's compilation: stuff in it has to be loaded into the interpreter with 'package require Rivet' * src/apache-2/Makefile.am: Reordered list of files to allow better comparison with apache-1 build. 2008-01-05 Massimo Manghi * src/apache-[1|2]/mod_rivet.c: Added comments as per David Welton's suggestion. 2007-12-03 Valery Masiutsin * tests/apachetest/: multiple changes has been made to tests to get them working with apache2 * src/apache-2/mod_rivet.c, src/apache-2/apache_multipart_buffer.c: fixes for issues that has been discovered with tests, mostly there were problems with multipart buffer parsing during POST * configure.ac: minor issue with apache includes handling has been fixed 2007-11-18 Massimo Manghi * doc/rivet.xml: note added to description of commands listed in the 'Rivet' package. 2007-11-05 Massimo Manghi * configure.ac: the macro rivet_target_dir was added to 'configure'. This macro generates a name for the directory where Rivet libraries must be copied during the installation phase. User is enabled to change the default value by feeding 'configure' with the switch '--with-rivet-target-dir'. This macro defines also the variable RIVET_TCL_TARGET and calls AC_SUBST on it. The target directory gets inserted also in the auto_path list variable of every script run by the module. Defined configuration symbol RIVETLIB_DESTDIR in config.h. * Makefile.am,src/Makefile.am: RIVET_TCL_TARGET variable propagation. * src/apache-1/Makefile.am: rivetWWW.c removed from linking into mod_rivet.so (this requires docs to be updated, as commands in this file have to be loaded explicitly using 'package require Rivet') * src/apache-1/mod_rivet.c: Tcl_DeleteInterp called upon child exit. ${RIVETLIB_DESTDIR)/init.tcl is run during the interpreter initialization. * src/apache-2/mod_rivet.c: Exit handler reenabled, and Tcl_DeleteInterp called upon child exit. ${RIVETLIB_DESTDIR)/init.tcl is run during the interpreter initialization. Code clean up in Rivet_GetConf. Minor changes in order to get rid of some compilation warnings. * src/apache-2/TclWebapache.c: Test checking for null values in the table of environment variables has been extended to the value field. Failure to do so caused a child to segfault when rivet was used in conjuction with dir_module 2007-10-19 Massimo Manghi * src/apache-2/mod_rivet.c: Included a more correct statement in aknowledgement of mod_ruby (BSD license) for the code in ap_chdir_file. * ChangeLog: the whole batch of patches described in the previous entry (2007-10-17), came from Valery Masiutsin . I forgot to mention it in this document. My fault. 2007-10-17 Massimo Manghi * configure.ac: added APACHE2 define to config.h, added also a message when the apxs program is found. * doc/Makefile.am: 'clean' target fixed * src/apache-2/Makefile.am: added -I"." to the INCLUDE symbol * src/apache-2/mod_rivet.c: Changed function that determines if this is a request rivet must serve. We now correctly rely on the module configuration and on the headers handed on to us by apache. Added also a ap_chdir_file implementation. This function was dropped by the apache developers: we are reintroducing it using a code snippet inspired by mod_ruby. * src/apache-2/apache_request.h: Changed prototype of ApacheRequest_tmpfile function to return apr_file_t instead of FILE, also modified ApacheUpload structure * src/apache-2/apache_request.c: ApacheRequest_tmpfile rewritten using calls to apr_* functions * src/apache-2/TclWebapache_c: TclWeb_UploadSave in a more robust way using apr_* calls 2007-10-14 Massimo Manghi * doc/rivet.xml: Front page updated, page for the 'load_response' command updated and extended, link to the Italian and Russian translations removed, html pages in Italian and Russian removed from repository * rivet/rivet-tcl: new 'load_response.tcl'. This version deals in a more consistent way with the case of parameters that receive multiple values (see docs) 2007-10-12 David N. Welton * doc/rivet.xml: Fixed "dio" id's. 2007-10-11 David N. Welton * doc/rivet.xml: Added missing ID's. * doc/Makefile.am (docs): Removed Russian and Italian translations from the build. * doc/norefchunk.xsl, doc/refentry.xsl: Ditch fancy-pants XSLT stuff. 2007-09-19 Massimo Manghi * configure.ac: TEA_INIT argument was changed to 3.6 to match the new TEA version in the tcl.m4. Macro for --with-apache was simplified. Macro for --with-apxs changed in order to check for possible multiple version of apxs installed. Defined compilation parameters generated by apxs. Same for apr-1-config that returns compilation parameters for apr. * Makefile.am src/Makefile.am src/apache-[12]/Makefile.am: changed to handle new symbols and parameters * src/apache-1/mod_rivet.[hc] rivet version logging enabled: I enabled this to check if I was loading the expected module but maybe can be used to generate, at least for the code in trunk, more refined version numbers to be used in the development cycle. * src/rivetCore.c: added call to initialize commands in rivetWWW. 2007-09-09 David N. Welton * src/apache-2/Makefile.am: Another patch from Valery Masiutsin : Propagated variables from configure.ac, did some cleanups. * src/apache-1/Makefile.am: More of Valery's patch: Propogate variables from configure.ac. * configure.ac: More of Valery's patch: Separated cases for apache-1 and apache-2 in APACHE function. Added handling for apache-2 for platforms i am developing on. Probably it will need to be unified later. Touched CHECK_APXS a bit. Replaced APR_INCLUDES function with APR_HANDLING, now we are requiring full path for apr-1-config and getting cppflags and includes from it. APR tool has platform specific set of cppflags, just includes is not enough. Added GET_RIVET_BASE function, which allows us to get rid of relative pathes in include flags. Rearranged functions a bit - mostly to find out version of apache we are building for, before doing any substitutions. * src/Makefile.am: More of Valery's patch: Propagated variables introduced in configure.ac. * src/apache-2/mod_rivet.c (Rivet_TranslateUri): More of Valery's patch: Changed a bit Rivet_ParseFileArgString a bit, it fixed segfaults, but still needs some work. I've added apr_pool_t pointer to parameters we are passing to function. 2007-08-29 David N. Welton * src/apache-1/Makefile.am: Another patch from Valery correcting a mistaken application of his patches on my part. 2007-08-27 David N. Welton * configure.ac: Added missing quote. * configure.ac: Another patch from Valery, making compilation smoother on Debian. * src/apache-1/Makefile.am: Accepted patch from Valery for improved compilation. * src/apache-1/apache_multipart_buffer.c: Accepted patch from Valery to make this file compile. * tclconfig/tcl.m4: Moved to latest tcl.m4 at Valery's suggestion. 2007-08-22 David N. Welton * configure.ac: Added patch from Valery Masiutsin improving the configure setup. 2006-07-03 Karl Lehenbauer * rivet/packages/dio/dio_Postgresql.tcl: when handling a PostgreSQL result, if numrows is zero, see if cmdTuples (Pg_result $resultHandle -cmdTuples) contains anything, and if it does, put that in of numrows, hiding a PostgreSQL interface quirk from DIO. 2006-06-07 David N. Welton * rivet/packages/session/session-create-mysql.sql: Minor update from Massimo Manghi for Mysql 4. * rivet/packages/session/session-class.tcl: Minor update from Massimo Manghi. 2006-05-14 David N. Welton * rivet/packages/session/, rivet/packages/dio/: Added Mysql and Oracle session creation packages. Updates to dio and session packages. Modifications to the Mysql driver. Added an Oracle driver. Thanks to Arnulf Wiedemann (arnulf@wiedemann-pri.de) and Massimo Manghi (manghi@biol.unipr.it). 2006-02-03 Karl Lehenbauer * rivet/packages/dio/[dio,diodisplay].tcl: Uncovered a serious flaw in DIO -- there is no way to update a row in a way that changes the key value. As a result, DIOdisplay punts and deletes the row then reinserts it with the new key. This is not the same thing as the delete can trigger integrity checks that fail because of constraints from other tables. Added the somewhat kludgey update_with_explicit_key method to let us specify the key rather than having the key always be dug out of the data array (so that the key in the data array can be different) and altered the row edit code in DIOdisplay to use this rather than doing the delete/insert thing. 2006-01-25 Karl Lehenbauer * rivet/packages/dio/diodisplay.tcl: When editing, made select boxes have the current value selected by default. 2006-01-14 Eckhard Lehmann * configure.ac: edited for 2 directories src/apache-1 and src/apache-2 to be the source directory for either Apache1.x or Apache2.x. Added new autoconf macros to check for apache base directory, apache/apr include directories (on debian for instance, they are in /usr/include/apache1.3 resp. /usr/include/apache2 and /usr/include/apr-0) and apache version ( --apache-version=1 or --apache-version=2). According to the macros, the sources either in src/apache-1 or src/apache-2 are compiled. * src/: put all sources for rivet for Apache1.x into a subdirectory apache-1, left the Makefile.am unchanged. Copied the files to a subdirectory apache-2 and started port of rivet to Apache2.2 with these files. * Checked in by davidw. 2005-12-12 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Reverted change to "store" method that removed fields from the store array that were part of the key and took out this behaviour from the update method. The problem was that "DIO store" or "DIO update" could cause fields to disappear from the data array as a side effect, and the caller had no reason to expect that, hence it broke some code. 2005-11-08 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Add new "update" method that works just like "store" except that it assumes you're doing an update and, unlike store, does not check to see if the row is already there or not. Also modified the "store" method, when doing an update, to not attempt to change row fields that are specified in the where clause. * doc/rivet.xml: Documented all undocumented public DIO methods, such as count, db, forall, interface, insert, makekey, quote, search and update. 2005-11-08 Pat Thoyts * win/makefile.vc: Update for new version. * win/Rivet.nsi: Update for new version. * src/apache_request.c: Cast aways some warnings. * src/rivetCore.c: Make it work with MSVC (wierd bug). * src/TclWeb.h: Declare TclWeb_GetRawPost (MSVC complains). 2005-11-03 David N. Welton * src/Makefile.am (lib_libexecdir): Install everything to rivet@VERSION@. * tests/runtests.tcl (runtests_usage): Check for utf-8 environment - this causes some problems with a number of tests. I'm not sure precisely why, but it causes a large portion of otherwise successful tests to choke. 2005-10-31 David N. Welton * doc/rivet.xml: Woops, fix spelling error: Seperate->Separate. 2005-10-01 David N. Welton * rivet/pkgIndex.tcl: Added a package index here so that when used for tests, something exists. * tests/runtests.tcl: Add local path to TCLLIBPATH, add CoreDumpDirectory so that we can get any core files generated by bad tests. * src/mod_rivet.c (Rivet_PerInterpExit): Run any per-interp child exit things that need taking care of. (Rivet_ChildExit): Walk through the list of interpreters and do any shut down work necessary prior to shutting the whole thing down. * src/rivetChannel.c (outputproc): If the AssocData is NULL, we don't try and output anything. This is probably some residual data stuck in the channel. 2005-09-29 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Fix typo in "DIO insert" method 2005-09-25 Karl Lehenbauer * src/rivetCore.c, src/mod_rivet.c, src/mod_rivet.h: Updated code comments. In particular, every function in src/mod_rivet.c now has a standard header. * rivet/rivet-tcl: README, cookie.tcl, debug.tcl, html.tcl, import_keyvalue_pairs.tcl, import_switch_args.tcl, incr0.tcl, lassign.tcl, lempty.tcl, lmatch.tcl, load_cookies.tcl, load_response.tcl, parray.tcl, random.tcl, read_file.tcl, rivet_command_document.tcl, wrap.tcl: Updated code comments and added subversion "Id" tags where they weren't present. 2005-09-23 David N. Welton * genconf.sh: Added autoheaders. * doc/Makefile.am (docs): Documentation is now its own target - this means it doesn't get run as part of 'all'. 2005-09-22 Karl Lehenbauer * rivet/packages/dio/dio.tcl: "DIO insert" method is much more efficient than "DIO store" when you know you want an insert and not an update and now actually works. * README.MacOSX: GNU autoconf/configure script does not actually work to make the Rivet module on Mac OS X so the README has been reverted to show it the old-school way using the Tcl build scripts. 2005-08-21 David N. Welton * doc/html/rivet.css: CSS tweaks for documentation. * doc/rivet.xml: Updated build directions to ./configure ; make ; make install. * src/rivetCore.c (Rivet_Upload): Fixed a line that is complained about in newer GCC's (casting lvalues). 2005-08-19 David N. Welton * src/mod_rivet.c (Rivet_InitTclStuff): Use both the hostname and the port in creating names for the slave. This fixes a bug where you have different virtual hosts running on the same server name but different ports. 2005-08-13 David N. Welton * tests/apachetest/apachetest.tcl: Make sure we get our own version of http.tcl. Tcl Feature request 928154 means that we need our own copy of http.tcl for now. * tests/runtests.tcl (runtests_usage): Print out an error message if the arguments aren't right. Fixed paths to load .so files, as the auto tools put them in a different place. * tests/apachetest/apachetest.tcl (apachetest::getbinname): Check to make sure the server is executable. * src/apache_request.c (ApacheRequest_parse_urlencoded): Patch from Arnulf Wiedemann to allow XML POST data. * src/rivetCore.c (Rivet_RawPost): Tcl command implementation to fetch raw POST data or an empty string if none is available. * src/apache_request.h: Added element to struct, and accessor function. * src/apache_request.c (ApacheRequest_parse_urlencoded): Save a pointer to the raw data. * src/TclWebapache.c (TclWeb_GetRawPost): Added a raw POST data fetcher here. 2005-08-12 David N. Welton * configure.ac: Bump the version to 0.6.0. * src/apache_request.c (ApacheRequest_parse_multipart): Added code from httpd-apreq that supposedly deals with a problem in Opera file uploads. 2005-08-01 Karl Lehenbauer * : abort_page was, for all intents and purposes, completely and utterly broken -- it forced a return from whatever called it, as if it was a "return" statement, but it didn't stop evaluating Tcl beyond that, which was broken, and it discarded output by setting an "aborted" flag in Apache which, under certain circumstances caused browsers to render blank pages, apparently related to keep-alive connections. It now works correctly by causing the interpreter to stop interpreting, and doesn't mess up keep-alive connections, etc. How it does this is it unwinds the interpreter by generating an error with the errorCode set to "RIVET ABORTPAGE". The error handling code in Rivet checks for this, and if this is received, it completes the page in the normal manner without executing the user-registered or built-in error handlers. One potential incompatibility is that abort_page's execution can now be caught with Tcl's "catch" routine, although this could also be considered a feature -- Rivet coders who use "catch" should check errorCode to see if the first element of the list is RIVET and the second is ABORTPAGE and either regenerate the abort_page, pass the error up, or handle it in some custom manner in their catch handler. 2005-07-15 David N. Welton * src/mod_rivet.c (Rivet_ServerConf): Use Tcl_GetBoolean on the *val*, not the *var*. Big difference! 2005-06-14 Karl Lehenbauer * configure.ac, src/Makefile.am, tclconfig/config.guess, config.sub, ltmain.sh: Updated with libtoolize 1.5.18 -- Rivet now builds cleanly under Mac OS X. 2005-06-06 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Delete now returns the number of records that were deleted rather than just a 1 if it deleted one or more and a 0 if it didn't. The forall method now does the forall on the result handle prior to checking for an error, in case an error occurs inside the forall. From Peter da Silva. * rivet/packages/dio/dioSQLite.tcl: SQLite implementation for DIO. From Peter da Silva. 2005-04-14 Pat Thoyts * win/Makefile.vc: Update the makefile and installer script * win/Rivet.nsi: for the 0.5.0 release. 2005-03-24 David N. Welton * Makefile.am (EXTRA_DIST): Added the doc, rivet and debian directories to the distribution. 2005-03-23 David N. Welton * doc/norefchunk.xsl: Removed chunk-first-section-with-parent and chunk-all-sections. * genconf.sh: Updated to use 1.8 autotools. 2005-03-12 David N. Welton * src/mod_rivet.c (Rivet_SendContent): Use static objects for scripts that are used for each request, in order to keep reusing them. (Rivet_PerInterpInit): Switch back to using Tcl_PkgRequire. 2005-01-08 Karl Lehenbauer * rivet/packages/dio/diodisplay.tcl: Accept arguments to the showform_prolog method that are passed through to the form's start method. This allows things like naming the form and accessing the fields from javascript by name. * rivet/packages/form/form.tcl: Allow start method to take key-value arguments that will be expressed in the
tag. 2005-01-07 Karl Lehenbauer * /rivet/packages/dio/diodisplay.tcl: Factor showform prolog and epilog code into showform_prolog and showform_epilog methods so that when a derived DIODisplay class is overriding, for example, an Add or Edit method, the author doesn't have to dup all of showform's functionality. * rivet/packages/form/form.tcl: Commented the package. 2005-01-03 David N. Welton * doc/rivet.xml: Use 'mail-archives' instead of nagoya. 2004-12-22 David N. Welton * Makefile.am (install-data-local): Added this target to install the Tcl packages and generate a pkgIndex.tcl file. 2004-12-16 David N. Welton * src/Makefile.am (lib_libexecdir): Did some rearanging of things to get the directories in a better state. * configure.ac: Added TCL_PACKAGE_PATH. 2004-12-14 David N. Welton * doc/Makefile.am: Added html doc targets. 2004-12-08 David N. Welton * Makefile.am, configure.ac: Added the doc/ directory. 2004-12-07 Karl Lehenbauer * rivet/packages/dio/dio.tcl: "DIO delete" method now return the number of rows affected. 2004-12-03 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Cause fatal database errors such as bad syntax, etc, to raise a Tcl error in many methods that used to just return 1 or 0 (like DIO store). * configure.ac: Remove superfluous commented-out lines * Add BUGS file. Update STATUS and VERSION files. 2004-12-02 David N. Welton * Removed libtool - it appears to be under the GPL! * Removed aclocal.m4 configure Makefile.in src/Makefile.in to avoid CVS churn. * configure.ac: Commented out AC_DEFINE(USE_TCL_STUBS), as it was causing some problems for mod_rivet.so. 2004-12-02 Karl Lehenbauer * Collected some build notes in README.configure * : Clean up presentation of --with-apxs and --with-tclsh and have them show up when configure --help is run. * tclconfig/tcl.m4, configure.ac, config.h, src/*.c: Switch most autoconf-generated elements that get put on compiler command lines as -DHAVE_NET_ERRNO_H, etc, to put that stuff in config.h instead. This included altering all AC_DEFINE and AC_DEFINE_UNQUOTED macros to have three arguments, where the third argument is a description, so that autoheader can generate the config.h.in, significantly decluttering the compiler command lines. tcl.m4 changes should be fed back to the TEA project, as well as the technique for using automake to simplify the build * Move aclocal.m4 to acinclude.m4 -- we need the aclocal command to generate acinclude.m4 based on aclocal.m4 and stuff it gleans from the configure.ac script, etc. * configure.ac: A path to tclsh is automatically figured out by the TEA 3.1 build stuff. However it is also possible to override with --with-tclsh, and the configure script also makes sure there at least is a file there as well. * src/configure.ac et al: Get automake, aclocal, and autoconf to run without complaint, generating the configure script, Makefile.in files, etc. * configure.ac: Propagate the NAMEOFEXECUTABLE define via the autoconf scripts src/Makefile.am: (same) * configure: check in configure script, it's hard to make unless you have everything just right. We will probably revisit this later. * src/Makefile.in: (same) * Makefile.in: (same) * libtool: Added libtool and friends in tclconfig dir using libtoolize -- this is what figures out how to build shared libraries, etc. 2004-12-01 Karl Lehenbauer * Update autoconf build to TEA 3.1 * configure.am: Automatically locate apxs in the PATH if it hasn't been overridden by --with-apxs. Likewise automatically locate tclsh if it hasn't been overridden by --with-tclsh. * Add of README.freebsd for FreeBSD. 2004-11-17 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Fixed comments incorrectly placed outside of a switch body. 2004-11-11 Karl Lehenbauer * rivet/packages/dio/dio.tcl: Added "insert" method that doesn't try to see if it's there already all the other stuff that "store" does. * doc/rivet.xml: Documentation for above. 2004-11-05 Karl Lehenbauer * rivet/packages/session/session-class.tcl: Quote backslashes when storing so they won't be stripped by the database. Needs to be tested for MySQL and SQLlite. 2004-11-04 Karl Lehenbauer * rivet/packages/dio/*.tcl: Documented the code for DIO and DIOdisplay. 2004-11-04 David N. Welton * src/mod_rivet.c (Rivet_ServerConf): Use Tcl_GetBoolean, at Karl's suggestion. 2004-11-03 David N. Welton * src/mod_rivet.c (Rivet_ServerConf): Instead of just "on", accept "yes" and "1" as well. 2004-10-29 Karl Lehenbauer * rivet/packages/dio/dio_Mysql.tcl: The "DIO handle" method, which returns the underlying database's connection handle, now forces the database connection to be made, if it hasn't already been made, just like DIO exec. * rivet/packages/dio/dio_Postgresql.tcl: (same) 2004-09-29 David N. Welton * src/rivetCore.c (TestpanicCmd): Added command to test panics. * src/mod_rivet.c (Rivet_Panic): Added panic proc that tries to log the error to disk. 2004-09-20 David N. Welton * rivet/packages/rivet_ncgi/rivet_ncgi.tcl: Compatibility layer for tcllib's ncgi package. 2004-09-20 Karl Lehenbauer * src/mod_rivet.c (Rivet_PerInterpInit): Load the init.tcl file with an explicit path rather than using Tcl_PkgRequire. Previously, if Rivet was installed with a PREFIX/lib that wasn't already in Tcl's package search path (auto_path, probably because it was the same lib directory as Tcl used, typically /usr/local/lib), Tcl startup is unable to find the RivetTcl package, and Rivet is unable to start. 2004-09-17 Karl Lehenbauer * rivet/packages/rivet/pkgIndex.tcl: Removed. It had a hard-coded assumption about the shared library extensions (.so). This file is now generated in the target directory by the install node of make.tcl. * rivet/pkgIndex.tcl: Removed. It is generated by the make.tcl install process, as above. * src/make.tcl: The above changes, specifically the install node now generates the target rivet/pkgIndex.tcl and rivet/packages/rivet/pkgIndex.tcl file using pkg_mkIndex, causing all Tcl-defined and shared-library-defined packages to be discovered and generated into the pkgIndex.tcl. 2004-09-16 Karl Lehenbauer * src/parserPkgInit.c: Added a Rivetparser_SafeInit so the C-based standalone Rivet parser library can be loaded from safe interpreters. After inspection, we believe that rivet::parserivetdata can be loaded into safe interpreters without compromising their security. rivet::parserivet definitely cannot be made available to a safe interpreter -- it could be manipulated to read files. * src/rivetPkgInit.c: Added a Rivet_SafeInit so lib can be loaded from safe interpreters, which also makes it work better under Mac OS X. * src/rivetCrypt.c: Added function header to init routine. * src/rivetList.c: (same) * src/rivetWWW.c: (same) * README.MacOSX: Temporary file to document Mac OS X build quirks. * src/configure.tcl: If a configuration variable in tclConfig.sh ever had an equal sign in the "value" portion of the key=value pair, configure.tcl would malfunction. A missing variable caused a variable referencing that missing variable to be silently dropped. We now complain, although the right answer is probably to substitute an empty string for all missing variables. Still, this way at least gives a hint as to the problem. * src/Makefile: Add simple rules for "clean", "distclean", and "install" that simply invoke make.tcl appropriately. 2004-08-07 David N. Welton * rivet/packages/dtcl/dtcl.tcl (hgetvars): Added code from Arnulf Wiedemann to set up VARS array. 2004-08-03 Pat Thoyts * win/Rivet.nsi: Added a NSIS script. This is used with the Nullsoft scriptable installer system to create an installer for Rivet to install onto a Windows system. * win/makefile.vc: Added htmlhelp and installer targets. 2004-06-25 Pat Thoyts * src/rivetCrypt.c: Fix const-ness of resultBuffer to match apache's crypt function. * win/makefile.vc: Fixed the version string to match rivet project version. Support use of MSVC.NET or VC++Toolkit compilers. 2004-06-04 David N. Welton * contrib/two-mode-mode.el: Updated two-mode-mode. 2004-06-02 David N. Welton * src/buildscripts/aardvark.tcl: Use 'Output' instead of puts. It might be useful were we ever to do something like make an aardvark GUI. 2004-06-01 David N. Welton * Following changes by Pat Thoyts : * win/makefile.vc: Updated to deal with the START_TAG END_TAG macros. * src/rivetParser.h: Declare missing prototype. * tests/binary.rvt: The stdout channel under Windows needs to be told to use translation binary for binary data. 2004-05-18 David N. Welton * src/make.tcl: Quote Tcl argument. * doc/rivet.xml: Added clearer instructions for mailing list subscription. 2004-05-05 Karl Lehenbauer * src/rivetWWW.c: Made the escape_string command map spaces to plus signs (+) rather than %20. They're equivalent and unescape the same, but the plus signs are visually easier to take. 2004-05-05 Karl Lehenbauer * /rivet/packages/dio/diodisplay.tcl: Got "-type boolean" working. There's some problem with using a method that uses configvar to set a var as a method in a class where the class is being inherited by a subclass that redefines the variable. I had to substitute "cget -varName" style to get it to work. 2004-05-05 Karl Lehenbauer * /rivet/packages/dio/diodisplay.tcl: Added "-type select" option to DIOdisplay fields, and a new option, "-values $list" which takes a list of values to be made available with a form selector. 2004-05-05 Karl Lehenbauer * /rivet/packages/dio/diodisplay.tcl: When adding a new record, if they've typed anything into the "is" field, set the default value of the field specified in the "where" part to match. 2004-05-05 Karl Lehenbauer * doc/rivet.xml: Documented the escape_string, unescape_string, escape_sgml_chars, and escape_shell_command functions. 2004-05-04 Karl Lehenbauer * rivet/packages/dio/diodisplay.tcl: Added enhancements from Peter da Silva (peter@taronga.com): Add support for hidden variables. (This is so that you can have state variables that are maintained by the function outside of DIOdisplay, retained as you jump through DIOdisplay.) Added DIORowHeader to the style sheet. Turned the search table into a navigation bar. Added a filter method that allows you to edit the display of fields on the fly, for example, you have a time in integer seconds since 1970 and you can add a filter that does a "clock format" using -filter, or, for example, it can look up an IP address from a table. * rivet/packages/dio/dio.tcl: Added enhancements from Peter da Silva (peter@taronga.com): New "forall" method will apply a result across a code body for each record returned in the result and then delete the result handle, all in one fell swoop. 2004-04-24 David N. Welton * src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): If the node doesn't exist, always "rebuild" it. * src/make.tcl: Make sure make install message is only printed when the correct target is called. 2004-04-21 David N. Welton * rivet/packages/dio/pkgIndex.tcl: Add sqlite interface. * rivet/packages/dio/dio_Sqlite.tcl: Added incomplete sqlite interface to DIO. 2004-04-14 David N. Welton * rivet/packages/dio/dio.tcl: Removed mysql and postgres specific code from main DIO package, which now loads the subclass package automatically. * rivet/packages/dio/dio_Mysql.tcl: Added new package to remove separate mysql DIO interface. * rivet/packages/dio/dio_Postgresql.tcl: Added new package to separate postgres DIO interface. 2004-04-12 Andy Doerr * rivet/packages/dio/diodisplay.tcl: - Modified searchBy form field to use the -labels and -values parallel lists in form.tcl class method (select). - Modified Search proc to not use FieldTextMap as the search now does not need to look up the db field name. 2004-04-05 David N. Welton * tests/docroot1/ tests/docroot2/: Files used to test virtual hosts with. * tests/virtualhost.test: New file: tests for virtual hosts. * tests/apachetest/apachetest.tcl: Require our own version of http.tcl, due to Tcl feature request #928154 (it's impossible to set the Host header). (apachetest::start): We now take 3 arguments. The new one is 'conftext', which is used to write to the test.conf file before running the test. * tests/runtests.tcl: Changed test config to add an "Include test.conf" directive. We can write out our own configs for each test with that. * src/mod_rivet.c (Rivet_PerInterpInit): New function that groups together everything that has to happen when a new interpreter is created - either the main one, or for virtual hosts. (Rivet_InitTclStuff): Redid the way virtual hosts are treated here: make sure there is a unique rivet_server_conf for each one, either because MergeConfig has been called, or we create one ourselves. (Rivet_CreateConfig): We don't initialize objCache and outchannel members of rivet_server_conf here anymore. They are now taken care of in Rivet_InitTclStuff. (Rivet_MergeConfig): Either take care of all members of rivet_server_conf struct, or include a comment explaining why it's not there. (Rivet_ChildHandlers): New function - takes care of either child init or exit scripts, depending on how it's called. * doc/rivet.xml: Describe how each RivetServerConf directive interacts with virtual hosts. 2004-02-26 David N. Welton * doc/rivet.xml: Added DIODisplay section. 2004-02-25 David N. Welton * src/rivetParser.h: start/end tags removed from here. * src/make.tcl: START_TAG and END_TAG are now defined here, so that they are easier to configure at build time. * doc/rivet.xml: Initial cut at including DIO docs in the main set of docs. 2004-02-23 David N. Welton * LICENSE: Switch to Apache 2.0 License. 2004-02-20 David N. Welton * src/TclWebapache.c (TclWeb_SetHeaderType): strdup object's string value so we have our own copy of it. 2004-02-19 David N. Welton * doc/rivet.xml: Added some additional comments regarding the installation. Thanks to Tom Krehbiel for the suggestions. 2004-02-17 David N. Welton * src/make.tcl: Created better dependency system for DocBook docs. * doc/html/rivet.*.html: Added non-chunked versions of the docs. * doc/rivet-nochunk.xsl: Change include of docbook.xsl to an import at the top of the file. Seems to make things work ok. 2004-02-11 David N. Welton * src/make.tcl: Don't delete rivet packages directory during install. This used to happen in order to keep things clean, but people are using this directory for local packages/modifications, so this is not a good thing to have. 2004-02-06 David N. Welton * tests/headers.test: Include current version of http package in result automatically, so as to avoid having to update it by hand. * tests/apachetest/apachetest.tcl (apachetest::getallincludes): Create function to fetch a conf file and all the files Included it from it. * doc/rivet.xml: Add section for session package. * doc/rivet.xml: Added SESSION documentation. * rivet/packages/session/README.txt: Removed text, indicate HTML/XML docs - I don't want to maintain the same docs in two places. * src/make.tcl: Create directory before installing. 2004-01-20 Karl Lehenbauer * rivet/packages/dio/diodisplay.tcl: Removed calls to abort_page when relatively benign conditions like no records matching a search occur. This allows us to emit all the code we need, like closing the table (
) and emiting our page trailer, etc, instead of having the page cut off somewhere in the middle. 2004-01-15 David N. Welton * rivet/rivet-tcl/load_response.tcl (load_response): Fixed a bug in load_response that was tickled by calling it multiple times. Thanks to Brad for catching it. 2004-01-15 Brad Morrison * rivet/rivet-tcl/load_response.tcl: Changed behavior from appending discovered values to existing elements in the response array to simple assignment. 2004-01-15 David N. Welton * rivet/packages/simpledb/simpledb.tcl (simpledb::synctostorage): Added fix from Massimo Manghi for bug in procedure to write database to disk. * rivet/packages/simpledb/simpledb.test (populatetables): Commented out stuff to add into the test later. 2004-01-08 David N. Welton * src/make.tcl: Added warning to default make.tcl target in order to encourage people to run ./make.tcl install. 2004-01-08 Karl Lehenbauer * src/buildscripts/findapxs.tcl: When the apxs program cannot be located, the message now mentions that the location of apxs can also be specified using the "-with-apxs" option on the command line. 2004-01-05 Karl Lehenbauer * rivet/packages/session/*: Checkin of session management code. This is a from-scratch rewrite of Superconnect's session management code, donated to Rivet under the terms of the Apache Software License. See rivet/packages/session/README.txt for details of what it does and how it works. 2004-01-02 Karl Lehenbauer * src/buildscripts/findapxs.tcl: Added /usr/local/bin and /usr/local/sbin to the directories that Rivet configuration looks in to find apxs, when the path to apxs wasn't specified on the configure command line. Changed findapxs::FindAPXS to generate an error if it couldn't find a working apxs utility, rather than just returning an empty string. Previously if apxs could not be found, the error message emitted by configure.tcl was: "Error in CFLAGS test: couldn't execute "": no such file or directory" Now it says it couldn't find the Apache Extension Tool apxs and lists everywhere it looked. 2003-12-20 David N. Welton * tests/parsepackage.test: Added tests for the Rivet parser standalone package and pure Tcl Rivet parser. * INSTALL: Added basic configuration directives to INSTALL file. * rivet/packages/tclrivet/tclrivetparser.tcl: Added pure Tcl Rivet parser. This doesn't have all the Rivet commands available, it just parses a style Rivet file into the corresponding Tcl script. * src/parserPkgInit.c (Parse_RivetData): We no longer automatically add the namespace. The user ought to be able to add that should they so choose. This makes the command more flexible. * src/rivetParser.c (Rivet_Parser): Removed an unnecessary Tcl_UtfNext from the parser. (Rivet_GetRivetFile): Removed useless 'inside' variable from this function. * doc/rivet.xml: Add abort_page, no_body and env commands, reordered the load_* commands. * doc/rivet.it.xml: Updated author. * doc/rivet.ru.xml: Updated author. * doc/rivet.xml: Changed documention author to "The Rivet Team". * src/rivetCore.c (Rivet_NoBody): Return an error if content has already been sent. * src/rivetCore.c: Added fancy headers to all functions. 2003-12-13 David N. Welton * tests/broken.test: Updated test results for what is actually returned on error. * src/rivetParser.c (Rivet_Parser): "export" function in that it's no longer static. * src/parserPkgInit.c (Parse_RivetData): New alpha-ish command to parse data passed to the script. * src/configure.in.tcl: Merge apxs and Tcl CFLAGS in order to include what we need from both. Hopefully there won't be any conflicts. 2003-11-27 David N. Welton * doc/rivet.xml: Added information about debugging Apache/Rivet. 2003-11-20 David N. Welton * src/make.tcl: Changed xsltproc lines to deal with new link styles. * doc/rivet.xml: Changed links as in Russian translation. * doc/rivet.it.xml: Changed links as in Russian translation. * doc/rivet.ru.xml: Changed links to use "en.html" style instead of "html.en". This will make google pick up the pages. 2003-10-22 David N. Welton * win/: Numerous updates from Pat Thoyts . 2003-09-30 David N. Welton * src/rivetCore.c (Rivet_Include): More ref count management. * src/mod_rivet.c (Rivet_PropagatePerDirConfArrays): Added more ref count management. * src/rivetParser.c (Rivet_GetRivetFile): Add ref counting for 'inbuf'. * src/mod_rivet.c (Rivet_ParseExecFile): Manage ref count for outbuf better. (Rivet_SendContent): Clean up 'info script' code. (Rivet_InitTclStuff): Rework 'if' to eliminate double assignment. * src/TclWebapache.c (TclWeb_GetEnvVars): Add ref counting for envvar. (TclWeb_GetHeaderVars): Fix ref counting for headersvar. * tests/headers.test: Added test for load_headers. * src/apache_request.h: Updates from httpd-apreq. * src/apache_request.c: Updates from httpd-apreq. 2003-09-29 David N. Welton * rivet/packages/commserver/server.tcl: Exit 1 on failure. * rivet/packages/commserver/commserver.tcl: Check to make sure the server is really running before returning from commserver::start. * rivet/packages/simpledb/simpledb.tcl: Added 'simpledb', although it's not ready for production use. * src/mod_rivet.c (Rivet_ChildInit): If we don't have separate virtual servers, we only need to run the ChildInitScript once. If we do have interpreters for each virtual server, each one gets to run the script. * doc/rivet.ru.xml: Big update of the Russian translation by Dmitry the Zuryanovich . Thanks! 2003-09-26 David N. Welton * src/mod_rivet.c: Spelling check: seperate->separate. 2003-09-24 David N. Welton * doc/rivet.xml: Mention the global command in the 'internals' section. 2003-08-30 David N. Welton * doc/rivet.xml: Added var_qs and var_post cmdsynopsis's. 2003-08-29 David N. Welton * doc/rivet.xml: Use refentry and sub-elements instead of variablelist. This is more correct. * doc/norefchunk.xsl: New file - handle refentries without making them new files. * doc/rivet.xsl: Scratch the last changes and go with refentry's for all commands. This is a more difficult solution to parse, but in the end is more correct. * doc/refentry.xsl: New file to handle refentry stuff. 2003-08-28 David N. Welton * doc/rivet.xsl: Minor changes to look and feel. * doc/rivet.xml: Added tags for commands, in order to create the index. * doc/rivet.xsl: Added XSL to parse , needed to create an index of commands on the index page. 2003-08-26 David N. Welton * doc/rivet.xml: Added section to documentation about emacs and vim modesl for Rivet files. * src/configure.in.tcl: -with-apxs option no longer takes a default. It should work that out on its own using the findapxs.tcl script. 2003-08-23 David N. Welton * src/configure.in.tcl: Remove test for broken Tcl installations on FreeBSD and MacOS X. Apparently, things work ok with 8.4. 2003-08-22 David N. Welton * src/configure.in.tcl: Add test for broken Tcl installations on FreeBSD and MacOS X. * doc/rivet.xml: Added installation instructions corresponding to the new ./configure.tcl system. Ran the spellchecker. * src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): Rebuild only if file depended on is newer than the target, rather than >=. This prevents some files from being remade if make is run again. * src/configure.tcl (configure::ProcessOptions): Added 'verbose' flag to configure. (configure::test): Exit on tcl failure in test procedures. (configure::assert): Added assert command. Fail on error or 0. 2003-08-21 David N. Welton * src/configure.in.tcl: Changed INC variable to use TCL_INCLUDE_SPEC. * INSTALL: Updated instructions. * src/configure.tcl (configure::parsetclconfig): We need access to previously parsed variables, so we do this in the ::configs namespace. 2003-08-20 David N. Welton * src/buildscripts/aardvark.tcl (aardvark::getconfigs): Added new function to fetch the config info out of configs.tcl. * src/make.tcl: Removed debinstall target, because we can now accomplish the same thing by overriding configure options on make's command line. Removed the configure-style code at the top of the file. * src/configure.in.tcl: Specify the variables to test for/create, as well as some command line options specific to Rivet. * src/configure.tcl: Added new configure-like system to obtain information about the environment where Rivet is being compiled. Running ./configure.tcl creates a file, configs.tcl, with the its findings. make.tcl now uses those values as its defaults, unless they are overridden on make.tcl's command line. 2003-08-11 David N. Welton * src/make.tcl: Added fileutils Tcl package to buildscripts, in order to utilize the 'install' command. 2003-08-05 David N. Welton * contrib/rvt.vim: Added contributed vim mode for editing Rivet files. * contrib/two-mode-mode.el: Added emacs mode for editing Rivet files. 2003-07-22 David N. Welton * doc/rivet.ru.xml: Added lang=ru to article, so that markup like produces the correct language. * doc/rivet.it.xml: Added Italian translation of Rivet docs by Fabio Zanotti . 2003-07-16 David N. Welton * doc/rivet.xml: Explain example script just a bit more clearly. * src/make.tcl: Fix up clean target. Use MOD_SHLIB as target instead of explicit mod_rivet.so. 2003-07-08 David N. Welton * src/buildscripts/findapxs.tcl: Added /usr/local/sbin as a place to check for apxs. Thanks to Andy Doerr for pointing out that this is where it's kept on FreeBSD. 2003-07-07 David N. Welton * doc/examples/upload.html: Added submit button to file upload example. 2003-07-05 David N. Welton * src/rivetWWW.c (snprintf): Added snprintf define from Pat. * src/rivetParser.h: Added bit of defines for windows builds, declared some of the functions EXTERN's here. * src/rivetList.c: Make list commands created here 'static' - Pat. * src/rivetCrypt.c: Use ap_config.h to grab other header files we might need, like crypt.h. This is not an ideal solution, because it adds a dependency we didn't have before. Added change by Pat to conditionally compile or not the 'Rivet_Crypt' command. * src/rivet.h: Added EXTERN definitions for functions. * src/parserPkgInit.c (Rivetparser_Init): Added EXTERN decleration for win builds. * win/rules.vc: New file: include file for Microsoft makefile. * win/rivet.dsp: New file: Microsoft Developer Studio Project File. * win/nmakehlp.c: New file: helper for windows building. * win/makefile.vc: New file: makefile for windows. All from Pat Thoyts . * doc/examples/vars.html: Use a table to make the form look nicer. * doc/examples/vars.rvt: Now we display some results. 2003-07-01 David N. Welton * src/rivetCore.c (Rivet_Upload): Pass the correct element of objv to TclWeb_UploadSave. * tests/uploadsave.rvt: New file to test 'upload save'. * tests/upload.test: New test for 'upload save'. 2003-06-30 David N. Welton * src/mod_rivet.c (Rivet_ParseExecFile): Use Tcl_FSStat instead of Tcl_Stat. * src/rivetCore.c (Rivet_Parse): Use Tcl_FSStat instead of Tcl_Stat. 2003-06-29 David N. Welton * doc/rivet.xml: Add IRC reference to the help section of the manual. 2003-06-23 David N. Welton * doc/rivet.ru.xml: Updated Russian version to indicate which version of the original it was based on. * doc/rivet.xml: Added version string to English version. 2003-06-14 David N. Welton * doc/rivet.xml: Added CVS Id tag. * doc/rivet.ru.xml: Added comment to indicate the version of rivet.xml that the Russian translation is based on. 2003-06-12 David N. Welton * src/mod_rivet.c (Rivet_ParseExecFile): Rework checks for .htaccess file changes. This code was causing an obscure bug where a file would be in the cache twice, thus causing crashes. * Moved russian translation around again. * src/TclWebapache.c (TclWeb_GetEnvVars): Use TCL_NAMESPACE_ONLY here and in TclWeb_GetHeaderVars in order to set the variable in the correct place. * src/make.tcl: Added changes to build Russian documentation. * doc/rivet.xml: Added link to Russian translation. * doc/rivet.ru_UTF.xml: Added link back to English version. 2003-06-10 David N. Welton * doc/rivet_utf_ru.xml: Added Russian translation of documentation by Dmitry Zuryanovich. 2003-06-09 David N. Welton * doc/rivet.xml: Cleaned up docs about fetching the httpd sources. 2003-05-26 David N. Welton * src/rivetCore.c (Rivet_Headers): Change error message to better reflect that there is only one argument to 'headers numeric'. Thanks to "Dmitry Zuryanovich". * src/mod_rivet.c (Rivet_ParseExecFile): Updated Rivet_GetRivetFile and Rivet_GetTclFile to use the right arguments. 2003-05-24 David N. Welton * rivet/packages/tclrivet/tclrivet.tcl: Added commands that need to be filled in. * tests/runtests.tcl: Use apachetest::need_modules. * tests/apachetest/apachetest.tcl (apachetest::need_modules): New proc, utilized to tell the test suite which apache modules are needed. 2003-05-23 David N. Welton * src/buildscripts/aardvark.test: Do a version check on gcc. We used that for the tests, so we might as well be sure we're using the same version. * src/make.tcl: Use buildscripts.tcl to load up all the other scripts we need. Add PARSER_SHLIB as a dependency for the shared build. * src/buildscripts/aardvark.test: Updated aardvark tests to current GCC. * src/buildscripts/buildscripts.tcl: New file: use this file to load up all the other scripts. * src/buildscripts/findconfig.tcl: Moved all the functionality into parsetclConfig.tcl. * src/buildscripts/aardvark.tcl: Just source the graph.tcl file directly instead of dealing with packages. Thanks to Pat Thoyts. 2003-05-22 David N. Welton * src/rivetParser.c (Rivet_GetRivetFile): API Change: instead of taking a TclWebRequest argument, we just give this function a Tcl_Interp, which makes it easier to seperate this code from Rivet. * src/mod_rivet.h: STARTING_SEQUENCE and ENDING_SEQUENCE moved to rivetParser.h, in order to make that file independant of mod_rivet.h. * src/make.tcl: Use slightly more descriptive variable names. Add code to compile librivetparser.so. * src/parserPkgInit.c: New file. Provides a Tcl extension to the Tcl parser, so that regular (not running under Apache) scripts can access it. * doc/html/rivet.css: Updated a few stylesheet properties to make the docs look a bit classier. 2003-05-21 David N. Welton * doc/rivet.xsl: Switch on parameter to use images in HTML output from docbook. * doc/rivet.xml: Added c.l.t. newsgroup to resources section. 2003-05-20 David N. Welton * doc/html/rivet.css: Added CSS file. * src/make.tcl: Added parameter to xsltproc to link the html output to a CSS file. 2003-05-14 David N. Welton * src/make.tcl: Added PKGINDEX to the list of dependencies for rolling a distribution. Updated STATUS file. * rivet/packages/commserver/commserver.tcl: Added commserver package as one potential IPC method. * src/make.tcl: Target ../VERSION node correctly. New target $PKGINDEX to automatically generate a top-level (which is where Tcl searches) package index for all the sub-packages in the Rivet distribution. * src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): A few stylistic changes: [ cmd ] -> [cmd]. 2003-05-13 David N. Welton * doc/rivet.xml: Added a few options - numeric and add to the header documentation. Removed 'setcookie', which has been replaced by the 'cookie' command. * src/make.tcl: Pass [info nameofexecutable] to mod_rivet.c compilation, in order to make Rivet aware of the location of tclsh. * src/mod_rivet.c (Rivet_InitTclStuff): Use name of tclsh executable passed in via the build script. This isn't really the name of the executable Rivet is part of (Apache), but I think this is more useful. 2003-05-11 David N. Welton * src/apache_request.c: Updated to the latest from the httpd-apreq package. 2003-04-07 David N. Welton * src/make.tcl: Make sure that auto_path gets extra stuff at the beginning, so as not to create problems when using it to fetch the prefix. * VERSION: Bump point number for new release. * src/make.tcl: Use package require to load aardvark. * src/buildscripts/graph.tcl: This file should provide the 'struct' package. 2003-03-30 David N. Welton * doc/rivet.xml: Fixed example configuration directive. 2003-03-27 David N. Welton * src/TclWebapache.c (TclWeb_UploadData): Comment out unused alloc. * src/rivetWWW.c (Rivet_UnescapeStringCmd): Free memory allocated with Tcl_Alloc. (Rivet_EscapeStringCmd): Free memory allocated with Tcl_Alloc. (Rivet_EscapeSgmlCharsCmd): Free memory allocated with Tcl_Alloc. (Rivet_EscapeShellCommandCmd): Free memory allocated with Tcl_Alloc. * src/rivetCrypt.c (Rivet_DecryptCmd): Free memory allocated with Tcl_Alloc. (Rivet_EncryptCmd): Free memory allocated with Tcl_Alloc. 2003-03-26 David N. Welton * Remove index.html and help.html. * rivet/pkgIndex.tcl: Added index file for RivetTcl package - i.e. init.tcl. 2003-03-25 David N. Welton * src/rivetPkgInit.c (Rivet_Init): Bump version number to 1.1. * src/mod_rivet.c (Rivet_InitTclStuff): Use Tcl_PkgRequire to load Rivet's init.tcl. * src/make.tcl: Use Tcl file location instead of Apache-based file location, in order to use Tcl_PkgRequire to load Rivet's init.tcl. * rivet/init.tcl: Provide 'RivetTcl' package. (init): Use [info script] instead of server(RIVET_DIR) variable. * src/make.tcl: Add a debinstall target as a temporary way to build .deb files. * debian/copyright: Added copyright file for debian. * debian/dirs: Added dirs file that lists directories used by Rivet on Debian. * debian/control: Added debian/control file with information about Rivet for the debian package. * debian/changelog: Added debian changelog file to track versions of the debian package. * debian/rules: Use 'rules' file from mod_dtcl. 2003-03-14 David N. Welton * src/mod_rivet.c (Rivet_AppendToScript): Don't append Before/After/Error scripts. Just override them. (Rivet_UserConf): Switch back to using Rivet_AppendToScript. (Rivet_SetScript): Change Rivet_AppendToScript to Rivet_SetScript to reflect the fact that it doesn't always append - specifically, in After/Before/Error scripts. * doc/rivet.xml: Use eyebrowse link instead of apachelabs for mailing list. 2003-03-13 David N. Welton * src/mod_rivet.h: Backed out extra entries in rivet_server_conf - they aren't necessary, as the overrides are taken care of for us. The only things we really need are 1) to use the flag user_scripts_updated to recompile scripts when UserConf variables have changed 2) to not append to existing scripts, but instead create new ones. 2003-03-12 David N. Welton * src/mod_rivet.c (Rivet_UserConf): Set user_scripts_updated flag. (Rivet_ParseExecFile): Check and clear flag. * src/mod_rivet.h: Added user_scripts_updated flag to signal that UserConf options have been set. This means that we need to recompile the script. 2003-03-01 David N. Welton * debian/debian.tcl: Helper file for generating .debs. 2003-02-28 David N. Welton * src/Makefile (all): Clean out Makefile - force use of make.tcl. * src/buildscripts/aardvark.tcl (aardvark::runbuildcommand): Use 'w' for shell command pipe, in order to not get broken pipes with commands that output something to stdout (such as tcl scripts!). 2003-02-21 David N. Welton * tests/config.test: Test to see if Rivet picks up changes in ".htaccess" files. * tests/README: Add descriptions of the various tests. * src/buildscripts/aardvark.tcl (aardvark::Nodes): Add command to return list of all nodes. * doc/rivet.xml: Add some information on the precedence of the different Conf options. Change information about DirConf - it isn't allowed in .htaccess files. 2003-02-19 David N. Welton * src/buildscripts/aardvark.test: Add test script and files for aardvark system. * src/buildscripts/graph.tcl: Include latest 'graph.tcl' from upstream. * src/make.tcl: We no longer force 'tcl' and 'sh' to take only one argument. In the case where we aren't forcing evaluation later with {}, this is nicer looking, as we don't have to quote everything with "". 2003-02-12 David N. Welton * src/mod_rivet.c: Mirror Craig Huckabee's mod_dtcl.c changes: - Use TCL_DECLARE_MUTEX to create the mutex, and change the mutex lock/unlock calls. - Remove the 'load only once' stuff from TclInitStuff. - InitTclStuff can now only be called from Child Init. 2003-01-17 David N. Welton * Added logos. 2003-01-08 David N. Welton * src/mod_rivet.c (Rivet_ChildInit): Patch from Karl Lehenbauer to print out errorInfo upon ChildInit failure. 2003-01-07 David N. Welton * src/TclWebapache.c (TclWeb_UploadData): Fix from Holger Zeinert that makes file uploads work on windows. 2002-12-30 David N. Welton * doc/examples/upload.html: Changed .ttml to .rvt - thanks to Holger Zeinert for catching this. 2002-12-18 David N. Welton * doc/rivet.xml: Noted the var_qs/var_post changes in the documentation. 2002-12-17 David N. Welton * tests/post.test: * tests/post.rvt: * tests/get.test: * tests/get.rvt: Added tests for David Brancato's var_qs and var_post improvements. * src/TclWebapache.c: Made "ugly" for loops into while loops. Created macro to set up loop parameters correctly. 2002-12-14 David N. Welton * src/TclWebapache.c: Redid indendation. * src/rivetCore.c: Implemented Tcl commands (via objv[0]) to retrieve variables from different, specified sources (query string, POST). (David Brancato). * src/mod_rivet.h: Added defines for variable sources. (David Brancato). * src/apache_request.c: Added functions to get query and post params. (David Brancato). * src/TclWebapache.c: Implemented TclWeb.h API change. (David Brancato). * src/TclWeb.h: Changed API to include a source option in order to indicate the origin (query string, POST) of a variable. (David Brancato). 2002-12-13 David N. Welton * src/mod_rivet.c (Rivet_InitTclStuff): Apache actually loads all the modules twice, just to see if it can. This is a pain, because things don't seem to get completely cleaned up on the Tcl side. So this little hack should make us *really* load only the second time around. 2002-12-10 David N. Welton * table.png: Transformed table.png so that it ought to display correctly on older(?) browsers. Thanks to Elchonon Edelson for his help. 2002-12-09 David N. Welton * src/mod_rivet.c (Rivet_SendContent): Switched from EvalObj to EvalObjEx. (Rivet_SendContent): EXPERIMENTAL: added Mutex locks on SendContent, in order to keep windows safe. This needs testing out! 2002-12-04 David N. Welton * src/TclWebapache.c (TclWeb_GetEnvVars): Put DecrRefCount back in - must have taken it out by mistake while hunting a previous memory leak. 2002-11-23 David N. Welton * src/mod_rivet.c (Rivet_SendContent): Set up information for [info script] by using r->filename. 2002-11-19 David N. Welton * doc/examples/table.rvt: Fixed up format operation to make nicer tables. 2002-11-18 David N. Welton * cvsversion.tcl (main): Added catch to make sure that VERSION has something in it and isn't. 2002-11-09 David N. Welton * doc/rivet.xml: Make docs reflect behavior of 'var get foobar' when foobar doesn't exist - "" is returned. * tests/apachetest/apachetest.tcl: Updates to testing utility procedures. 2002-11-04 David N. Welton * tests/get.test: Backed out changes to 'var get': no longer throws an error if the variable does not exist, but instead returns "". Use 'var exists' to see if it really exists or not. * src/mod_rivet.c (Rivet_ChildExit): Add call to Tcl_Finalize. This still needs more investigation. * tests/upload.test: Added proper end boundary to upload test. * src/apache_*: New apache request code from upstream. 2002-10-29 David N. Welton * src/rivetWWW.c (Rivet_EscapeStringCmd): Eliminate warning on Solaris by casting a char to an int. 2002-10-28 David N. Welton * src/rivetCore.c (Rivet_Include): Changed Tcl_Channel name to tclstdout to avoid any conflicts with the real stdout. 2002-10-23 David N. Welton * doc/rivet.xsl: Use
 tag for source code examples.

2002-10-22  David N. Welton  

	* src/TclWebapache.c (TclWeb_StringToUtf): One more CONST84 - now
	we pass the tests!

2002-10-21  David N. Welton  

	* src/*.c: "CONST"ification.  See http://mini.net/tcl/3669 for
	more information.

	* src/: Minor build script updates.

2002-10-20  David N. Welton  

	* doc/rivet.xml: "make" needed to be "make.tcl".  Thanks to Makoto
	SATOH.

2002-10-18  David N. Welton  

	* tests/get.test: Added tests for new "var get" behavior.

	* doc/rivet.xml: Documented new "var get" behavior.

	* src/rivetCore.c (Rivet_Var): Added ?default? option to "var
	get".

	* doc/examples/: Added examples for XML document.

	* doc/rivet.xml: Several examples of how to use Rivet.

2002-10-17  David N. Welton  

	* doc/rivet.xml: Added Entities to deal with included files.  This
	makes it easier to correctly format the source code that is to be
	included.

2002-10-09  David N. Welton  

	* src/buildscripts/findapxs.tcl: Added /usr/sbin/ at the request
	of David Brancato, who notes that Redhat often locates apxs there.

2002-10-02  David N. Welton  

	* doc/rivet.xml: Added 'Introduction' section.

2002-09-29  David N. Welton  

	* doc/rivet.xml: Reworked several elements to better utilize
	docbook.

	* doc/rivet.xsl: Major reworking of several elements, including
	group and arg.  Added lots of style changes.

	* src/make.tcl: Add commands and dependencies to build extensions
	documents without chunks, and the main Rivet docs in chunks
	(seperate HTML files are output).

	* doc/rivet.xml: Updated docs to reflect new Apache directives.

2002-09-27  David N. Welton  

	* src/mod_rivet.c (Rivet_InitTclStuff): Change default CacheSize
	to MaxRequestsPerChild / 5, which should still be plenty, but will
	waste less space.

	* src/rivetCore.c (Rivet_Include): "include" command now saves
	channel encoding/translation, outputs the included file to stdout
	with binary translation/encoding, and then resets the original
	settings.  Fixes problem with EUC-JP characters in included
	files.  Thanks to Makoto SATOH for his help in finding this.

	* tests/lang.test: Added file to test LANG setting in server, to
	check character encodings.

	* tests/parse.test: Added EUC-JP characters to test that they come
	through ok.

	* tests/include.test: Added EUC-JP characters to test that they come
	through ok.

2002-09-11  David N. Welton  

	* src/TclWebapache.c (TclWeb_InitEnvVars): Don't do an
	ap_clear_table on the environmental variables.  The include module
	no longer does this, and neither does PHP, so I guess it's safe to
	remove, and it's useful for users of modules like mod_uniqe_id.

2002-09-08  David N. Welton  

	* src/TclWebapache.c: Fix up ObjSetVar2 use.

	* src/mod_rivet.c: Fix up another instance of ObjSetVar2.

2002-09-07  David N. Welton  

	* src/mod_rivet.c (Rivet_PropagatePerDirConfArrays): Do the right
	tricks with IncrRefCount and DecrRefCount to stop the leak.

2002-08-03  David N. Welton  

	* src/mod_rivet.c (Rivet_AppendToScript): Changed before, after,
	and error scripts back to plain old ascii, in order to plug a
	memory leak.

	* src/mod_rivet.h: New macro: FILEDEBUGINFO off by default.
	Useful for debugging the order of functions called.

2002-07-28  David N. Welton  

	* doc/rivet.xsl: Updated rivet.xsl from Websh's xsl.

2002-07-21  David N. Welton  

	* doc/rivet.xml: Several new sections.  We now have most of what
	is in the HTML documents.

2002-07-19  David N. Welton  

	* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand):
	Attempt to use 'open' to execute shell commands, in order to both
	catch the output as well as the return code.

	* doc/rivet.xml: New file.  Removed directives.xml in favor of
	this, which we will use to build individual HTML files and other
	forms of documentation.

2002-07-18  David N. Welton  

	* src/rivetCore.c (Rivet_Upload): Changed format of 'upload'
	command to be more like 'var'.  Changed relevant tests.

2002-07-14  David N. Welton  

	* doc/directives.xml: New file - XML version of directives.html.

2002-07-12  David N. Welton  

	* src/buildscripts/aardvark.tcl (aardvark::runbuildcommand):
	Updated functionality to hopefully better handle errors, warnings,
	and output.

	* src/make.tcl: Created a 'dist' target which rolls a tarball.

2002-07-11  David N. Welton  

	* src/TclWebapache.c (TclWeb_GetHeaderVars): New function to get
	client headers, which are now seperate from environmental
	variables.

2002-06-18  David N. Welton  

	* cvsversion.tcl: Added tool to manage version numbers based on
	CVS changes.

2002-06-17  David N. Welton  

	* src/make.tcl: Updated build scripts to build the HTML
	documentation from XML files.

	* src/buildscripts/aardvark.tcl: Changed commands to 'sh' for
	shell commands and 'tcl' for Tcl commands.

2002-06-10  David N. Welton  

	* doc/packages/dio/dio.xml: Further updates.

2002-06-08  David N. Welton  

	* doc/packages/dio/dio.xml: Finished up adding material to
	dio.xml.

2002-06-06  David N. Welton  

	* doc/packages/dio/dio.xml: Initial commit of (incomplete) docbook
	documentation.

	* doc/packages/dio/rivet.xsl: Added XSL file for docbook
	documentation.

2002-05-03  David N. Welton  

	* src/TclWebapache.c (TclWeb_GetVarAsList): Added check to length
	to make sure we fully compare the two variables.  Idem for
	TclWeb_VarExists.

2002-04-19  Damon J. Courtney 
	* src/TclWebapache.c
	    Added 'TclWeb_GetVirtualFile' command which returns the full
	    path to a virtual file.

	* src/rivetCore.c
	    Added command 'virtual_filename' to return the full path to a
	    virtual file.

	    Added -virtual option to include and parse commands to enable
	    them to parse a virtual file which is relative to the webserver.

2002-03-26  Damon J. Courtney 

	* rivet/packages/form
	    Added a new package for handling forms in Rivet.

2002-03-26  Damon J. Courtney 

	* src/TclWebapache.c
	    Moved the setting of include variables from LoadEnv to the
	    InitEnv command.  This will allow us to retrieve these variables
	    via the env command as well as load_env.

2002-03-21  Damon J. Courtney 

	* src/TclWebapache.c
	* src/TclWeb.h
	    Added new command 'TclWeb_HeaderAdd'.

	* src/rivetCore.c
	    Added 'add' option to headers command to add a header instead
	    of just setting over one.

	* rivet/rivet-tcl/cookie.tcl
	    The cookie command adds a header instead of setting one.  This
	    allows multiple cookies in a single page.

2002-03-21  Damon J. Courtney 

	* src/TclWebapache.c
	    If the header being set is Set-Cookie, we add it to the table
	    instead of overwriting it.  This allows us to set more than
	    one cookie per page, which is legal to all browsers.

2002-03-19  Damon J. Courtney 

	* rivet/init.tcl
	    Appended packages-local to the auto_path.  This will be a great
	    place for people to place local packages that we won't mess with.

2002-03-18  David N. Welton  

	* tests/apachetest/apachetest.tcl: Added TclX to requirements.
	Damn.

2002-03-16  David N. Welton  

	* tests/runtests.tcl: Updated to run with apachetest, eliminating
	makeconf.tcl, and moving template.conf.tcl to the apachetest
	directory.

	* tests/apachetest/apachetest.tcl: New file, grouping together
	the test functions in one place, and in a namespace.

2002-03-15  David N. Welton  

	* tests/config.test: Added some new, automatically generated
	tests.

	* src/mod_rivet.c (Rivet_MergeDirConfigVars): Make sure that both
	arguments to overlay_tables exist!

	* src/mod_rivet.h: Add a default error script.

	* src/TclWebapache.c (TclWeb_GetEnvVars): DecrRef for the name of
	the environment variable.

	* rivet/rivet-tcl/cookie.tcl (make_cookie_attributes): Add an
	interface to add the 'expire' field directly.
	(cookie): "Set-Cookie" is uppercase for both words.

2002-03-15  Damon J. Courtney 

	* src/apache_cookie.c
	* src/apache_cookie.h
	    Removed in favor of doing cookies through a Tcl interface.

	* src/channel.c
	* src/channel.h
	    Renamed to rivetChannel.c and rivetChannel.h

	* src/rivetCore.c
	* src/TclWebapache.c
	    Removed references to Apache cookie functions.

2002-03-14  Damon J. Courtney 

	* src/TclWebapache.c
	    Added a routine to setup the environment variables and mark
	    that they have been set.  This will save us from having to
	    reload them all the time.  Once they're loaded, they don't
	    load again.

	* rivet/rivet-tcl/cookie.tcl
	    Added a new 'cookie' command for setting and getting cookies.

	* rivet/rivet-tcl/import_keyvalue_pairs.tcl
	    Added a command to import keyvalue pairs from arguments.

	* rivet/rivet-tcl/load_cookies.tcl
	    Made load_cookies use the env command to get the one variable
	    it needs instead of load_env, which gets a bunch it doesn't
	    need.

	* rivet/rivet-tcl/debug.tcl
	    Made debug use the env and import_keyvalue_pairs commands.

2002-03-13  Damon J. Courtney 

	* src/mod_rivet.c
	    Cleaned up the error handling a little.  There was a really nasty
	    bug that if the ErrorScript was defined, it wouldn't actually
	    error out.  This had something to do with the header output and
	    flush being before the ErrorScript was executed.

	* rivet/init.tcl
	    Changed the default error handler to a Tcl proc.

2002-03-13  Damon J. Courtney 
	* src/make.tcl
	* src/TclWebapache.c
	    Cleaned up the remainder of the compiler warnings.
	    Rivet should build cleanly without warnings now.

2002-03-13  David N. Welton  

	* src/mod_rivet.c (Rivet_PropagatePerDirConfArrays): Clean up
	arrayName object after we're done with it.

	* src/TclWebapache.c (TclWeb_GetVar): Make sure to compare all of
	the variable key.

	* src/mod_rivet.c (Rivet_InitTclStuff): Moved creation of "rivet"
	AssocData here.

2002-03-12  Damon J. Courtney 

	* src/mod_rivet.c
	* src/mod_rivet.h
	* src/rivetParser.c
	* src/rivetCore.c
	* src/TclWebapache.c
	    Cleaned up a lot of memory leaks.  Still working on finding more.

2002-03-12  David N. Welton  

	* tests/makeurl.test: New test.

	* src/TclWebapache.c (TclWeb_MakeURL): Use Tcl_SetStringObj
	instead of creating a new object.

	* src/rivetCore.c (Rivet_MakeURL): Pass already created object to
	TclWeb_MakeURL.

2002-03-11  Damon J. Courtney 

	* src/TclWeb.h
	    Added declaration for TclWeb_GetEnvVar.

	* src/TclWebapache.c
	    Added command TclWeb_GetEnvVar.  Gets a single environment
	    variable.

	* src/mod_rivet.c
	    Added some extra stuff to the default error functions.
	    If the error_script fails, we output the failure.

	* src/rivetCore.c
	    Added Tcl 'env' command to get a single environment variable.

	* src/make.tcl
	* src/buildscripts/aardvark.tcl
	* src/buildscripts/graph.tcl
	    Cleaning up a bug with the struct package.

2002-03-10  Damon J. Courtney 

	* src/mod_rivet.c
	    The Scripts output to the UserConf arrays now properly display
	    the scripts in their entirety.

	    Cleaned up the handling of directory configuration merging.

	    Fixed a bug where Rivet_GetRivetFile was stomping the BeforeScript.

2002-02-23  David N. Welton  

	* tests/upload.test: Added upload test.

	* src/TclWebapache.c: Added functions: TclWeb_PrepareUpload,
	TclWeb_UploadChannel, TclWeb_UploadSave, TclWeb_UploadData,
	TclWeb_UploadSize, TclWeb_UploadType, TclWeb_UploadFilename,
	TclWeb_UploadNames.

	* src/rivetCore.c (Rivet_Upload): Offloaded functionality to
	TclWebApache.c.

2002-02-17  Damon J. Courtney 

	* src/make.tcl
	    Added a script to look around a little more for Apache's apxs tool.
	    If we can't find it, we output an error message to the user.

	* src/buildscripts/findapxs.tcl
	    Added to repository.

2002-02-12  David N. Welton  

	* src/TclWebapache.c: Added some INLINE's.

	* src/mod_rivet.c (Rivet_ParseExecFile): Tweaking of parameters to
	enable the modification stated below.

	* src/rivetCore.c (Rivet_Parse): Removed 'rsc' from this
	function.

2002-02-07  David N. Welton  

	* src/TclWebapache.c (TclWebMakeURL): New command, extracted out
	of rivetCore.c.

2002-02-01  David N. Welton  

	* src/rivetCore.c: Deleted rivet_info command.

	* src/TclWebapache.c (TclWeb_GetEnvVars): Added RIVET_CACHE_FREE
	# and RIVET_CACHE_SIZE as environmental variables.

2002-01-29  David N. Welton  

	* doc/help.html: Updated mailing list archive location.

2002-01-28  David N. Welton  

	* src/rivetCore.c (Rivet_Include): Get channel via Tcl_GetChannel
	instead of through the apache config structure.

2002-01-27  David N. Welton  

	* tests/parse.test: Added test for 'parse' command.

	* src/mod_rivet.c (Rivet_ParseExecFile): Moved the addition of
	before and after scripts to this file, so that GetRivetFile is
	independant of any Apache specific code.

	* src/rivetParser.c, src/rivetParser.h: New files, which replace
	parser.c and parser.h.
	(Rivet_GetRivetFile): Moved from mod_rivet.c.  Now capable of
	operating independantly of mod_rivet.  Use Tcl file functions
	instead of Apache functions.
	(Rivet_Parser): Parser now operates on a Tcl_Obj input buffer.

	* src/mod_rivet.h: Moved content_sent to TclWebRequest in TclWeb.h

2002-01-26  David N. Welton  

	* tests/binary.test: Added test file for binary file handling.

	* src/mod_rivet.c (Rivet_SendContent): Moved 'header_only' option
	so that the request is set up and we don't segfault.
	(Rivet_GetRivetFile): changed puts to puts -nonewline, so as to
	not add spurious newlines.

	* src/rivetCore.c (Rivet_Include): Simplified code some, with '-1'
	argument to Tcl_ReadChars.  Eliminated "lf" -translation option.

2002-01-24  David N. Welton  

	* tests/include.test: Added test for 'include' command.

2002-01-22  David N. Welton  

	* src/mod_rivet.c, src/channel.c, src/rivetCore.c: Switched to
	TclWeb functions for error, headers.

	* src/mod_rivet.h: Moved headers_set and headers_printed out of
	the rivet_server_conf struct and into the TclWebRequest struct.

	* src/TclWebapache.c: Moved PrintHeaders, PrintError and
	SetHeaderType from mod_rivet.c.

	* src/TclWeb.h: Added ER1, ER2 and DEFAULT_HEADER_TYPE here.

	* tests/get.test: Added some tests related to [var *].

	* tests/post.test: Added some tests related to [var *].

	* src/rivetList.c (Rivet_LassignArrayObjCmd): Use -1 instead of
	NULL when doing NewStringObj.

	* src/rivetCrypt.c: Added header file.

	* src/make.tcl: Added slightly nicer apxs handling.

	* src/mod_rivet.c: Moved StringToUtf to TclWeb.

	* src/mod_rivet.h: Removed StringToUtf macro.

	* src/TclWebapache.c: Lots of bug fixes and corrections.

	* src/rivetCore.c (Rivet_LoadEnv): Switched to TclWeb API.
	(Rivet_LoadCookies): Switched to TclWeb API.
	(Rivet_Var): Switched to TclWeb API.

2002-01-19  Damon J. Courtney 

	* src/rivetCore.c
	    Moved authorization from its own array into the env array as
	    HTTP_USER and HTTP_PASS.

	    Added an abort_page command which halts the sending of a request.

2002-01-19  David N. Welton  

	* src/TclWebapache.c: Added individual functions for CGI variable
	access.  Much simpler than trying to devise a data structure to
	pass them around with.

	* src/rivetCore.c (Rivet_LoadEnv): Roll back authorization
	information command.

2002-01-18  David N. Welton  

	* src/rivetCore.c (Rivet_LoadAuth): New command to load
	authorization information in its own array.

	* src/TclWebcgi.c: New file for stand-alone implementations of
	common web API.

	* src/TclWebapache.c: New file for apache-based implementations of
	web API.

	* src/TclWeb.c: Common code for TclWeb API.

	* src/TclWeb.h: TclWeb web interaction API.

2002-01-11  Damon J. Courtney 

	* src/make.tcl
	    Updated some of the make nodes.

	    librivet.so now gets copied into the rivet package directory.


	* src/mod_rivet.c
	    Changed Rivet_Init to Rivet_InitCore to fix bug.

	    All Script directives now append to each other instead of
	    overwriting the last directive.  Directory directives still
	    override in standard fashion though.

	* rivet/packages/rivet
	    Added as the default package of Rivet commands in C.

2002-01-10  Damon J. Courtney 
	* src/rivet.h
	    Added macro 'TCL_CMD_HEADER'.  Prints the default command header
	    for Tcl commands in Rivet.

	    Added macro 'TCL_OBJ_CMD'.  Prints the default object command
	    creation for Tcl commands in Rivet.

	* src/rivetInit.c
	    Renamed to rivetPkgInit.c

	* src/rivetCrypt.c
	    Added.  Contains commands for encryption and decryption.
		encrypt
		decrypt
		crypt

	* src/rivetWWW.c
	    Added.  Contains commands for the world wide web.
		escape_string
		unescape_string
		escape_sgml_chars
		escape_shell_command

	* src/rivetList.c
	    Added the following commands:
		comma_split
		comma_join
		lassign_array

	* src/make.tcl
	    Moved all of the Rivet Tcl commands into their own library
	    called librivet.  This will be automatically loaded into Rivet
	    as the default configuration.  Anyone who wants can take it
	    out if they choose.

2002-01-10  David N. Welton  

	* tests/template.conf.tcl: Re-add srm.conf and access.conf - if
	they aren't present, it tries to grab the ones from /etc/ - not
	what we want.

2002-01-09  Damon J. Courtney 
	* src/tcl_commands.c
	    Renamed to rivetCore.c

	* src/tcl_commands.h
	    Removed.

	* src/rivet.h
	    Added as the default header file for Rivet Tcl commands.

	* src/rivetList.c
	    Added.  Only contains 'lremove' right now.

	* src/rivetInit.c
	    Added.  Contains the Tcl initialization routine for Rivet's Tcl
	    commands.

	* src/make.tcl
	    Added rivetCore.c, rivetList.c and rivetInit.c to the make.

2002-01-08  Damon J. Courtney 
	* src/mod_rivet.h
	    Added RIVET_NEW_CONF macro to create a new rivet_server_conf.

	* src/mod_rivet.c
	    Added Rivet_MergeDirConfig to merge directory configurations.

	    Fixed bug where RivetDirConf was giving erroneous information.

2002-01-08  Damon J. Courtney 

	* tests/makeconf.tcl
	    Went ahead and copied over the entire rivet directory.

	* tests/rivet.test
	    Changed the default port to 8081.

	* tests/template.conf.tcl
	    Changed the default port to 8081.
	    Removed access.conf and srm.conf.

2002-01-08  David N. Welton  

	* tests/makeconf.tcl (makeconf): Added a command to copy over the
	    init.tcl file to the testing directory.  It would probably be
	    best to copy the whole directory, though.

2002-01-08  Damon J. Courtney 

	* src/channel.c
	    Just a text change.

	* src/make.tcl
	    Added a command to install that will copy the contents of the
	    rivet/ directory into Apache's install location.

	* src/mod_rivet.h
	    Removed some superfluous code and deprecated options.

	* src/mod_rivet.c
	    Finished renaming the rest of the remaining commands into the
	    standard Rivet_ naming scheme.  This will prevent any further
	    interferance with other modules.

	    Renamed namespacePrologue to request_init and re-coded the
	    namespace initialization code in Tcl.

	    Removed leftover references to the ::request::UPLOAD array.

	    Added an array called 'server' to the global namespace which
	    briefly contains important information about Apache and Rivet.

	    Propagated RivetServerConf, RivetDirConf and RivetUserConf arrays
	    at the tcl level.

	    Gave RivetUserConf the ability to set BeforeScript, AfterScript
	    and ErrorScript.

	* src/tcl_commands.c
	    Updated makeurl to use Tcl objects instead of the old Tcl_SetResult
	    command.

	* rivet/
	    Added a rivet/ directory of Tcl code.

	    Added init.tcl to rivet/.  This file contains initialization code
	    in a ::Rivet namespace that is called when the server starts up.

	* rivet/init.tcl
	    Added a command for cleanup after each request.  It currently
	    does nothing but could come in handy later.

	* rivet/packages
	    Created a rivet/packages directory for future Rivet packages.

	* rivet/rivet-tcl
	    Created a rivet/rivet-tcl directory containing a few procs.

	* rivet/rivet-tcl/load_response.tcl
	    Added 'load_response' command to rivet-tcl/.

	* rivet/rivet-tcl/parray.tcl
	    Added 'parray' command to rivet-tcl/.

2002-01-07  David N. Welton  

	* General: Renamed some more commands so that Rivet may be run
	alongside mod_dtcl.

	* src/mod_rivet.c (get_parse_exec_file): Oops - change httpd-tcl
	to httpd-rivet in strcmp.

2002-01-06  David N. Welton  

	* Documentation: Big cleanup, updating everything from mod_dtcl.

	* General: Changed .ttml to .rvt.  Also changed mime type to
	x-httpd-rivet.  Changed all references in documentation to .rvt
	from .ttml.

2002-01-05  David N. Welton  

	* src/parser.c (Rivet_Parser): A few, mostly cosmetic, cleanups in
	the parser.

	* src/make.tcl: Add nodes for testing library.

	* src/channel.c (outputproc): Change printheaders to
	Rivet_PrintHeaders.

	* General: whitespace cleanups.

2001-11-21  David N. Welton  

	* src/channel.c: Almost all output is based on the ApacheChan
	channel, and uses Tcl's buffering, flushing, etc...

	* tests/rivet.test: Updated testing scheme to work with lots of
	test files/ttml files.

2001-11-21  Damon J. Courtney 

	* src/mod_rivet.c
	    Renamed more commands into the Rivet_ naming scheme.

2001-11-20  Damon J. Courtney 

	* src/tcl_commands.c
	    load_env and load_cookies now accept an optional argument of
	    ?arrayName?.
	* src/tcl_commands.c
	    Renamed a lot of the commands into a standard naming scheme.

2001-11-20  Damon J. Courtney 

	* src/tcl_commands.c
	    Cleaned up some more code.  Just textual changes.
	* src/mod_rivet.c
	    Cleaned up some run-over lines and code.
	* src/mod_rivet.c
	    Changed module signature from "mod_rivet" to "Rivet"
	* src/tcl_commands.c
	    Changed hgetvars command to load_env command.
	* src/tcl_command.c
	    Moved loading of cookies to load_cookies command.
	* src/tcl_command.c
	    Renamed default load_env array from ENVS array to env.
	* src/tcl_command.c
	    Renamed default load_cookies array from COOKIES to cookies.

2001-11-08  David N. Welton  

	* src/mod_rivet.c (rivet_child_init): Fix loop, pass correct
	parameter to RIVET_SERVER_CONF.

2001-10-19  David N. Welton  

	* src/mod_rivet.c (get_parse_exec_file): Fixed up problems with
	Parse command.

2001-09-30  David N. Welton  

	* src/parser.c (rivet_parser): Quote { and } to avoid problems.

2001-09-23  David N. Welton  

	* Initial commit and cleanup of old mod_dtcl code.