acs-content-repository-procs.tcl

  • last updated 1 hour ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Harmonize parameter names in proc documentation removing unnecessary hyphens

  1. … 4 more files in changeset.
Fix typos

Fix typo

fix typos

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

  1. … 7834 more files in changeset.
Improve robustness of "file delete" operations

  1. … 19 more files in changeset.
.xql-file reform of acs-content-repository

- remove sql statements from the code, where these are provided via .xql

- prefer empty sql statements over various forms of *SQL*

- remove unneeded sql queries

cr_check_orphaned_files.fetch_path

content::item::upload_file.get_parent_existing_filenames

content::revision::new.update_lob_attribute

content::init_all.get_template_url

content::init.get_live_revision

content::init_all.get_live_revision

cr::keyword::item_unassign.item_unassign

cr::keyword::get_keyword_id.select_keyword_id

cr::keyword::item_unassign_children.item_unassign_children

cr::keyword::item_get_assigned.get_keywords

cr::keyword::item_get_assigned.get_child_keywords

cr::keyword::get_options_flat.select_keyword_options

publish::write_content.get_revision_id

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

    • -11
    • +74
    ./acs-content-repository-procs.tcl
  1. … 2547 more files in changeset.
- better handling of potentially incorrect file names in the content repository (checking for "" is not enough)

- improve safety of orphan file deletion (e.g in case, fetch_paths returns empty file names)

    • -34
    • +45
    ./acs-content-repository-procs.tcl
  1. … 1 more file in changeset.
acs-content-repository:

- new public function "cr_cleanup_orphaned_files" to clean up orphaned

files incrementally based on cr-file creation log

- added "cr_cleanup_orphaned_files" to "cr_delete_scheduled_files"

to perform cleanup automatically

- new function to handle cr-file creation log, which is used to

removed orphaned files (created by aborted transactions)

- the function "cr_check_orphaned_files" can still be used

for cleaning up orphaned files from times before the

cr-file creation log was in place (that is from the birth of

OpenACS until now).

acs-tcl:

- new function "ad_mutex_eval" for safely executing

tcl commands under a mutex lock

    • -13
    • +18
    ./acs-content-repository-procs.tcl
  1. … 5 more files in changeset.
Added check for trailing slash on cr folder, required for find command to work properly.

    • -17
    • +24
    ./acs-content-repository-procs.tcl
- use external command "find" instead of tcllib package fileutil for speed and better filtering

- add index for much quicker reverse lookup file names in the content repository

  1. … 6 more files in changeset.
- cr_check_orphaned_files: new helper proc to locate (or delete) orphaned files in the content repository (see also bug #2619)

- replace deprecated command "ns_unlink" with native tcl command "file delete"

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

  1. … 367 more files in changeset.
adding defaults to creation_user, creation_ip, content_type to content::item::new

  1. … 7 more files in changeset.
provided default template in oracle

  1. … 5 more files in changeset.
check that the ns_set exists before trying to create new mime types in cr_scan_mime_types

    • -12
    • +14
    ./acs-content-repository-procs.tcl
Merge of all changes from oacs-4-6 to HEAD. All changes up to tag jcd-merge-2

on oacs-4-6 are included.

    • -10
    • +19
    ./acs-content-repository-procs.tcl
  1. … 33 more files in changeset.
remove oracle file, fix fetch_paths query, comment on idiocy of existing delete function fixes bug 81

    • -10
    • +19
    ./acs-content-repository-procs.tcl
  1. … 1 more file in changeset.
merge from oacs-4-6

  1. … 110 more files in changeset.
fix for scanning mime types at startup - not quite the full fix that JeffD proposed, but will get to that

  1. … 2 more files in changeset.
fixed file sweeper proc for oracle

  1. … 2 more files in changeset.
added support for multiple file storage areas

    • -0
    • +37
    ./acs-content-repository-procs.tcl
  1. … 11 more files in changeset.