OPENDJ-3168 Escape XML content pushed into dsconfig property descriptions
This patch uses a Freemarker built-in to escape XML in properties descriptions
that come directly from server config XML.
The patch is fairly timid, mainly because a number of hand-written properties
include strings that use DocBook XML which should *not* be escaped.
| | |
| | | <dependency> |
| | | <groupId>org.freemarker</groupId> |
| | | <artifactId>freemarker</artifactId> |
| | | <version>2.3.21</version> |
| | | <version>${freemarker.version}</version> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | </dependencies> |
| | |
| | | # Header, with the fields enclosed by brackets [] replaced by your own identifying |
| | | # information: "Portions Copyright [year] [name of copyright owner]". |
| | | # |
| | | # Copyright 2015 ForgeRock AS. |
| | | # Copyright 2015-2016 ForgeRock AS. |
| | | #--> |
| | | <variablelist> |
| | | |
| | |
| | | <term>${property.descTitle}</term> |
| | | <listitem> |
| | | <para> |
| | | ${property.description} |
| | | ${property.description?xml} |
| | | </para> |
| | | </listitem> |
| | | </varlistentry> |
| | |
| | | |
| | | <properties> |
| | | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| | | <freemarker.version>2.3.21</freemarker.version> |
| | | </properties> |
| | | |
| | | |
| | |
| | | <dependency> |
| | | <groupId>org.freemarker</groupId> |
| | | <artifactId>freemarker</artifactId> |
| | | <version>2.3.21</version> |
| | | <version>${freemarker.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | An example use-case for this property would be to use a different attribute type |
| | | on the mapped search. For example, mapped-attribute could be set to "uid" and |
| | | filter-template to "(samAccountName=%s)". |
| | | |
| | | You can also use the filter to restrict search results. |
| | | For example: "(&(uid=%s)(objectclass=student))" |
| | | </adm:description> |
| | | <adm:default-behavior> |
| | | <adm:undefined/> |
| | |
| | | <dependency> |
| | | <groupId>org.freemarker</groupId> |
| | | <artifactId>freemarker</artifactId> |
| | | <version>2.3.21</version> |
| | | <version>${freemarker.version}</version> |
| | | <scope>test</scope> |
| | | </dependency> |
| | | |
| | |
| | | |
| | | <forgerock-build-tools.version>1.0.2</forgerock-build-tools.version> |
| | | <forgerock-doc-plugin.version>3.2.0</forgerock-doc-plugin.version> |
| | | <freemarker.version>2.3.24-incubating</freemarker.version> |
| | | <grizzly-framework.version>2.3.24</grizzly-framework.version> |
| | | <metrics-core.version>3.1.2</metrics-core.version> |
| | | |