v0.42.2_fix2

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 12:31:28 +01:00
1 parent 15c7f9ff9e
commit 25148f26eb
14 files changed
+407 -54

No files matched your search

+2
View File
@@ -4,6 +4,8 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.42.2 — Generic FastCGI/CGI hosting and Apache compatibility
- **Web Server `.htaccess` routing fix:** `AcceptPathInfo On/Off/Default` now controls safe FastCGI script suffix dispatch instead of being silently skipped; the original suffix (including final slash) becomes `PATH_INFO`, with `SCRIPT_FILENAME` still constrained to the real script. `RewriteBase` is parsed and applied to relative targets. Default PHP-capable Web Services try `index.php` after the static index names unless an explicit index list was set. Local `ErrorDocument` URL targets (HTTP 400–599) are rendered once for GET/HEAD with the original status preserved; other handlers and unsafe targets remain unsupported. Misconfigured `.php` front-controller rewrites produce a Web Service warning when there is no enabled `.php` FastCGI handler. Regression tests cover a realistic PHP front-controller `.htaccess`, static assets, root indexes, disabled PATH_INFO, local errors and nested base paths. `Options MultiViews`/`FollowSymlinks` continue as explicitly warned unsupported options rather than being falsely reported as supported.
- **Maintenance: status-only Apache redirects:** accept `RedirectMatch 404 /\.` and other bounded 404/410 status-only Redirect/RedirectMatch forms without a target URL. Return the requested status with no `Location` header; keep path hardening and redirect validation. Add a regression fixture with a typical PHP front-controller `.htaccess` file, including unsupported non-security directives in non-strict mode.
- **Maintenance: observable DNS/DDNS ACLs:** keep the exact system DNS error or timeout rather than a generic failed-lookup warning. Failed refreshes emit structured warnings with hostname and reason; successful initial/change resolutions emit informational events. Add an authenticated read-only `/api/acl/dns-status` view and ACL profile panel diagnostics (active IPs, lookup time, remaining validity, error). DNS errors and expired addresses still fail closed. No change to ACL configuration or permission semantics. Source changes require a full Rust compile/test and deployment smoke test.
- **Legacy Apache access rules:** compile and enforce `Order`, `Allow from` and `Deny from` for `all`, IP addresses and CIDR networks (IPv4/IPv6), including `Deny from all`, rather than rejecting them independent of Strict mode. This preserves access restrictions. Unsupported security and handler constructs still fail closed; non-security unsupported directives remain warnings when Strict is off.