Skip to content

[#1136] Remove the unused DocBook xinclude supplements from the server tool messages - #1141

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:issue-1136-unused-xinclude-messages
Oct 1, 2026
Merged

vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:issue-1136-unused-xinclude-messages

Conversation

@vharseko

Copy link
Copy Markdown
Member

Fixes #1136

Problem

After #1132, two DocBook xinclude values remain in the server tool messages (tool.properties):

SUPPLEMENT_DESCRIPTION_PSEARCH_INFO_20002=<xinclude:include href="description-psearch-info.xml" />
SUPPLEMENT_DESCRIPTION_CONTROLS_20003=<xinclude:include href="variablelist-ldap-controls.xml" />

Nothing references ToolMessages.SUPPLEMENT_DESCRIPTION_PSEARCH_INFO or ToolMessages.SUPPLEMENT_DESCRIPTION_CONTROLS. LDAPSearch takes its supplement from ToolsMessages (tools.properties), and CommonArguments takes its supplement from CliMessages (cli.properties). Both of those copies already use the AsciiDoc include::./_….adoc[] form. No localized tool_*.properties carries either key.

Change

Remove the two messages. Converting them to include:: instead would keep dead code. If one of them were later wired to a server tool, the #1128 leftover would come back. The # Supplements … comment stays, because 20004 and 20016 still follow it.

Verification

  • mvn -o -pl "opendj-server-legacy,!opendj-maven-plugin" -am test-compile: BUILD SUCCESS (main and test sources).
  • In the rebuilt ToolMessages.class, the only remaining SUPPLEMENT_DESCRIPTION_* constants are UPGRADE_CLI and BACKEND_TOOL_SUBCMD_LIST_INDEX_STATUS.

Note

#1132 changes the adjacent line (SUPPLEMENT_DESCRIPTION_UPGRADE_CLI_20004), so the second of the two PRs to merge gets a trivial textual conflict. To resolve it, keep only the new 20004 line from #1132.

…ments from the server tool messages

SUPPLEMENT_DESCRIPTION_PSEARCH_INFO_20002 and SUPPLEMENT_DESCRIPTION_CONTROLS_20003
in tool.properties still carried DocBook <xinclude:include> values, but nothing
references them: ldapsearch and the common controls argument take their supplements
from ToolsMessages and CliMessages, which already hold the AsciiDoc include::
form. Remove the two messages so that wiring one of them to a server tool cannot
bring the OpenIdentityPlatform#1128 leftover back.

Fixes OpenIdentityPlatform#1136

@maximthomas maximthomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: The change deletes exactly the two dead keys and nothing else.

  • SUPPLEMENT_DESCRIPTION_PSEARCH_INFO_20002 and SUPPLEMENT_DESCRIPTION_CONTROLS_20003 have no reader at the head: a repo-wide git grep finds those key names only in opendj-ldap-toolkit/.../tools.properties:399 and opendj-cli/.../cli.properties:461, which LDAPSearch.java:292 and CommonArguments.java:173 read through their own modules' message classes.
  • The conflict note is accurate: git merge-tree against #1132's head gives a single hunk at tool.properties:2616, and keeping only #1132's SUPPLEMENT_DESCRIPTION_UPGRADE_CLI_20004=include::./_description-upgrade.adoc[] line resolves it.

@vharseko
vharseko merged commit 6944d15 into OpenIdentityPlatform:master Oct 1, 2026
24 checks passed
@vharseko
vharseko deleted the issue-1136-unused-xinclude-messages branch October 1, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: unused DocBook xinclude messages left in the server tool messages

2 participants