Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
50 most recent check-ins
|
2026-11-06
| ||
| 18:09 |
Version 3.7.10
- src/unix/configure.ac: AC_INIT bumped to 3.7.10; configure, Makefile and pkgIndex.tcl regenerated locally (untracked) | |
| 17:02 |
Fix format-string injection in the apache log destination
- logtoap.c/h: logToAp passed the log message to ap_log_rerror()/ap_log_printf() as the printf format string, so any % sequence in a web::log message (header values, user names, browser error reports) was evaluated by the Apache worker (%s/%x read memory, %n writes it). The message is now passed as an argument to a fixed "%s" format and reaches the error log verbatim. logToAp is a plain LogPlugInHandler again; the varargs variant also passed a va_list as a single argument, which rendered mod_websh's own messages as garbage | |
|
2026-08-01
| ||
| 18:29 | Version-3.7.9 check-in: 2055eafb93 user: alex tags: trunk, release, version-3.7.9 | |
| 18:09 | Bump to v3.7.9 check-in: 9dd46b70b5 user: alex tags: trunk | |
| 15:50 |
Make webutils.test independent of the system encoding
- the six expected values in the getcontent and multipart tests carried literal umlauts; read under a non-utf-8 system encoding the test file itself decodes wrongly, so the expectation became mojibake and the test failed although the code was correct - they are now backslash-u escapes, which the Tcl parser expands regardless of how the file was read | |
| 14:27 |
Read multipart upload bodies byte-faithfully, independent of the system encoding
- readAndDumpBody switches the input channel to iso8859-1 for the duration of the upload and restores the previous encoding afterwards, on the two early return paths as well; iso8859-1 maps every byte to the character of the same value, so character counts equal byte counts and the binary re-write reproduces the input exactly | |
| 13:55 |
websh.conf becomes websh.conf.in, the template configure generates
- the sample configuration is now a template: the encoding line at the top and webshroot in the Unix branch are substituted by configure, while the Windows branch is left as it was, because configure knows nothing there | |
| 13:53 |
Install the configuration on the major.minor line, with a system encoding chosen at configure time
- the shipped configuration and demo material now go to share/websh major.minor instead of the full version, so WebshConfig in the Apache configuration survives a patch release; code stays fully versioned, because the Tcl package version and the library name the module was linked against are part of the contract - configure derives the series from PACKAGE_VERSION | |
| 13:50 |
Makefile.in: build from a separate build directory
- GENERIC_DIR replaces the literal ../generic in SCRIPT_SOURCES and in the rules for script.h, script.o, interpool.o and the pattern rule, so the sources are always addressed through srcdir
| |
|
2026-07-31
| ||
| 19:25 |
merge trunk: jwt removal, version 3.7.8, untracked generated build files
- merges the trunk cleanup into towardsTcl9: embedded jwt package removed (standalone jwt 1.1 takes over via package require jwt), version 3.7.8, configure/Makefile/pkgIndex.tcl no longer tracked, README/quickref/SKILL.md doc updates | |
| 19:15 | Version 3.7.8 check-in: a35f7c4138 user: alex tags: trunk, release, version-3.7.8 | |
| 19:12 |
untrack generated build files: configure, Makefile, pkgIndex.tcl
- src/unix/configure, src/unix/Makefile, src/unix/pkgIndex.tcl: removed from the repository and added to ignore-glob - they are produced locally by autoconf and ./configure; tracking them made fossil update merge generated content and leave conflict markers behind, which broke ./configure on Debian with dash reporting a syntax error at the merge marker in line 3 | |
| 19:01 |
remove embedded jwt package, bump version to 3.7.8
- src/generic/jwt.tcl, src/tests/jwt.test: removed - websh no longer ships a JWT implementation; the standalone pure-Tcl package jwt 1.1 (own fossil repo, installed under the Tcl prefix as lib/jwt1.1) takes over, callers load it with package require jwt | |
|
2026-07-12
| ||
| 20:47 |
pkgIndex: version-switched loading so Tcl 8.6 and Tcl 9 flavours coexist in one directory
pkgIndex.tcl.in now branches on [package vsatisfies [package provide Tcl] 9.0-] and loads libtcl9websh<version> under Tcl 9 and libwebsh<version> under Tcl 8.6 (same pattern as tzint/tserialport), passing the init prefix [string totitle websh] explicitly instead of relying on filename derivation. Verified by loading the package from a single directory containing both libraries with tclsh8.6 and tclsh9.0. Makefile.in install rules were hardcoded to the libwebsh prefix and would have missed a Tcl 9 build's library; install-binaries and install-libraries now use $(web_LIB_FILE) throughout (pkgdir copy, libdir symlinks, moddir symlink). A Tcl 9 "make install" lands under its own TCL_PREFIX (/opt/tcl/9.0), separate from the 8.6 deployment. check-in: 47e9a57ea8 user: alex tags: towardsTcl9 | |
| 20:39 |
tests: convert 13 test files from ISO-8859-1 to UTF-8
Tcl 9 sources scripts strictly as UTF-8 and aborts on invalid byte sequences ("invalid or incomplete multibyte or wide character"). Content is unchanged; on Tcl 8.6 with a UTF-8 locale the files read identically. Affected: context, dehtmlify, dispatch, encrypt, filecontext, htmlify, messages, ncad, nocrypt, script, time, uricode, webout. check-in: e49f5c8924 user: alex tags: towardsTcl9 | |
| 20:36 |
cfg.test: version-neutral file-permission comparison (Tcl 8.6 vs 9)
Tcl 9 reports [file attributes -permissions] as 0o644 while Tcl 8.6 reports 00644, and Tcl 9 no longer parses leading-zero integers as octal. New helper cfgTestPerms normalizes both forms via scan %o and compares as 0644; golden values in cfg-4.2 - cfg-4.6 updated accordingly (00644 -> 0644). No change in what is being tested. check-in: 61e3e0699f user: alex tags: towardsTcl9 | |
| 20:03 |
first steps to Tcl9
New src/generic/webtclcompat.h: Tcl_Size/TCL_SIZE_MAX/TCL_SIZE_MODIFIER shims for Tcl <= 8.6, per the official migration guide (core.tcl-lang.org tclconfig wiki). Mechanical API migration: 34 length out-parameters converted from int to Tcl_Size (Tcl_GetStringFromObj, Tcl_GetByteArrayFromObj, Tcl_ListObjGetElements/Length, Tcl_SplitList); CONST -> const (130 sites, removed in Tcl 9); Tcl_InitStubs "8.2" -> "8.6-" (5 sites, web.c now checks the return value); tclAppInit.c rewritten as a modern Tcl_Main template (_ANSI_ARGS_/Tcl_StaticPackage gone); log.c includes stdarg.h (no longer transitive via tcl.h) and uses Tcl_SetObjResult instead of Tcl_SetResult+Tcl_Free (freeProc signature mismatch in Tcl 9). Channel types (apchannel.c, varchannel.c): lifted to TCL_CHANNEL_VERSION_5 with close2Proc wrappers — Tcl 9 accepts only v5; identical behaviour on 8.6. Runtime fixes surfaced by the Tcl 9 test runs, all version-guarded and behaviour-preserving on 8.6: | |
|
2026-07-02
| ||
| 09:17 | Version-3.7.7 check-in: f2d12700f0 user: alex tags: trunk, release, version-3.7.7 | |
| 09:07 |
docs+tests: quickref.xml revived at 3.7.6, webutils test coverage, web::genPasswd rework, web::getContent JSON fix
doc/quickref.xml: brought the DocBook reference from the 2014 3.6.0b5 state to 3.7.6. Recovered the 15 misc commands (ts, configSetup, sessionSetup, loggingSetup, sessionGet/New/Init/Close/Refresh, uuidV4, getContent, mimeType, returnJson/Text/Binary) from the previously published 3.7.3 HTML (fossil uv; the XML source of those edits was never committed). Added new sections: JSON Web Tokens (::jwt::sign/::jwt::verify incl. -json/-claims/-leeway), web::sseStart/sseSend, web::response -flush, web::randombytes, web::filerandom, web::genPasswd, web::list2uri/uri2list, web::logfilter alias. Removed stale $Id keywords, fixed two DTD validity errors present since 2014. doc build: network URLs for DocBook XSL/DTD are dead; quickref.xsl now imports the catalog-resolvable current/ URI and doc/Makefile resolves via the local XML catalog (brew docbook + docbook-xsl on macOS, distro packages on Linux), builds with --nonet, and gains a "make check" DTD validation target. Chunker output switched to UTF-8 (was ISO-8859-1) to fix U+FFFD mojibake in the served pages. Generated doc/html/ is fossil-ignored; publishing works via fossil uv add --as basename + uv sync. webutils.tcl: web::getContent now decodes JSON content types (application/json*, *+json) without a charset parameter as UTF-8 per RFC 8259; previously the C layer's iso8859-1 CONTENT_ENCODING default won and mangled UTF-8 JSON bodies. genpasswd.tcl: class renamed genPasswd -> web::genPasswd (consistency with web::filerandom), randomness switched from Tcl rand() to web::randombytes with rejection sampling (no modulo bias), shuffle replaced by Fisher-Yates (the old n-random-swaps shuffle produced a biased permutation), new constructor length argument and configure API for all rules; package genpasswd 1.1. Now suitable for real secrets. tests: new src/tests/webutils.test (32 cases) covering web::response -flush, SSE framing, getContent encoding resolution, charset extraction in the raw POST path, multipart UTF-8 roundtrip, returnJson/Text/Binary headers, randombytes, uuidV4, ts, mimeType, full session lifecycle, JSON POST dispatch incl. invalid-JSON error path, and web::genPasswd. mintest.test now cleans up its temp files on the error path too (removed leftover mintest1_1a/b.tcl). Suite: 526 total, 521 passed, 5 skipped, 0 failed. check-in: 8688b218c4 user: alex tags: trunk | |
|
2026-06-16
| ||
| 14:41 | Version-3.7.6 check-in: 526be95da8 user: alex tags: trunk, release, version-3.7.6 | |
|
2026-06-15
| ||
| 18:17 |
sessionInit: uuid argument now takes precedence over AUTH_BEARER
- web::sessionInit now treats the uuid parameter as an override - previously it was only a fallback used when AUTH_BEARER was empty (set id [web::request AUTH_BEARER $uuid]); this made it impossible to load a known session when the request was already authenticated with a different bearer | |
|
2026-05-18
| ||
| 23:53 |
feat(jwt): predictable -json result + opt-in exp/nbf validation
::jwt::verify -json embedded payload/header as nested rl_json objects, - -json: header/payload now raw JSON *string* values (re-parsable). jwt.tcl is in SCRIPT_SOURCES (compiled into script.h via make). | |
|
2026-05-17
| ||
| 18:27 |
build(macOS): embed absolute install_name in libwebsh.dylib
mod_websh.so loaded fine when started via `httpd -X` from Root cause: libwebsh.dylib was linked without -install_name, so its Fix: on Darwin, link libwebsh with Implemented as SHLIB_INSTALL_NAME, appended to MAKE_LIB / | |
|
2026-05-04
| ||
| 13:01 |
build: macOS support and C23 compatibility
Make the build work on macOS (Apple Silicon, Homebrew) without manual C23 compatibility (clang on macOS now defaults to -std=gnu23): * url.c: rename `int bool` to `int boolVal` — `bool` is a reserved Both changes also compile cleanly under C99/C11/C17, so Linux builds Build system (configure.ac, Makefile.in): * Auto-detect APR/APU link flags via `apr-1-config --link-ld --libs` * Introduce SHLIB_EXT (.dylib on Darwin, .so elsewhere) so the * Rename SYSTEMCTL_APACHE to RESTART_APACHE and default it to ":" * Add a Darwin case that sets RESTART_APACHE to * `make clean` now also removes libwebsh*.dylib. Tests pass on macOS 26.4 (Apple Silicon, Tcl 8.6 framework, Homebrew | |
|
2026-05-03
| ||
| 21:12 | Version-3.7.5 check-in: 9c9da42e34 user: alex tags: trunk, release, version-3.7.5 | |
| 19:40 |
Fix double UTF-8 encoding of multipart text form fields
Tcl's -translation binary implicitly sets -encoding binary as a side Fix: after setting -translation binary, explicitly restore the channel websh-test.ws3: switch page charset to utf-8 to match the server's | |
| 19:04 |
Run ldconfig and systemctl as part of make install on Linux; fix make clean after version bumps configure.ac detects /sbin/ldconfig on Linux and sets LDCONFIG accordingly. install-binaries runs $(LDCONFIG) after placing the shared library. The clean target now additionally removes versioned build artifacts via | |
| 18:53 |
Fix make install layout and make clean after version bumps
install-binaries now installs the Tcl package into lib/websh<VERSION>/ install-libraries (Apache only, guarded by INSTALL_APACHE) installs All ln -s calls changed to ln -sf so repeated installs are idempotent. The clean target now also removes versioned artifacts via shell globs | |
| 18:16 | README modified check-in: 8efac65967 user: alex tags: trunk | |
| 18:04 |
Fix compiler warnings, runtime crashes, and encoding handling
Compiler warnings (-Wunused-but-set-variable, dangerous function): Runtime crash (SIGSEGV in rawReadPostData): Encoding handling (web::getContent, CONTENT_ENCODING): Missing header: | |
| 18:02 |
Migrate build system to TEA 3.13 (Tcl Extension Architecture)
Replace the Scriptics-era SC_* macro build system with the standard TEA - Add configure.ac (replaces configure.in) using TEA_* macros | |
|
2026-05-01
| ||
| 15:34 | Missing randombytes.h 3.7.4 check-in: 6531bf2c67 user: alex tags: trunk | |
| 14:53 | Version-3.7.4 check-in: df70fdeaa4 user: alex tags: trunk, release, version-3.7.4 | |
| 12:48 | sse-client.html with sse-dispatch.ws3, which uses the web::command / web::dispatch routing pattern; includes a simple progress stream and a long-running job with client-disconnect detection via catch. check-in: 937ffe2f69 user: alex tags: trunk | |
| 12:31 |
Add SSE streaming support and update examples
Introduce real-time Server-Sent Events streaming for mod_websh: - webout.h: add ResponseFlushHandler typedef and flushHandler pointer Without ap_rflush, SSE events were buffered by Apache and only delivered | |
|
2025-02-17
| ||
| 20:41 | Version-3.7.3 check-in: 996e75b4ff user: alex tags: trunk, release, version-3.7.3 | |
| 20:32 | Webutils completely revised: ::web::configSetup, ::web::loggingSetup, ::web::sessionClose, ::web::sessionGet, ::web::sessionInit, ::web::sessionNew, ::web::sessionRefresh, and ::web::sessionSetup. check-in: 7b873279ef user: alex tags: trunk | |
| 20:25 | Check for Authorization Bearer and save token AUTH_BEARER. check-in: 481ce9478b user: alex tags: trunk | |
|
2024-06-26
| ||
| 15:43 | add unix Makefile check-in: 3dbacf24c8 user: alex tags: trunk | |
| 15:41 | some changes to webutils: web::ts, web::getContent and web::returnBinary; new: web::mimeType and web::returnText check-in: 6afcbe2d22 user: alex tags: trunk | |
|
2024-03-29
| ||
| 08:21 | Version-3.7.2; embedded some new tcl files: filerandom.tcl genpassword.tcl jwt.tcl webutils.tcl; added c function web::randombytes check-in: e36242c28b user: alex tags: trunk, release, version-3.7.2 | |
|
2022-01-05
| ||
| 16:08 | Version-3.7.1 check-in: 82f8a9adad user: alex tags: trunk, release, version-3.7.1 | |
| 15:51 | dispatch via formvar; dispatch order is now: 1. http get, 2. http header, 3. http post json, 4. form var check-in: b1b36b4a7b user: alex tags: trunk | |
| 12:41 | logdest -format new format specifications: $U microseconds and $M milliseconds check-in: b41a3d3fc6 user: alex tags: trunk | |
|
2020-06-26
| ||
| 13:40 | dispatch via cmd tag in http header; example: 'cmd' = 'X-CMD' -> request 'HTTP_X_CMD'; dispatch order is now: 1. http get, 2. http header, 3. http post json check-in: e4f003341f user: alex tags: trunk | |
|
2020-06-23
| ||
| 13:26 | prepare v3.7 check-in: 5e388a2532 user: alex tags: trunk | |
| 13:15 | cJSON merged into trunk check-in: e3cabd351a user: alex tags: trunk | |
| 12:48 | if post data is 'application/json', parse JSON for cmdTag and set request-POST_CMDTAG_JSON. if there is no cmdTag in get data then dispatch command from POST_CMDTAG_JSON. closed check-in: 13e07f6bc8 user: alex tags: cJSON | |
|
2020-06-22
| ||
| 14:43 | remove unnecessary files check-in: 901bf599f8 user: alex tags: cJSON | |
| 14:41 | add cJSON into rawReadPostData for implementing cmd dispatch and track via application/json check-in: 7946711abf user: alex tags: cJSON | |