tcl-documentation-procs.tcl

  • last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- change reporting level from "error" to "warning" (errors expect actions from developers)

- allow "." in "token"

- allow tcl arrays to be passed via reference in an include_contract

- use in/ni expressions rather than lsearch

- remove unneeded quotes

make signed parameters more useful:

- added secret for parameter signature (can be configured

in config file in section "ns/server/${server}/acs"

parameter "parametersecret"

- allow specification of expiration for signed parameters via

"max_age" in export_vars (eg. "user_id:sign(max_age=20)", meaning:

valid for 20 seconds)

- don't advertise deprected procs in documentation

  1. … 1 more file in changeset.
- fix warning message

- reduce verbosity and improve documentation

- make ad_include_contract more robust. Allow passing of multirows without throwing errors about missing data

- fix path variable

- add info from ad_include_contract in api-browser

- add information, where a page/include contract was violated to error message

    • -110
    • +122
    ./tcl-documentation-procs.tcl
  1. … 3 more files in changeset.
- new call ad_include_contract: similar to page_contract, but for <include ...>

- prefer lassign over multiple lindex operations

- add editor hints to keep spaces/tabs in the furture more consistent

  1. … 754 more files in changeset.
- add space to "token" to make it general useful for api-browser

- update documentation

- remove uneeded backslashes

- add "path" to page contract filters to improve security, used e.g. by api-doc in procs-file-view

  1. … 1 more file in changeset.
- backport from head to ease using HEAD modules

  1. … 1 more file in changeset.
- add colon to the alloed characters of a token for page-contracts, to make it usable for api-browser

- use 422 (Unprocessable Entity) for complaints, which are mostly coming from page-contracts

  1. … 1 more file in changeset.
- standardize url construction to protect against injection attacks

  1. … 5 more files in changeset.
- rename "wordplus" by "token"

- rename "wordplus" by "token"

- add "word" and "wordplus" for page contract filters to improve security

  1. … 1 more file in changeset.
- use plain characters in for page contract filter names

- add word+ page contract

  1. … 1 more file in changeset.
- add page contract filter for words

  1. … 1 more file in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

    • -137
    • +154
    ./tcl-documentation-procs.tcl
  1. … 2547 more files in changeset.
-fix for tcl-expressions in message catalogs (see

http://openacs.org/forums/message-view?message_id=4185876)

This must be most likely quite an old bug, since many packages

use unescaped square brackets in message strings, some packages

such as evaluation have even tcl code there. strangely, there is

no bug-report for this, seems as if the contract-filters

"string_length" and "range" are not widely used.

- bump version number

  1. … 8 more files in changeset.
- don't run validation, if required variables for the validation were not provided

- run validation blocks only when earlier validation steps were successful