• last updated 23 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Port of downstream feature request:

when filtering for not graded questions, if the entire exam has not ungraded questions, hide the entire exam block. The purpose is to reduce distractions in the UI.

    • -7
    • +12
    ./packages/xowf/www/resources/inclass-exam.js
added handling of literal object "arraycontainer"

Improved resource information for external libraries

- added vulnerability check for a particular version

- centralized URL generation for cdnjs URLS (will reduce maintenance work, when external URL changes)

- improve behavior when running without an Internet connection

    • -1
    • +6
    ./packages/acs-tcl/lib/check-installed.adp
    • -1
    • +39
    ./packages/acs-tcl/lib/check-installed.tcl
    • -11
    • +47
    ./packages/acs-tcl/tcl/utilities-procs.tcl
    • -1
    • +0
    ./packages/fa-icons/tcl/resource-procs.tcl
    • -2
    • +1
    ./packages/highcharts/tcl/resource-procs.tcl
    • -3
    • +1
    ./packages/xowiki/tcl/resource-info-procs.tcl
improved description of parameter

Fix permission::write_permission_p. Before, the check if the user was the creation_user was always made against the currently logged in user, not the party given by the caller.

Dont fail when pk_formatted is empty.

    • -1
    • +2
    ./packages/acs-subsite/tcl/package-procs.tcl
Fix default https port in security::configured_driver_info

    • -2
    • +2
    ./packages/acs-tcl/tcl/security-procs.tcl
Extended json2dict to cover literal objects named "objectcontainer"

Extended regression test as well

    • -13
    • +20
    ./packages/acs-tcl/tcl/json-procs.tcl
use everywhere util::json2dict

    • -285
    • +0
    ./packages/ajaxhelper/tcl/json-procs.tcl
bump version numbers to reflect the updated resource-info API in acs-tcl

Improved consistency of resource-info for the cookieconsentlibraries, added vulnarability info

In addition, this change makes the package variable "Version" more consistent with

other occurences, where version is just the version number. Here, it was the version path.

Improved consistency of resource-info for javascript libraries, added vulnarability info

Tested the following cases:

download check

- bootstrap

- bootstrap-icons

- bootstrap-treeview

- ckeditor4

- font-awesome

- highcharts

- cookieconsent2 3.0.3

- cookieconsent2 3.1.1

CDN check

- bootstrap

- bootstrap-icons

- bootstrap-treeview

- font-awesome

- highcharts

- cookieconsent2 3.0.3

- cookieconsent2 3.1.1

    • -8
    • +1
    ./packages/highcharts/tcl/resource-procs.tcl
    • -2
    • +2
    ./packages/xowiki/tcl/resource-info-procs.tcl
    • -1
    • +1
    ./packages/xowiki/www/sitewide-admin/index.tcl
Don't set result variables for "header_stuff"

The method "header_stuff" was changes ages ago to

side-effect via the standard OpenACS template::head

interface rather than outputting to a variable, which

has to be passed around. This change removes some

leftover of this time.

    • -3
    • +3
    ./packages/xowiki/tcl/package-procs.tcl
Include available version number and vulnerability check on swa pages

This eases the use of external JavaScript libraries by adding

the available version number and a link for vulnerability checks

on the site-wide admin pages (when this information is available)

- bumped version number to 5.10.1b6

    • -3
    • +4
    ./packages/acs-tcl/lib/check-installed.adp
    • -5
    • +14
    ./packages/acs-tcl/lib/check-installed.tcl
    • -11
    • +54
    ./packages/acs-tcl/tcl/utilities-procs.tcl
fix broken variable name

Do not allow unusual schemas like base64 and json as local URLs

This case was flagged by a vulnerability scan, but at least at the found instance

it was a false positive...

Extended json2dict to cover arraycontainer

Many thank to Rolf for his feedback!

Extended resource info dict with explicit version number and an API call to obtain the newest version number

The two new optional resource info fields are

- versionCheckAPI

- installedVersion

These fields are necessary to provide an admin page to check

whether the installed versions are the most recent ones.

    • -1
    • +4
    ./packages/fa-icons/tcl/resource-procs.tcl
    • -1
    • +3
    ./packages/highcharts/tcl/resource-procs.tcl
    • -2
    • +5
    ./packages/xowiki/tcl/resource-info-procs.tcl
made spelling more consistent

New parameter "scroll_to" for parameter page

The new parameter allows the code to jump to a named parameter in the

parameter editing page. This is very useful for pages with a high

number of parameters, if just one parameter should be changed.

improve page title

The index page list not only the "system" test cases, but as well the

test cases from the application packages

Make parameter optional

adjust coverage information

Bump version number to 5.10.1b5 such we can depend on new functionality

new API function: util::json2dict

This function is similar to the tcllib function json::json2dict, but

is based on tDOM and is several times faster.

    • -4
    • +63
    ./packages/acs-tcl/tcl/json-procs.tcl
file json-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./packages/acs-tcl/tcl/test/json-test-procs.tcl
Mode use of new util::resources::version_dir

    • -5
    • +3
    ./packages/acs-tcl/lib/check-installed.tcl
Made download helper more modular and added support for a version_API

    • -10
    • +34
    ./packages/acs-tcl/tcl/utilities-procs.tcl
whitespace cleanup

    • -2
    • +2
    ./packages/acs-tcl/tcl/acs-cache-procs.tcl
Added support for specifying -expires and -timeout with a time unit

Previously, the "integer" constrain avoided this. Now, we rely on the

error messages of NaviServer to handle incorrect values.

    • -3
    • +3
    ./packages/acs-tcl/tcl/acs-cache-procs.tcl