• last updated 12 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Cleaned up APM handling of inherited parameters so that deletion of

a dependency works well now, the parameters page with the APM only shows

parameters specified in the package (rather than include inherited ones),

and the XML file is correclty written.

  1. … 6 more files in changeset.
1. nsv for package inheritance etc wasn't being set up when an admin

interactively created a new package using the APM UI. Changes for

5.6 for parameter inheritance caused that nsv to be referenced in this

case, while it wasn't for 5.5. This caused an error message in a couple

of instances.

2. Modified the package xml generator to only output parameters defined

for the package itself (rather than all, including inherited ones).

  1. … 1 more file in changeset.
Ugh ... finally got inherited parameters right.

  1. … 1 more file in changeset.
Needed to build the subsites package keys cache ...

Added a new "rename-instance" node, useful in particular for renaming

"Main Site" to something more useful.

Allow for the specification of "scope" when registering a parameter from

an install xml file.

Finished up PG semantics for global/instance parameters on package upgrade.

The Tcl API stuff to do this should technically be moved down into the

oracle/PG API but 1) it's a fair amount of db-specific work and 2) people

should be using the high level constructs in the first place (and why do

people explicitly register new parameters when they're registered from the

package info file on upgrade in the first place?)

Making global/instance changes work with Oracle

  1. … 2 more files in changeset.
More code dealing with instance and global parameter semantics. I finally

have a reasonable model of inheritance and semantics implemented, not

perfect from a language-theoretic point of view, but works well without

having to rewrite every bit of parameter-handling code in acs-core.

  1. … 5 more files in changeset.
More global parameters stuff: XML file parsing and package installation

Added a test for global parameter set/get value.

Fixed up the apm parameter stuff to the point where I can at least

register and unregister, and cache values of, global parameters. There's

some really funky code here, I also took the time to have the unregister

code use the unregister API in PL/[pg]SQL rather than roll its own.

    • -17
    • +11
    ./test/apm-parameter-test-procs.tcl
Use the same pattern for flushing person::name that has been used to cache it (sigh)

Added "-scope" parameter to apm_register_param

Releasing the handler even if evaluation of code on the proxy throws an error.

In case deleting the package instance throws an error we need to restore the site_nodes cache for the given node_id.

Avoiding the usage of tcl arrays for the partial manipulation of the site_node's cache. Instead we manipulate the cache directly with the nsv_* api. This speeds up updating the cache considerably ( except the case of updating the cache usign the node_id of the main subsite ).

Implements TIP #140. Rollout support for ns_sendmail is now provided by acs-mail-lite. ns_sendmail use is not recommended and deprecated.

  1. … 1 more file in changeset.
- bind session cookie to IP address to avoid session highjacking

- support flag "-discard" for ad_set_cookie (for session cookies)

For controlling the number of backup logs managed by the server (error.log) we have been using the wrong parameter (maxbackup). The right one is logmaxbackup.

  1. … 1 more file in changeset.
- normalize string expressions

- improve portability for tcl 8.5 and naviserver

- added util_memoize_flush_pattern, which works exactly like util_memoize_flush_regexp, execpt

a) it accepts a glob style pattern instead of a regular expression

b) it does not retrieve all memoize keys from the cache, but only the matching keys (via ns_cache names glob parameter)

c) it is much faster

1. Changed trigger functions from "opaque" to "trigger" to get rid of the

warnings during initial install (only for acs-kernel, there are a lot

elsewhere!)

2. Added "embeds" for postgresql and partially for oracle.

3. Added global parameters for postgresql and partially for oracle.

(oracle will be forthcoming shortly)

  1. … 17 more files in changeset.
HTML strict cleanup

  1. … 1 more file in changeset.
Realeasing the handler in case we got it.

Added rp_form_update, like rp_form_put but calls ns_set update instead of

ns_set put.

Changed db_flush to use the ns_cache names pattern construct to only return

the matching names, rather than return all names then flush those that match

the pattern (I was unaware that names took a pattern arg, how embarrasing!)

adding util_current_location_node_id, adding feature to ad_context_bar_multirow to automatically adapt when serving host_node_mapped urls