• last updated 4 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Refactor content repository backend

The refactored code is a first step to become able to provide plugins

for backends for storing content in different systems. Instead of

using switch statements to distinguish between backends "file", "lob"

and "text", procs with a suffix of the storage name are provided

now. Essentially, by providing process with additional suffixes can be

used to provide additional storage systems.

In addition, the deletion handling was also refactored such that the

non-scalable functions iterating over all items (such as

"cr_check_orphaned_files") will become obsolete. This is imporant for

content repositories with double and triple digit terabytes.

  1. … 16 more files in changeset.
improve spelling: move closer to the linux documentation recommendations

  1. … 34 more files in changeset.
Add 'content::revision::get_title', a simple proc to get the title of a particular 'content_revision'

Use '::content::item::get_content_type' instead of the deprecated '::content::item::content_type'

Removed obsolete @arch-tag

  1. … 26 more files in changeset.
Whitespace changes

Delete duplicated parameter in proc doc

fix broken API function acs_object_type::get_table_name (broken since 13 years) and use API instead of direct SQL queries

  1. … 7 more files in changeset.
unify spelling of names

  1. … 3 more files in changeset.
Fix typos

  1. … 42 more files in changeset.
fix typos

  1. … 14 more files in changeset.
Bug fix: avoid confusion between command argument and option, when argument starts with "-"

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

  1. … 7834 more files in changeset.
Fix spelling errors

  1. … 49 more files in changeset.
Created new proc cr_check_mime_type, centralizing the retrieval of the mime_type from uploaded file's information.

Applied the new proc to the different situations in the system when we require mime_type retrieval: content-repository, file-storage and xotcl CrItem

TODO: get the real mime_type from the file content, but this would require some modification in the data model.

  1. … 7 more files in changeset.
- prefer sql statements between curly braces

  1. … 10 more files in changeset.
- add editor hints to keep spaces/tabs in the furture more consistent

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

  1. … 2547 more files in changeset.
- use "in" operator instead of "lsearch"

- use numeric comparison operator for truth value comparisons

  1. … 3 more files in changeset.
- use "in" or not in (ni) operator instead of lsearch (for readability and performance)

- use "eq" instead of "string equal"

  1. … 3 more files in changeset.
- modernize tcl

  1. … 9 more files in changeset.
- use "lassign" instead of "foreach ... break" idiom

  1. … 5 more files in changeset.
Non-info file merge results, with conflicts resolved.

  1. … 203 more files in changeset.
Fix use of ns_mktemp with /tmp/ hard coded. Fix case when tmp file is not cleaned up when a string is used for a file storage type

- remove lock statements, which seem not needed anymore with Postgres 8.2 or newer

  1. … 1 more file in changeset.
Rolled back abortive attempt to substitute dbms_log stuff for java

  1. … 4 more files in changeset.
Merged 5.3 to HEAD

  1. … 60 more files in changeset.
Got rid of reliance on Java for Oracle. Removed unused old functions. Hopefully someone else can help with a fresh install test as well

  1. … 5 more files in changeset.
Bug#3107 Document use of tmp_filename. The caller needs to clean up

the tmp file. The content repository does not "know" what the proper

procedure is to handle the file.

  1. … 1 more file in changeset.
Major cleanup of item-procs, replaced DB calls by calls to content::item::* in 18

of the 24 deprecated procs, just six procs are still required. Commented most

of the affected calls in ::content::item::*

  1. … 4 more files in changeset.