• last updated 10 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Use more API when retrieving user info and portrait, streamline queries, put all sql inline

Prefer API over handcrafted queries

Portrait management reform and correction

Moved logics to create a portrait in a proc in order to reuse it in other places

such as picture retrieval services (e.g. Bach picture retrieval at WU). Turns out

we were not doing our homeworks here: when the portrait is created into CR, a

cr_child_rel is created. When the portrait was erased though, this was not cleaned

up propely, leaving dangling acs_objects with no reference in cr_child_rels table.

On busy sites, this can grow in the ten thousands order of magnitude. Changes include

also fix for this behavior and tuples cleanup.

  1. … 12 more files in changeset.
fix ad_form definition (moved redirect in after_submit block, ad_return_template at the end of template outside the ad_form) (thanks to Felix Moedritscher)

Use consistently ad_script_abort after ad_return_error.

Break long lines

  1. … 23 more files in changeset.
add ad_script_abort after ad_returnredirect to make termination intent explicit

  1. … 48 more files in changeset.
make sure to call ad_script_abort after ad_returnredirect

  1. … 2 more files in changeset.
Small improvement for portrait management (deletion)

Exploit existing on delete cascade constraints when we delete a portrait, instead of deleting stuff manually.

Also, put remaining logics into a proc and use it in acs_user::delete to address legit use case of people wanting

to remove a user permanently without removing portrait in advance.

  1. … 1 more file in changeset.
merged changes from the oacs-5-9 branch and resolved conflicts

  1. … 7829 more files in changeset.
- fix and standardize quoting in template properties

  1. … 393 more files in changeset.
- standardize url construction

  1. … 6 more files in changeset.
- standardize url construction to protect against injection attacks

  1. … 55 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2544 more files in changeset.
Loop over the array names instead of the list to resize portrait

Fix contexts and page titles.

remove deprecated calls to ad_parameter

  1. … 5 more files in changeset.
normalize some more string expressions

  1. … 3 more files in changeset.
Change to use form builder

  1. … 1 more file in changeset.
Change to use form builder

    • -0
    • +22
    ./upload-postgresql.xql
Change to use form builder

Replace english text with message keys. Extract sql to xql file

Replace english text with message keys

Replace english text with message keys

HTML 4.01 strict cleanup

Extracting embedded sql

Made sure to flush the cache, fixed form error and guaranteed that old images are deleted as well (cleanup)

Handle thumbnail portraits correctly. Especially delete them when the original changes or was deleted. Additional delete the items for good and not let them linger around. We do not have an interface to resurrect old portraits and if a user willingly uploads or deletes a portrait he should not have a photo album of portraits to come back to.

Merged the 5.3 branch with HEAD. Look for tags with the pattern

drb-*-20070513

  1. … 323 more files in changeset.
Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

  1. … 361 more files in changeset.
Missed this change in my 5.3 merge