Skip to content

XWIKI-24060: A badly parsed logged TransactionException can break the…#5377

Open
lucaa wants to merge 1 commit intoxwiki:masterfrom
lucaa:XWIKI-24060
Open

XWIKI-24060: A badly parsed logged TransactionException can break the…#5377
lucaa wants to merge 1 commit intoxwiki:masterfrom
lucaa:XWIKI-24060

Conversation

@lucaa
Copy link
Copy Markdown
Member

@lucaa lucaa commented Apr 8, 2026

… log displayer (and the script than calls it)

  • Added null checks for the usage of the causes variable in the TransactionException, for safety

Jira URL

https://jira.xwiki.org/browse/XWIKI-24060

Changes

Description

While a more complete and complex fix is proposed by @tmortagne in the issue, this change adds some basic null checks in the TransactionException, to prevent the errors from happening, if ever the TransactionException is badly deserialized.

Executed Tests

I ran the build for the xwiki-platform-store module and also tested these changes at runtime, on a 16.10.11 instance where I hit the issue (actually its duplicate XWIKI-24186 ), then I patched with these changes and the display of extension was no longer blocked.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • stable-17.10.x

… log displayer (and the script than calls it)

* Added null checks for the usage of the causes variable in the TransactionException, for safety
@lucaa lucaa requested a review from tmortagne April 8, 2026 01:30
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.

2 participants