Configure active content filters (allowlists)
HCL Connections™ provides a set of Active Content Filter (ACF) configuration files that you can apply to component applications to allow users to contribute only approved types of content.
This procedure is optional. Perform it only if you want to change the level of filtering applied by the Active Content Filter.
By default, all Connections applications that use whitelisting allow content with a wide range of HTML tags to be uploaded. Exceptions include scripts (for example, JavaScript), Flash animations, and certain types of styling.
You can refine the whitelist by applying predefined rule sets in a copy of the ojhs-whitelist-default.xml file.
-
Copy the
ojhs-whitelist-default.xmlfile and modify it for your update.-
Locate the
ojhs-whitelist-default.xmlfile and make a copy of it with a slightly different name.For example, add a brief description of the update to the new file's name, as in:
ojhs-whitelist-update_description.xml -
Edit the new file and modify it using the rules described in the topics within this section.
-
Save and close the file.
-
-
Modify the
acp-configkey__default.xmlfile to reference the new allowlist XML file (ojhs-whitelist-update_description.xml).-
Locate the
acp-configkey__default.xmlfile and make a copy of it with a slightly different name.For example, add a brief description that matches the updated rules file name:
acp-configkey__update_description.xml. -
In the file, update the
defaultKeysetting to reference theupdate_descriptionpart of theojhs-whitelist-update_description.xmlfile name.For example, if you renamed the file to
ojhs-whitelist-pilot.xmlin step 1, use "pilot" as thedefaultKeyvalue:<param value="defaultKey=pilot"/> -
Save and close the file.
-
-
Modify the
LotusConnectionsConfig.xmlfile so that itsslocentryacf_config_filepoints to the newacp-configkey__update_description.xmlfile.TTo edit configuration files, you must use the
wsadminclient. See Starting the wsadmin client for details.Important
Be sure to leave the
wsadminsession open so you can check in the updated file.-
Enter the following command to load the HCL Connections configuration file:
execfile("connectionsConfig.py")If you are prompted to specify a service to connect to, type
1to select the first node in the list. Most commands can be run on any node. However, if a command reads from or writes to a file using a local file path, you must select the node where the file is stored. This node selection is not used by thewsadminclient when you are making configuration changes. -
Enter the following command to check out HCL Connections configuration files:
LCConfigService.checkOutConfig("working_directory","cell_name")where:
-
working_directoryis the temporary working directory to which configuration files are copied. The files are kept in this working directory while you edit them.Note
- When you specify a path to the working directory on a system that is running Microsoft® Windows®, use a forward slash for the directory. For example:
C:/temp. - Linux® only: The directory must grant write permissions or the command fails.
- When you specify a path to the working directory on a system that is running Microsoft® Windows®, use a forward slash for the directory. For example:
-
cell_nameis the name of the WebSphere® Application Server cell that hosts the HCL Connections application. If you do not know the cell name, display it by typing the following command in thewsadminclient:print AdminControl.getCell()Note
This input parameter is case-sensitive.
-
-
Open the
LotusConnections-config.xmlfile in a text editor. -
Find the
<sloc:serviceReference>element for the application for which you want to change filtering levels. The application name is specified in theserviceNameattribute. -
Add the
acp-configkey__default-update_description.xmlfile name to theacf_config_file=element as shown in the following example.<sloc:serviceReference bootstrapHost="myServer.example.com" bootstrapPort="2817" clusterName="" enabled="true" serviceName="blogs" ssl_enabled="true" **acf_config_file="acp-configkey__pilot.xml">** <sloc:href> <sloc:hrefPathPrefix>/blogs</sloc:hrefPathPrefix> <sloc:static href="http://enterprise.example.com:9082" ssl_href="https://enterprise.example.com:9447"/> <sloc:interService href="https://enterprise.example.com:9447"/> </sloc:href> </sloc:serviceReference> -
Save and close the
LotusConnections-config.xmlfile. -
After making changes, you must check the configuration files back in during the same
wsadminsession in which you checked them out. See Applying common configuration property changes for information about how to save and apply your changes.
-
-
Synchronize the nodes using the Integrated Solutions Console for the network deployment system.
-
Restart the WebSphere Application Server.
See the following topics for more information about the rules you can apply to the allowlist:
URL protocol rules (whitelists)
Whitelist active content for HCL Connections based on the protocol specified within URLs.
Element and attribute rules (whitelists)
Whitelist active content for HCL Connections based on elements and attributes used in the HTML source.
Styling rules (whitelists)
Whitelist active content for HCL Connections based on stylesheet usage in the HTML source.
Parent topic: Active content filters (whitelists)