request-processor-procs.tcl

  • last updated 11 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Simplify expression

exclude status code 200

fixing internal redirect to error pages from application packages

Revert massive replacement of empty list creation sentences. The use of '[list]' instead of '{}' adds semantics that could be used for performance improvements in the future, such as using a different internal representation. There is already work in this direction, avoiding the generation of the string representation during comparison of empty strings (huge thanks to Stefan Sobernig for the pointer: https://core.tcl.tk/tcl/info/44527c632ed609c2).

  1. … 475 more files in changeset.
Prefer '{}' to '[list]' when creating empty lists

  1. … 71 more files in changeset.
improve documentation, remove obsolete documentation

modernize tcl

  1. … 3 more files in changeset.
Fix template resolution of inheritance

Use acs_magic_object instead of acs_lookup_magic_object

  1. … 1 more file in changeset.
fix internal redirection to beautified error pages in connection with host-node-mapped subsites

remove unneeded "ns_conn close" operations (connections are already closed by prior commands).

Improve error message

Improve documentation

Make reporting of errors more consistent; verbosity can be probably reduced in the future

Fix integration with old-style error handling

Exception handling reform (part 1)

- implement ad_try based on (byte-compiled) Tcl try to make exception

handling more Tcl compliant

- Replace several "catch" operations in request-processor by ad_try

- de-spaghetti "rp_handler" and factor out "rp_handle_request"

- Provide error context in log message in a more uniform way

- handle ds stub-procs in a more uniform way:

provide as well a stub for "ds_init" instead of

wrapping it into a "catch" operation.

- move deprecated procs "ad_return" and "rp_handle_adp_request"

from request-processor-procs to deprecated-utilities-procs.tcl

- bump version number of acs-tcl to 5.10.0d2

    • -295
    • +263
    ./request-processor-procs.tcl
  1. … 4 more files in changeset.
Make behind_secure_proxy_p more robust against unexpected values in X-SSL-Request

Add dcommented debug line

Bug fix: avoid confusion between command argument and option, when argument starts with "-"

  1. … 81 more files in changeset.
Don't throw an error, when no url2file mapping exists

merged changes from the oacs-5-9 branch and resolved conflicts

    • -182
    • +394
    ./request-processor-procs.tcl
  1. … 7834 more files in changeset.
applying a solution for the minor-version upgrade, not requiring larger refactoring

  1. … 2 more files in changeset.
Setting global var as well in -procs file (debuggin install from repo)

Standardize spellings of names

  1. … 6 more files in changeset.
- additional subcommand [ad_conn vhost_url] to obtain the url of host-node-mapped subsites

- solve the problem with util_current_directory via [ad_conn vhost_url]

  1. … 1 more file in changeset.
- add [ad_conn behind_proxy_p] and [ad_conn behind_secure_proxy_p] to centralize logic

- use the new function fix [security::get_qualified_url] when running behind a proxy

  1. … 2 more files in changeset.
- add [ad_conn ajax_p] to check, whether the request was an ajax requests (assumption: ajax-request sets header-field -Requested-With: XMLHttpRequest")

- extend permission::require_permission to omit redirection of unauthenticaed users to the login page for ajax requests

  1. … 1 more file in changeset.
Add ability to include actual user in the access log (see as well updated sample OpenACS config file in the NaviServer repository)

Remove over-eager safety check

Prefer variable over proc to access the kernel id