• last updated 16 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- fix typo

- fix typo

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.
- address bugs #3244 and #3245

  1. … 1 more file in changeset.
- add convenience function ad_tmpdir

- replace deprecated ns_tmpnam by ad_tmpdirname or ad_tmpdir

  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.
- don't assume that the global variable errorInfo is always set

Renamed util::unzip_file to util::unzip and util::zip_file to util::zip. Fixed procedure call in file-storage

  1. … 1 more file in changeset.
Added util::unzip_file utility

Use full command path when invoking zip utility. Also check for zip presence on the system.

Introduced new util::zip_file command to create zip files programmatically in an OS independent manner.

  1. … 1 more file in changeset.
- mark more of the functions as deprecated which are not called

by the major 80 packages and for which popular alternatives exist

* pkg_home (-> acs_package_root_dir)

* ad_get_user_info (-> acs_user::get)

* exists_or_null (-> tcl builtins)

* lmap (danger, this function is a built-in of Tcl 8.6)

* template::util::server_root (-> $::acs::rootdir)

* template::util::display_value (-> ns_log)

* template::util::proper_noun (-> string totitle)

* template::util::string_range (-> string range)

* template::util::get_cookie (-> ad_get_cookie)

* template::util::set_cookie (-> ad_set_cookie)

* template::util::clear_cookie (-> ad_set_cookie)

- util_wrap_list: fix bug, when length of first word less then indent

(space was missing)

  1. … 5 more files in changeset.
- mark functions as deprecated which are called only by deprecated functions

  1. … 2 more files in changeset.
- remove last occurence of call to deprecated code (util_ReturnMetaRefresh)

- code did not work behind reverse proxy, did not use more general secure_conn_p

- tested with recent versions of IE

- please complain, in case your experience a problem, we find a solution

- change spelling of TCL to Tcl

- change requirements to Tcl 8.5

  1. … 64 more files in changeset.
- moved util_link_responding_p and util_get_http_status to

http-client-procs and based it on util::http::*.

- marked util_link_responding_p and util_get_http_status as

deprecated, moved a new version into the util::* namespace

and turned positional arguments into non-positional

  1. … 1 more file in changeset.
- add new utility-function for en/decoding the "path" part using the url-encding scheme as define in RFC 3986. The functions are defined as stubs for backward compatibility for aolserver, since aolserver uses always the same encoding

- use ad_urlencode_path in file-storage where necessary

- some cleanup

  1. … 1 more file in changeset.
- include pid of child process as well in error message

- with_finally: include exit code in error message in case we have a CHILDSTATUS error

- don't call deprecated util_ReturnMetaRefresh which does not seem necessary, at least for internal redirects

- Sanitize URL to avoid potential injection attack (many thanks to Frank for reporting it)

- add "nsudp" to the list of known socket drivers

Committed new API for HTTP client functionality, moved old HTTP client procs to the new file and set them as deprecated.

  1. … 1 more file in changeset.
- reduce verbosity

- Provide a mechanism, that util_user_messages are not swallowed in

return redirects. When ad_returnredirect sets a util_user_messages

it is now safely provided at the target page.

- make sure to use the configured tmp directory in case no template is specified

- 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.
- fix typo in variable name (many thanks to jim for reporting)

acs-content-repository:

- new public function "cr_cleanup_orphaned_files" to clean up orphaned

files incrementally based on cr-file creation log

- added "cr_cleanup_orphaned_files" to "cr_delete_scheduled_files"

to perform cleanup automatically

- new function to handle cr-file creation log, which is used to

removed orphaned files (created by aborted transactions)

- the function "cr_check_orphaned_files" can still be used

for cleaning up orphaned files from times before the

cr-file creation log was in place (that is from the birth of

OpenACS until now).

acs-tcl:

- new function "ad_mutex_eval" for safely executing

tcl commands under a mutex lock

  1. … 5 more files in changeset.
- get rid of old-style parameter passing