acs-content-repository

  • last updated 23 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Removed calls to deprecated NaviServer functions

  1. … 3 more files in changeset.
Cleanup array idioms

    • -6
    • +5
    ./tcl/test/content-item-test-procs.tcl
Prefer unset to array unset when the whole array should be deleted

See https://wiki.tcl-lang.org/page/Dict+VS+Array+Speed

  1. … 3 more files in changeset.
merge with missing files

    • -0
    • +4
    ./catalog/acs-content-repository.ar_EG.utf-8.xml
    • -0
    • +4
    ./catalog/acs-content-repository.ar_LB.utf-8.xml
    • -0
    • +5
    ./catalog/acs-content-repository.ca_ES.ISO-8859-1.xml
    • -0
    • +4
    ./catalog/acs-content-repository.ch_zh.utf-8.xml
    • -0
    • +4
    ./catalog/acs-content-repository.da_DK.ISO-8859-1.xml
    • -0
    • +13
    ./catalog/acs-content-repository.de_DE.ISO-8859-1.xml
    • -0
    • +5
    ./catalog/acs-content-repository.el_GR.utf-8.xml
    • -0
    • +5
    ./catalog/acs-content-repository.en_AU.ISO-8859-1.xml
    • -0
    • +13
    ./catalog/acs-content-repository.en_US.ISO-8859-1.xml
    • -0
    • +4
    ./catalog/acs-content-repository.es_CO.ISO-8859-1.xml
    • -0
    • +4
    ./catalog/acs-content-repository.es_ES.ISO-8859-1.xml
    • -0
    • +5
    ./catalog/acs-content-repository.es_GT.ISO-8859-1.xml
    • -0
    • +5
    ./catalog/acs-content-repository.eu_ES.ISO-8859-1.xml
    • -0
    • +5
    ./catalog/acs-content-repository.fi_FI.utf-8.xml
    • -0
    • +4
    ./catalog/acs-content-repository.fr_FR.ISO-8859-1.xml
  1. … 1450 more files in changeset.
merge from oacs-5-10

    • -0
    • +21
    ./sql/oracle/upgrade/upgrade-5.10.0d8-5.10.0d9.sql
    • -0
    • +32
    ./sql/oracle/upgrade/upgrade-5.10.1b3-5.10.1b4.sql
    • -0
    • +45
    ./sql/oracle/upgrade/upgrade-5.10.1d4-5.10.1d5.sql
  1. … 8085 more files in changeset.
bumped version number from development version to release version

  1. … 93 more files in changeset.
regenerated documentation

  1. … 426 more files in changeset.
improved spelling

  1. … 13 more files in changeset.
reduce verbosity

Update italian localization

    • -0
    • +5
    ./catalog/acs-content-repository.it_IT.ISO-8859-1.xml
  1. … 2 more files in changeset.
include message keys for common content repository fields, bumped version to 5.10.1b5

    • -0
    • +5
    ./catalog/acs-content-repository.de_DE.ISO-8859-1.xml
    • -0
    • +5
    ./catalog/acs-content-repository.en_US.ISO-8859-1.xml
Claim additional coverage

    • -1
    • +2
    ./tcl/test/content-item-test-procs.tcl
Rework test to avoid hardcoded assumptions

    • -12
    • +8
    ./tcl/test/content-item-test-procs.tcl
reduce verbosity

Document behavior: the assumption that one can derive the filename from the api is not correct in case of copies

Revert https://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-10%3Aantoniop%3A20240423144330

currently, file-storage will copy files by simply copying the revision entry of the new file from the original one. This means that copied files will in fact point to the same filesystem file of the original.

This "works" because the file-storage api will currently never delete a file from the filesystem, so deleting the original file will not affect the copies.

This behavior is probably not ideal, but we won't address it before the release, as to change it will most likely require some careful planning, in particular for existing installations.

Prevent sneaking symlinks in the content repository

Many thanks to Thomas Rennner and Günter Ernst for analyzing the issue

cr_write_content reform

when serving files, do not trust the content information, as the absolute path to the file can be determined programmatically in this case.

This also reduce divergency between Oracle and Postgres

Add new extension mjs, for Javascript modules, to the Javascript mime type

    • -0
    • +32
    ./sql/oracle/upgrade/upgrade-5.10.1b3-5.10.1b4.sql
file upgrade-5.10.1b3-5.10.1b4.sql was initially added on branch oacs-5-10.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.10.1b3-5.10.1b4.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.10.1b3-5.10.1b4.sql
deprecate unused command cr_check_orphaned_files

    • -2
    • +2
    ./tcl/acs-content-repository-procs.tcl
Cleanup of external binaries: always use "util::which" to resolve binaries

Furthermore, this change makes the handling of "identify" consistent

with "convert". Before, the parameter "ImageMagickIdentifyBinary"

could not be modified via the parameter settings, only

"ImageMagickConvertBinary" was defined.

Bump version number to 5.10.1b3 to pick up additional parameter.

Handle differences in data-model between oracle and postgres, where oracle uses an additional filename column in the cr_revisions table when a revision points to a file

Many thanks to Josue Cardona for reporting the regression

Increase proc coverage

    • -1
    • +31
    ./tcl/test/content-revision-test-procs.tcl
Reitroduce missing query clause that should be executed when we retrieve the content of a text/* content item

    • -0
    • +7
    ./tcl/content-item-procs-postgresql.xql
Test that when content::item::get_content is called on a text/* mime typed content-item, an extra "text" attribute should be returned in the result array

This currently fails because of a missing query in the xql

    • -1
    • +10
    ./tcl/test/content-item-test-procs.tcl
Redefine content_item__get_virtual_path so that get_virtual_path__root_folder_id argument is not ignored

file upgrade-5.10.1b1-5.10.1b2.sql was initially added on branch oacs-5-10.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.10.1b1-5.10.1b2.sql
Test content::item::get_virtual_path

This will expose a logn standing bug where the root_folder_id argument is ignored

    • -1
    • +26
    ./tcl/test/content-item-test-procs.tcl
Extend test suite

    • -1
    • +14
    ./tcl/test/content-item-test-procs.tcl