Skip to content

[4.10.x] fix: API export CRD failure#16105

Open
mergify[bot] wants to merge 1 commit into4.10.xfrom
mergify/bp/4.10.x/pr-15788
Open

[4.10.x] fix: API export CRD failure#16105
mergify[bot] wants to merge 1 commit into4.10.xfrom
mergify/bp/4.10.x/pr-15788

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Mar 30, 2026

This is an automatic copy of pull request #15788 done by Mergify.


Issue

https://gravitee.atlassian.net/browse/APIM-12926

Description

Area File Change
Repository JdbcUserRepository.java In findByIds(Collection<String> ids), return Collections.emptySet() when ids is null or empty to avoid invalid SQL WHERE u.id IN ().
Service UserCrudServiceImpl.java In findBaseUsersByIds(List<String> userIds), return Set.of() when userIds is null or empty so the repository is not called with an empty list.
Export ApiCRDExportDomainServiceImpl.java In setMembersSourceId(), only set sourceId/source when a user is found (user != null) so group-only members without a user record do not cause NPE.
Screen.Recording.2026-03-18.at.10.20.59.PM.mov

(cherry picked from commit 45fc1c2)
@mergify mergify bot requested a review from a team as a code owner March 30, 2026 14:39
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