• last updated 7 hours ago
Constraints: committers
Constraints: files
Constraints: dates
Sign the return_url we set when we generate a zip file to prevent tampering

  1. … 1 more file in changeset.
check permission before adding file to zip directory

Make use of new API "ad_mktmpdir" and "ad_opentmpfile" instead of "ad_tmpnam"

  1. … 6 more files in changeset.
Restrict more the kind of items that can pass through the initial check

Make sure a non-empty return URL is always provided when downloading a zipfile, or the javascript idiom implementing the redirect would return to the page itself and restart the archiving from scratch

  1. … 1 more file in changeset.
Improve zip file download solution: instead of a link to be clicked, stay closer to previous implementation and trigger the download automatically by including an invisible iframe pointing to the file in the user message

  1. … 4 more files in changeset.
Implement a simple "progress-bar" interaction when one downloads a zip file:

file is generated while the progress bar is running and the download link is generated and served to the user as part of a util_user_message

  1. … 5 more files in changeset.
Move operations so that they are closer to their computation's actual usage

We are only interested in the side effects of this computation

Break overlong line

Take more advantage of exception handling

Simplify determining outfile destination

Fix english of query name

Check objects ids all in one query, before any further action is taken

improve spelling

  1. … 5 more files in changeset.
use "ad_file" as a means to avoid unexpected tilde substitution in file names

  1. … 12 more files in changeset.
Bring files on oacs-5-10 in sync with HEAD

  1. … 162 more files in changeset.
Fix erroneus file description in page contract

Use "ad_try" instead of "with_catch"

  1. … 1 more file in changeset.
merged changes from the oacs-5-9 branch and resolved conflicts

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

  1. … 12 more files in changeset.
Improve robustness of "file delete" operations

  1. … 19 more files in changeset.
- bump version number to 5.9.1d1

- improve security of page_contracts

  1. … 8 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 branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2547 more files in changeset.
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.
Introduced new util::zip_file command to create zip files programmatically in an OS independent manner.

  1. … 1 more file in changeset.
- improve page-contracts

  1. … 10 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.
fixes for download-zip:

- require login for zip-downloads (keep away spiders)

- return "not found" on if ids are no acs-objects

- clean temp-files on errors