Skip to main content
Version: 6.18

Data directory

The ConSol CM data directory is a folder on the server where ConSol CM runs. Its location is defined in the system property cmas-core-shared, data.directory.

The data directory contains the following folders:

Available information

The following information is shown for items in the data directory:

  • Type: Icon for file or folder
  • Name: Name of the file or folder
  • Extension: Extension of the file.
  • Size: Size of the file or folder.
  • Last modified: Last modification of the file or folder.

Managing design and resources

The content of the design and resources folders can be managed on the Data directory page of the Web Admin Suite. The following actions are available:

  • Find files or folders: Navigate through the directory by clicking the folders in the table or clicking the links in the Current directory path shown above the table. Type the name of a file or folder in the search field to filter the table accordingly. If matching files or folders are found in other subdirectories, links to open them are shown above the table.
  • Preview images: Hover over the icon in the Type column to show a preview of image files.
  • Edit files: Edit text files (extensions .csv, .css, .html, .js, .json, .md, .txt and .xml) directly by double-clicking their name. This opens a modal window with a text editor.
  • Rename files or folders: Click the Rename icon in a row to rename the respective file or folder.
  • Download files or folders: Download specific files or folders by clicking the Download icon in their row. The Download all button allows you to download everything, i.e. the design and resources folders with their content.
  • Upload files: Upload a file to the current location by clicking the Upload file button. If you upload a zip file, it is automatically unpacked in the target location.
  • Create a file: Click the New file button and enter a name with extension to create a new file in the current location.
  • Create a directory: Click the New directory button and enter a name to create a new folder in the current location.
  • Delete files or folders: Click the Delete icon in a row to remove the respective file or folder.
Cluster installations

The folders design and resources of the data directory are not synchronized between the different nodes. You need to load the required files manually to the data directories of all nodes.

Integrating external libraries

You can upload external libraries to the lib directory to make them available via script. For security reasons, it is required to provide the libraries SHA-1 hash in the ConSol CM configuration. Please proceed as follows:

  1. Place the library in the lib directory.

  2. Locate the cm6-config.properties or cm6-domain-config.properties file.

  3. Add an entry for the library to the properties file. The entry must start with application.libs.checksums. and contain the library name and its checksum, for example:

    application.libs.checksums.ical4j-4.2.3.jar=3d75128bcc7121d267d2c4daf573eadd2dc2a2be

    To find out the SHA-1 checksum of the library, you can either refer to the data provided by its publisher, or calculate it yourself using for example CertUtil on Windows or sha1sum on Linux. If the checksum is not provided for a library, an INFO message with the required entry in the properties file is written to the log file on server start.

  4. Restart the ConSol CM server.

  5. Afterwards, you can import the library in your scripts, for example:

    import net.fortuna.ical4j.model.Calendar

Vulnerabilities and updates

Make sure to check the libraries for vulnerabilities regularly and update them if necessary.