Skip to content

[GEODE-10612] Pulse region-detail error message does not display the requested region path correctly - #8041

Open
JinwooHwang wants to merge 1 commit into
apache:developfrom
JinwooHwang:feature/GEODE-10612
Open

[GEODE-10612] Pulse region-detail error message does not display the requested region path correctly#8041
JinwooHwang wants to merge 1 commit into
apache:developfrom
JinwooHwang:feature/GEODE-10612

Conversation

@JinwooHwang

Copy link
Copy Markdown
Contributor

When a region-detail request names a path that does not resolve, the region services return "Region [] is not available" in the errorOnRegion field, which the Pulse UI displays. Paths containing characters such as '<' or '&' did not display correctly.

Encode the path with StringEscapeUtils.escapeHtml4 when building the message, so it displays as written. commons-text is already a compile dependency of geode-pulse.

Region lookup is unchanged and continues to use the path as supplied.

Adds RegionErrorMessageEncodingTest and
RegionDetailErrorMessageIntegrationTest.

For all changes, please confirm:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
  • Has your PR been rebased against the latest commit within the target branch (typically develop)?
  • Is your initial contribution a single, squashed commit?
  • Does gradlew build run cleanly?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

When a region-detail request names a path that does not resolve, the
region services return "Region [<path>] is not available" in the
errorOnRegion field, which the Pulse UI displays. Paths containing
characters such as '<' or '&' did not display correctly.

Encode the path with StringEscapeUtils.escapeHtml4 when building the
message, so it displays as written. commons-text is already a compile
dependency of geode-pulse.

Region lookup is unchanged and continues to use the path as supplied.

Adds RegionErrorMessageEncodingTest and
RegionDetailErrorMessageIntegrationTest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant