• last updated 23 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Use site_node:: api to retrieve package_url instead of explicit query. Remove unused sql and simplify idiom for fs_get_folder_name.

- 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. … 2 more files in changeset.
Fix typo

Check if we have already a folder with same name before inserting, or we get error in the logs.

Remove small duplication

Remove sql duplication, converge oracle and postgres codebase

    • -14
    • +0
    ./tcl/file-storage-procs-oracle.xql
    • -17
    • +0
    ./tcl/file-storage-procs-postgresql.xql
Prevent user from selecting source folder as destination folder when moving files. Localize feedback messages (thanks to Markus Moser for the germen translation)

    • -0
    • +2
    ./catalog/file-storage.de_DE.ISO-8859-1.xml
    • -2
    • +4
    ./catalog/file-storage.en_US.ISO-8859-1.xml
    • -0
    • +2
    ./catalog/file-storage.it_IT.ISO-8859-1.xml
Remove debugging comment

Use name and title for the copy, rather than name as title and file_upload_name as name. This will make so copied files will have also the same title as the original when this was renamed.

Try conserving file extension in the name when adding the suffix

Localize untranslated messages in the copy file-storage script (thanks to Markus Moser for the german translation)

    • -0
    • +2
    ./catalog/file-storage.de_DE.ISO-8859-1.xml
    • -0
    • +2
    ./catalog/file-storage.en_US.ISO-8859-1.xml
    • -0
    • +2
    ./catalog/file-storage.it_IT.ISO-8859-1.xml
Use a lazy but feasible check to decide if we have buttons for copy in the file storage

Fix hiding of delete and move buttons. For move I resolved using the

delete permission as a criteria, because otherwise one should ensure

also the availability of a suitable destination, which must be writable

and in none of the object's subtrees. Complicated and costly to execute everytime.

Fix spelling errors

  1. … 7 more files in changeset.
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.

    • -153
    • +9
    ./sql/oracle/file-storage-package-create.sql
    • -0
    • +478
    ./sql/oracle/upgrade/upgrade-5.9.1b3-5.9.1b4.sql
  1. … 5 more files in changeset.
file upgrade-5.9.1b3-5.9.1b4.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1b3-5.9.1b4.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1b3-5.9.1b4.sql
Add move and copy buttons only when available folders for these actions exist

Hide file-storage actions that are not allowed for the user. (receives analogous modifications on Learn@WU)

Use standard file-storage delete api, as extlink one seems to require extra sql stored procedures (which don't seem necessary to me)

Fixed german message key

    • -1
    • +1
    ./catalog/file-storage.de_DE.ISO-8859-1.xml
Updated de_DE translation (Dateisystem -> Dateiablage)

    • -3
    • +3
    ./catalog/file-storage.de_DE.ISO-8859-1.xml
Improve robustness of "file delete" operations

  1. … 14 more files in changeset.
- bump version number of OpenACS to 5.9.1b3 and DotLRN to 2.9.1b3

  1. … 79 more files in changeset.
Updating of German translation for many packages (many thanks to Markus Moser)

    • -22
    • +40
    ./catalog/file-storage.de_DE.ISO-8859-1.xml
  1. … 25 more files in changeset.
Updated es_ES translation

    • -12
    • +14
    ./catalog/file-storage.es_ES.ISO-8859-1.xml
  1. … 20 more files in changeset.
Bump version numbers for OpenACS 5.9.1b1

  1. … 81 more files in changeset.
Italian localization of message keys for many packages

    • -13
    • +45
    ./catalog/file-storage.it_IT.ISO-8859-1.xml
  1. … 25 more files in changeset.
- replace "<include ... />" by "<include ... >", since adp parser in

AOLserver and NaviServer passes "/" as argument to the adp-include.

  1. … 14 more files in changeset.
- tighten page contracts

  1. … 2 more files in changeset.
- make boolean tests in .adp files more uniform

  1. … 56 more files in changeset.
- make boolean tests in .adp files more uniform

- standardize entries in de_DE: rule of thumb: when en_US entry does not end with colon, then the german entry should not do so either.

This way, we avoid .adp pages with double colons.

    • -1
    • +1
    ./catalog/file-storage.de_DE.ISO-8859-1.xml
    • -1
    • +1
    ./catalog/file-storage.en_US.ISO-8859-1.xml
  1. … 9 more files in changeset.