• last updated 9 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix for issue #3438

fix for issue #3440: problem with SQL queries in db_transactions after some db_multirows

the was a problem with with db_handle management in complex setups,

where a db_multirow iterating over more than one tuple causes

some other queries in the transaction to fail. See as well

the new test case added to the regression test.

Many thanks to Keith Paskett for reporting and the good test case!

https://openacs.org/bugtracker/openacs/bug?format=table&bug_number=3440

    • -131
    • +152
    ./tcl/01-database-procs.tcl
    • -0
    • +102
    ./tcl/test/db-proc-test-procs.tcl
file db-proc-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/test/db-proc-test-procs.tcl
update comments concering CSP "report-to" directive

improve documentation

provide compatibility function ns_dbquotelist, which is available in newer versions of NaviServer

fix broken dict

delete cut&pate error

added per-thread caching for "static" sitenotes. In case these will change (never saw a system where this happend), either a broadcast flush or a restart is needed.

extend icanuse cases

provide a clearer name for method (flush_pattern_in_all_partitions) and make it protected

add one more sample combination of traced commands

new method PartitionedCache->flush_all_pattern to iterate over all partiations to perform a glob-style deletion from the cache

whitespace and spelling changes

Added HashKeyPartitionedCache:

This is type of cache is like a "KeyPartitionedCache" but works as

well with strings as keys while the "KeyPartitionedCache" requires numeric

keys.

mark "acs_lookup_magic_object" explicit as deprecated,

use "acs_magic_object" instead (which is per-thread cached)

fix output from tcltrace procs

Remove ID size restriction in regexp

flush per_request_cache also when patterns are flushed

Increase the id length check by regexp in 'application_data_link::scan_for_links'

Use 'acs_testing' authority in 'party_procs_test' test case

    • -1
    • +2
    ./tcl/test/community-core-test-procs.tcl
Use 'acs_testing' authority in 'person_procs_test' tet case

    • -1
    • +2
    ./tcl/test/community-core-test-procs.tcl
reduce verbosity

add callback invocation into parameter::set_global_value and parameter::set_value

to achieve a more consistent behavior

  1. … 1 more file in changeset.
Fallback to 'util_current_location' when 'ad_url' returns an empty string, such in cases when the SystemUrl is not set, on the util_http_json_encoding testcase

added missing editor hints

  1. … 17 more files in changeset.
whitespace changes

    • -79
    • +79
    ./tcl/request-processor-init.tcl
  1. … 1 more file in changeset.
Add an exception for the 'berkdb' command, defined in the global namespace by the Berkeley DB Tcl extension, to the 'naming__proc_naming testcase'

Add exceptions for some commands defined in the global namespace by the 'Trf' Tcl extension to the 'naming__proc_naming testcase'

provide compatibility wrappers for AOLserver and NaviServer before 4.99.17