• last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Make sorting more robust to invalid sorting criteria: instead of failing, ignore them and report the condition as a warning

improve spelling

  1. … 42 more files in changeset.
improve robustness of deep_copy method

since so far, we do not require that an empty ordered composite has allways

the children variable set (but maybe we should), don't assume it is always

there

For Postgres, take advantage of exclusive database api to check for permissions more efficiently, improve doc

Reduce usage of ns_mktemp in OpenACS

ns_mktemp uses the deprecated old POSIX call mktemp(), which should

not be used anymore for security reasons (race between the name

creation and opening the file). This change removes several usages of

"ns_mktemp" from OpenACS and replaces it with calls to the

safe Tcl call "file tempfile ..." (introduced by Tcl 8.6).

  1. … 2 more files in changeset.
added function xo::write_tmp_file

The new function uses an atomic call to create a temporary file and

is therefore lass prone to attacks.

bumped verison number to 5.10.0d41

  1. … 1 more file in changeset.
whitespace change

add checker for object_ids. In order to use this, a recent version of nsf is required, no accepting abbreviations for all types

tighten checking on input parameters

Cloase bracket

Maintain revision date for "update_attribute_from_slot"

This is not a full-featured version, since it does not update the

modifying user and the modifying IP (since this data is not

always available). But this version is at least good enough

for experimenting and checking for unwanted side-effects.

xotcl-core: upadated version number to 5.10.0d40

xowf: upadated version number to 5.10.0d39

  1. … 4 more files in changeset.
improve robustness when called without connection

avoid subst in export_vars by using xo::update_query

improve comments

Improve fix: do not even fetch the context_id for revisions, so we do not touch it when saving

Make sure that the context_id of a CRItem is always fetched from that of the item, rather than the revision, otherwise we could break object_id = context_id constraint on saving

Fix typo

improve spelling

CrClass->instance_select_query: return context_id of cr_item unless it is explicitly asked differently.

Before, calls like get_folder_children returned items having the context_id of the revision.

Since this attribute is ignored by most applications, it did not harm. However, a recent

bugfix for honoring different context_ids caused troubles. In the worst case, one can

end up with items having its own item_id as context id, which in turn causes

permission queries to loop.

provide default value for storage_type for in-memory created items

Use built-in "ns_parsequery" instead of manual parsing of query parameters

  1. … 1 more file in changeset.
Use built-in "ns_parsequery" instead of manual parsing of query parameters.

Note, that this change might alter query processing, since previously

query parameter without explicit values were treated as boolean values

(like in HTML), now these are treated like "x=" before. The new version is

about 10x faster.

Furthermore, new tests of the regression tests were added for query parameter

processing.

file api-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./test/api-test-procs.tcl
fixed description of test file

    • -3
    • +2
    ./test/xotcl-core-db-tutorial-procs.tcl
perform conditional updates of context_id, fetch now storage_type as well to streamline code in the future

support messages with multiple arguments

reduce verbosity

  1. … 1 more file in changeset.
fix entry in listing of covered procs

    • -1
    • +1
    ./test/xotcl-core-db-tutorial-procs.tcl
reduce verbosity

adjust to api-browser changes for trailing non-positional arguments

  1. … 1 more file in changeset.