Safe Mode Support and System Properties for Userscripts

On  we released version 2.4.0 of Userscripts for Confluence!

This version provides a safe mode for deactivating the core services by setting a system property. It also provides a REST service to set system properties for this app.

New and Noteworthy

This release provides the following new and noteworthy features.

Safe Mode

The Safe Mode allows administrators to deactivate the main services of this app via a System Property. The system property can be set with the Java Virtual Machine when the machine is started.

In case any service of this app causes trouble on your Confluence instance, you can now deactivate a specific set of services for maintenance. This adds another option to Disabling and enabling apps, where apps are disabled via the Universal Plugin Manager.

System Property Service

The new REST service System Property Service allows Confluence administrators to configure system properties defined by Userscripts for Confluence.

This way the System property can be accessed and altered at runtime via a REST client.

Absolute URL Fix

The previous Version fails to handle remote URLs properly. This version fixes that issue.

Also local URLs to attachments are now tested to have the correct base URL of the Confluence server (see Upgrade instructions below).

Installation Instructions

Simply install the app via the Atlassian Marketplace or the downloaded OBR artifact.

Upgrade Instructions

Prior to upgrading to the new version, please check that scripts that are attached to pages of your Confluence have the correct base URL.

List of Changes

Key Summary T P Status Resolution Description
USR4C-30 System Properties Services New Feature Major Done Fixed

Provide a service to set userscript's system properties.

USR4C-29 Safe Mode New Feature Major Done Fixed

Allow to prevent the execution of service of this app via a system property. This allows administrators to start Confluence in a safe mode that deactivates selected services.

USR4C-31 No Plugin Information on REST call per Default Improvement Minor (migrated) Done Fixed

Clients of REST services are provided with the plugin information per default. This information (plugin key and version) should not be shown of the user has not sufficient privileges to access the service.

USR4C-32 Absolute URL Fix Bug Blocker (migrated) Done Fixed

When processing absolute URLs a local URL is generated although the remote URL should be used as is.