acs-permissions-procs.tcl

  • last updated 8 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
merge with missing files

  1. … 1464 more files in changeset.
merge from oacs-5-10

    • -156
    • +100
    ./acs-permissions-procs.tcl
  1. … 8099 more files in changeset.
Fix permission::write_permission_p. Before, the check if the user was the creation_user was always made against the currently logged in user, not the party given by the caller.

improved spelling

  1. … 5 more files in changeset.
improved documentation and whitespace changes

improve spelling

  1. … 7 more files in changeset.
Deprecate template::util::is_true, implemented as a simple string command oneliner since 2015 and inline occurrences

  1. … 33 more files in changeset.
revert last change of Antonio, since this kills Oracle again

It is not clear, which code needs integer as results for Boolean results.

If there is such code, it should handle this requirement locally.

Reintroduce cast to integer using a portable idiom

Fixes for Oracle 19c: invalid cast to integer

This fixes the following bug for Oracle:

: invalid positional variable `:', valid values start with 1

: while executing

: "ns_ora 0or1row nsdb0 {

: select acs_permission.permission_p(:object_id, :party_id, :privilege)::integer from dual

: }"

Flush also the threaded cache whenever we flush the permission cache, so that one does not need to call this private api directly

avoid array notation for per_thread caches to ease flushing

  1. … 5 more files in changeset.
Prefer 'namespace which' over 'info commands', as it is faster (on local tests, around 2x) and returns a single value. Many thanks to Nathan Coulter.

  1. … 58 more files in changeset.
Implement a flush method for ::acs::acs::LockfreeCache and use it to reimplement permission::permission_thread_cache_flush

This fixes ad_proc_permission_grant_and_revoke test case

  1. … 1 more file in changeset.
acs::per_request_cache: standardize per-request caching

- added per-request cache verfsy similar to acs::per_thread_cache

- use per-request-cache on several occasions

- bump version number of acs-tcl to 5.10.0d35

  1. … 9 more files in changeset.
use always acs::permission_cache eval instead of code before acs-cache-procs.tcl

fix for issue #3406: honor PermissionCacheTimeout

implement cache partitioning for permission_cache

  1. … 1 more file in changeset.
Fix parameter names in proc doc

Whitespace changes

  1. … 1 more file in changeset.
flag created permission cache via namespaced variable

  1. … 1 more file in changeset.
Hotfix which makes vanilla instance install again

Removed redundant cache creation

Fix else syntax

permission check reform (part 2): provide a separate cache for permission checking

permission check reform (part 1): provide API for permission cache

  1. … 16 more files in changeset.
Fix typos

  1. … 31 more files in changeset.
remove not referened xql queries and files

move queries to deprecated-procs.xql

  1. … 10 more files in changeset.
make code uniform

Improve wording of notice in error log