Skip to content

Conversation

Josue-T
Copy link
Contributor

@Josue-T Josue-T commented Sep 12, 2025

Jira URL

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

Changes

Description

In some cases config.getMeta() return null, so we need to handle this case.

Clarifications

It was probably a regression introduced by bad5aab#diff-2ccf904ad681c93a0abc3a40d6c4c9c7ff1faaf74ec8ecb94607554a4b55908eR115-R116

Executed Tests

Tested with my custom Livedata and it seem fixing the issue.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • 17.4
    • 16.10

@manuelleduc
Copy link
Contributor

Thanks @Josue-T !
The fix looks ok. But, I think a test case on DefaultLiveDataConfigurationResolverTest is needed to avoid regression in the future.

@Josue-T
Copy link
Contributor Author

Josue-T commented Oct 15, 2025

The fix looks ok. But, I think a test case on DefaultLiveDataConfigurationResolverTest is needed to avoid regression in the future.

Thank you for the suggestion. Added a test to ensure that we don't have any regression around this.

@manuelleduc manuelleduc self-requested a review October 15, 2025 07:52
@manuelleduc manuelleduc merged commit f2a63d4 into xwiki:master Oct 15, 2025
2 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 15, 2025
github-actions bot pushed a commit that referenced this pull request Oct 15, 2025
Copy link

💚 All backports created successfully

Status Branch Result
stable-16.10.x
stable-17.4.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

manuelleduc pushed a commit that referenced this pull request Oct 15, 2025
manuelleduc pushed a commit that referenced this pull request Oct 15, 2025
manuelleduc pushed a commit that referenced this pull request Oct 15, 2025
@Josue-T Josue-T deleted the XWIKI-23523 branch October 15, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants