• last updated 17 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates

1. Changed a lot of package info files to fix problems ...

2. Added Vinod's bboard patch

3. Rationalized party e-mail checking by putting a "before insert or update"

trigger on the table that lower-cases email (this was already done by the

party.new() func but at least one update missed this). Got rid of all

"lower(email) = " and "upper(email) = " checks and just made all use the

db email column directly and lower-cased Tcl vars. In this way the index

on the email column is always and consistently used without needing to

define functional indexes on the column (an EE feature for Oracle).

4. Rationalized naming of a couple of workflows and fixed a glossary PG bug

where apparently its workflow got overwritten by one from the CMS at some

point in time.

5. Made the .cmp/.dat/.frm filters in the template code usable though not

very beautiful nor exactly correct. But with practice you can use them

to debug pages in the packages/* hierarchy. I also turned these off by

default as there's no need to run these filters on a production site!

6. Performed minor surgery on templating, including adding a new

"ad_return_exception_template" that allows you to return a templated

error page and aborts the script.

7. ??? probably but I think this covers most stuff.

    • -1
    • +1
    ./www/shared/whos-online-postgresql.xql
  1. … 70 more files in changeset.
don't allow creation_user to be 0 because it will fail the referential constraint

Added a simple database error template that can be used instead of

ad_return_complaint.

    • -0
    • +13
    ./www/shared/db-error.adp
patch 111 applied

patch 136 applied

    • -7
    • +0
    ./www/admin/site-map/index-postgresql.xql

Added C. R. Oldham's patch to fix membership testing (unimplemented in ACS

4.2). Ported it to PG on the way ...

  1. … 6 more files in changeset.
yet another .tcl extension removal from links

    • -2
    • +2
    ./www/admin/site-map/instance-delete.tcl
  1. … 2 more files in changeset.
yet another .tcl extension removal from links

in index.tcl: changed unmounted.tcl to unmounted

applied patch 112, user-login will wrongly redirect registered users to the register page if they have upper case characters in their email address. This patch changes the query to do the authentication comparison case insensitively.

patches 141,142,143 by Gilbert Wong. Fixes broken awaiting-email-verification

    • -1
    • +1
    ./www/register/awaiting-email-verification-oracle.xql
    • -6
    • +7
    ./www/register/awaiting-email-verification-postgresql.xql
applied patches 130,131,132,133,134,135,137

    • -4
    • +6
    ./www/register/awaiting-email-verification-postgresql.xql
  1. … 6 more files in changeset.

1. Added session-update.tcl, a small utility which somewhat safely allows

you to put up a link that changes a session_property, for instance to

change the number of items displayed or that sort of thing. The caller

must sign their values and URL, which are verified by the callee via

ad_page_contract. If the referrer doesn't match the signed expected

referrer, you get bounced. I think this is reasonably secure (though

permissions should always be rigorously checked on all pages, of course)

2. acs_events had an html_p flag in the datamodel but no way to set it.

Fixed. It should really be a mime-type but since it's not using the

CR, and since I'm extremely busy with other stuff, I didn't fix it.

3. While doing #1 above I learned that signing and verifying arrays didn't

quite work. Fixed.

4. Found and fixed a small problem with my earlier work on the currency widget.

    • -0
    • +35
    ./www/shared/session-update.tcl
  1. … 12 more files in changeset.
Reverse a change introduced in rev 1.4 which breaks the group-new

admin page

added user service contract

    • -0
    • +144
    ./sql/oracle/user-sc-create.sql
parameterized url of community member page; changed some procs to use the parameter; changed some pages to use the procs instead of linking directly

  1. … 2 more files in changeset.

1. home.tcl - applied patch from SDM to use ad_pvt_home rather than a

fixed value.

2. defs-procs.tcl - applied patch that fixed a "link within a link" problem.

3. content_item.tree_sortkey had no index (gulp!)

  1. … 2 more files in changeset.

switched this to use "all_object_party_privilege_map" ...

    • -1
    • +1
    ./www/permissions/index-postgresql.xql

Added code to make use of David Walker's wonderfully abusive hack on the

pg_proc table that showed me how to write recursive SQL functions. We now

have good use of the index on tree_sortkey when climbing the tree, woo-hoo!

    • -3
    • +3
    ./www/admin/site-map/index-postgresql.xql
  1. … 18 more files in changeset.

Changed the representation of tree_sortkeys from "text" to "bit varying".

    • -2
    • +2
    ./www/admin/relations/add-postgresql.xql
  1. … 62 more files in changeset.
Move "children_count" query from .xql to here.

    • -0
    • +10
    ./www/permissions/one-postgresql.xql
Added oracle-specific "children_count" query which was in the .xql file

Removed PG-specific query from SQL92 file.

Switched tree-based queries to a tree-using form, which will greatly enhance

scalability...

    • -3
    • +4
    ./tcl/application-group-procs-postgresql.xql
    • -1
    • +1
    ./tcl/subsite-callback-procs-postgresql.xql
    • -1
    • +1
    ./www/admin/group-types/new-postgresql.xql
    • -1
    • +1
    ./www/admin/group-types/one-postgresql.xql
  1. … 12 more files in changeset.

Put the .info file in alignment with this package's world...

More permissions speeding up, or at least that is the theory...

First round of speedups for verious permissions issues. Key finding is that

the all_object_party_privilege_map is speedy in PostgreSQL and apparently in

Oracle, as well (having re-read some of the optimization threads).

    • -5
    • +2
    ./www/admin/rel-types/one-postgresql.xql
    • -2
    • +2
    ./www/permissions/index-postgresql.xql
  1. … 12 more files in changeset.
updated package_instantiate_object for PG

took out extraneous logging notices

updated package procs and relation procs to provide better handling of

additional variables. This *may* cause some things to break, and the added

functionality is not yet PG-compatible. It will be soon, though. (ben)