acs-content-repository

  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Standardize spellings of names

    • -2
    • +2
    ./tcl/test/content-image-test-procs.tcl
  1. … 11 more files in changeset.
Fix broken link

- Introduce new proc ad_sanitize_filename implementing current best practices for ensuring a valid filename on most filesystems.

- Use it in every place where filename sanitization is performed in the code and deprecate fs::remove_special_file_system_characters.

TODO deprecate also util_text_to_html? Use case of sanitizing urls and filenames might have different requirements.

  1. … 5 more files in changeset.
Fix broken link

Support image sizes on png portraits (as supported by NaviServer)

Fix typo in parameter name

Allow copy of files/folders into the same folder of the original content. This is done by appending a numerical suffix to the name.

It required modifying copy stored procedures so they could accept a different name and title for the copy.

I have also removed redundant package definition in oracle code that was immediately overridden afterwards.

    • -0
    • +685
    ./sql/oracle/upgrade/upgrade-5.9.1b4-5.9.1b5.sql
    • -41
    • +8
    ./sql/postgresql/content-folder.sql
  1. … 8 more files in changeset.
file upgrade-5.9.1b4-5.9.1b5.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1b4-5.9.1b5.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1b4-5.9.1b5.sql
Fix spelling errors

    • -16
    • +16
    ./sql/oracle/upgrade/upgrade-4.7d6-5.0d1.sql
    • -1
    • +1
    ./sql/oracle/upgrade/upgrade-5.2.0d16-5.2.0d17.sql
    • -1
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
  1. … 35 more files in changeset.
Performance improvement in content_item__get_path stored procedure (thanks to Thomas Renner)

file upgrade-5.9.1b3-5.9.1b4.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1b3-5.9.1b4.sql
Fix broken link

Improve robustness of "file delete" operations

    • -2
    • +2
    ./tcl/acs-content-repository-procs.tcl
  1. … 16 more files in changeset.
Make sure that the file-creation.log exists, without using "exec touch", which is not available under windows (see issue #3311).

fix issue #3303: wrong identifier due to different database structure in oracle

- bump version number of OpenACS to 5.9.1b3 and DotLRN to 2.9.1b3

  1. … 79 more files in changeset.
Bump version numbers for OpenACS 5.9.1b1

  1. … 81 more files in changeset.
- Align type of parameter "storage_type" with type definition of cr_items.storage_type

- bump version to 5.9.1d27

file upgrade-5.9.1d26-5.9.1d27.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d26-5.9.1d27.sql
Improve documentation

file upgrade-5.9.1d25-5.9.1d26.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d25-5.9.1d26.sql
- fix bug when updateing a user portrait, which was saved as "lob"

- make upgrade script more robust (when run twice)

- fix cr_revision_latest_tr once more to reduce the number of dead tuples generated for xo* classes

- bump version number to 5.9.1d25

file upgrade-5.9.1d24-5.9.1d25.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d24-5.9.1d25.sql
Trust the users's mime_type when acceptable, or content names that are not filenames won't have a mime_type

- avoid call of deprecated sql variant with 12 args via API (many thnaks to Guenter Ernst)

- handling of NULL values in cr_revision_latest_tr (many thanks to Guenter Ernst)

- bump version to 5.9.1d24

    • -12
    • +13
    ./tcl/revision-procs-postgresql.xql
file upgrade-5.9.1d23-5.9.1d24.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d23-5.9.1d24.sql
Reduced generation of dead tuples in postgres.

Background: In the old version, the fields latest and live

revisions were updated always via two separate dmlDML statements.

Every update causes in PostgreSQL (tested to pg 9.6) one more dead

tuple, such that on busy systems, we see 30k + dead tuples per

hour. These dead tuples in turn cause more auto vacuum operations

and can lead to abandoned query plans.

This change can reduce the number of dead tuples on cr_items into

half, by allowing both fields to be set in one operation (namely

content_item__set_live_revision). This function has an optional 4th

argument that can cause this optimization. For legacy applications,

nothing changes.

Btw: since all commonly used applications use the live revision, the

fallback of the latest_revision is unused. One can consider to

remove the cr_revision_latest_tr, at least on on certain

installations.

bump revision to 5.1.9d23

    • -23
    • +31
    ./sql/postgresql/content-item.sql
    • -6
    • +13
    ./sql/postgresql/content-revision.sql
file upgrade-5.9.1d22-5.9.1d23.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d22-5.9.1d23.sql