• last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- 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.
Remove sql duplication, converge oracle and postgres codebase

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

  1. … 12 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.
.xql-file reform of file-storage

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

  1. … 350 more files in changeset.
Merging back to HEAD all changes that happened in branch oacs-5-8 between tags: vg-merge-oacs-5-8-from-20141027 and vg-merge-oacs-5-8-from-20150427

  1. … 520 more files in changeset.
- improve robustness of download-archive

  1. … 2 more files in changeset.
- fix for bloat in cr_folder_type_map caused by file-storage. large sites might have 10 Mio+ entries! see posting in OpenACS Development forum concerning cr_folder_type_map bloat

  1. … 3 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.
- replace deprecated calls

- change spelling of TCL to Tcl

- change requirements to Tcl 8.5

  1. … 64 more files in changeset.
- The C-library function tmpnam() is deprecated since a while. Therefore naviserver has deprecated ns_tmpnam as well.

Therefore we introduce a new function "ad_tmpnam" which requires just a minimal change and uses ns_mktemp.

  1. … 27 more files in changeset.
- new style string expressions

- brace expressions to allow for tcl compilation

- use "in" or not in (ni) operator instead of lsearch

- bump version number

  1. … 23 more files in changeset.
- fix bug with exporting multiple "unnamed files" to the file-system

When there are multiple "unnamed files" in a directory,

the constructed full_name might exist already. This

would lead to an error in the "file copy"

operation. Therefore, the code generates a new name with an

alternate suffix in such cases.

- add missing nonpositional arg

  1. … 1 more file in changeset.
- replace deprecated "item::get_url" by "content::item::get_virtual_path"

  1. … 1 more file in changeset.
- relplace deprecated "item::get_live_revision" by "content::item::get_live_revision"

  1. … 3 more files in changeset.
- replace deprecated "ad_parameter" by "parameter::get"

  1. … 4 more files in changeset.
provide package_id to cr_import_content calls within fs::add procs so that objects reflect the package they are created in

1. Package uninstantiate now cleans up the instance's root folder.

2. Package drop works.

  1. … 5 more files in changeset.
1. Merge 2.4.1 to HEAD other than assessment, imsld, lorsm, and views.

2. Bump version numbers to 2.5.0d1.

  1. … 379 more files in changeset.
Removed the condition to build extra_vars so it won't be NULL, otherwise a null value was causing the query to retrieve URLs of items to fail.

Grabbing a folder's parent_id AFTER YOU DELETE THE FOLDER doesn't work all

that well.

Fixed error with fs_context_bar_list: argument extra_vars isn't use. Add extra_vars to query.

  1. … 2 more files in changeset.
1) Fix image handling. Accidentally commented out by a previous

commit!

2) Fix storage type handling. DO NOT SET storage type to empty string

which is always invalid. I have no idea why that was changed. There is

no reason to check the indbp parameter twice.

HTML Strict cleanup

  1. … 12 more files in changeset.
Fixing bug where label is called but name is meant preventing the proc from dying if the owner does not exist. Also adding the file extension to published file names (if it isn't already at the end of the file) so that a users default application is used instead of asking the user to select an application for a file that may be a doc, pdf, jpg, etc.

Adding support for the categorization of files (if the CategoriesP parameter is enabled for a package instance). Version is increased to 5.4.0d3 and folder, file and simple www/*-edit-2 files were removed and consolidated into www/*-edit.

  1. … 33 more files in changeset.
Allow supressing notifications