Skip to content

fix(QTDI-2101): mark Schema methods with JsonbTransient - #1119

Merged
ozhelezniak-talend merged 2 commits into
masterfrom
ozhelezniak/QTDI-2101_schemas_master
Nov 12, 2025
Merged

ozhelezniak-talend merged 2 commits into
masterfrom
ozhelezniak/QTDI-2101_schemas_master

Conversation

@ozhelezniak-talend

Copy link
Copy Markdown
Contributor

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

What does this PR adds (design/code thoughts)?

Copilot AI 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.

Pull Request Overview

This PR marks Schema interface methods with @JsonbTransient annotation to exclude them from JSON serialization and updates one method implementation to return an empty list instead of throwing an exception.

  • Added @JsonbTransient annotations to getEntryMap() and getEntriesOrdered() methods in the Schema interface
  • Changed getEntriesOrdered() implementation in Schemas.java to return emptyList() instead of throwing UnsupportedOperationException
  • Added @JsonbTransient annotation to getEntriesOrdered(Comparator<Entry>) method in Schemas.java

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
component-api/src/main/java/org/talend/sdk/component/api/record/Schema.java Added JsonbTransient annotations to prevent serialization of utility methods
component-runtime-impl/src/main/java/org/talend/sdk/component/runtime/record/Schemas.java Added JsonbTransient annotation and changed exception to return empty list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonar-eks

sonar-eks Bot commented Oct 29, 2025

Copy link
Copy Markdown

Passed Quality Gate passed

Issues

Measures

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

@ozhelezniak-talend
ozhelezniak-talend merged commit 880dbba into master Nov 12, 2025
@ozhelezniak-talend
ozhelezniak-talend deleted the ozhelezniak/QTDI-2101_schemas_master branch November 12, 2025 11:42
thboileau added a commit that referenced this pull request Oct 28, 2026
Transposes the Schemas.java part of #1119 (QTDI-2101): getEntriesOrdered()
returns an empty list and getEntriesOrdered(Comparator) is @JsonbTransient.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
thboileau added a commit that referenced this pull request Oct 28, 2026
Transposes the Schemas.java part of #1119 (QTDI-2101): getEntriesOrdered()
returns an empty list and getEntriesOrdered(Comparator) is @JsonbTransient.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
thboileau added a commit that referenced this pull request Oct 29, 2026
2 backports and one specific fix for code, several fixes for CI:

 - https://qlik-dev.atlassian.net/browse/QTDI-2101
 - https://qlik-dev.atlassian.net/browse/QTDI-113: only the part for the junit4 tests of component-runtime-testing module
 - gradle-core dependency: due to a recent update of the oss.sonatype.org repository, dependencies has been explicitly added
 - CI: upgrade of  trivy version and complete missing parts of CI.


* chore(QTDI-3696): Align Jenkinsfile with master and add SONAR profile

Fixes the Sonar analysis failing with "profile SONAR not found" on
maintenance/1.64:
- take Jenkinsfile and .jenkins/settings.xml from master (Sonar token
  credentials, tqa-e2e-tests-tool 2.6.13-ttp2, split Nexus/Sonatype/
  GitHub Packages deploy stages)
- add the SONAR profile and the sonar-maven-plugin management to pom.xml

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(QTDI-3696): move daikon logging-event-layout to ci-build profile

Backport of ddc5dae from master. The dependency is only needed in
Jenkins builds; resolving it elsewhere (e.g. the GitHub "Automatic
Dependency Submission" submit-maven check) fails with a 401 on the
TalendOpenSourceRelease Nexus. Jenkins sets JENKINS_URL so CI and release
builds still include it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(QTDI-3696): backport API test CI setup from master

The TCOMP-api-test job fails on maintenance/1.64 because its pod still
uses the legacy root docker:19.03.1-dind sidecar (the docker-daemon
container terminates with ContainerError) and its Jenkinsfile calls
.jenkins/scripts/asdf_install.sh, which does not exist on this branch.

Take talend-component-maven-plugin/src/it/web/.jenkins/ as-is from master
(rootless dind pod and PVCs, JenkinsPodConfig/JenkinsStatusController
helpers, /home/jenkins paths). Only CI files are touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(QTDI-3656): Upgrade JDK to 17.0.21+9 for CVE-2026-91403

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(QTDI-3656): Bump TSBI base image to 5.3.25

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Ensure to get org.gradle modules from the grade repository

* fix(QTDI-3656): add @JsonbTransient to Schema.getEntriesOrdered()

JDK-8339822 (17.0.14+) changed java.beans.Introspector behavior for default
interface methods, so JSON-B started serializing 'entriesOrdered'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(QTDI-3656): add @JsonbTransient to Schema.getEntryMap()

Same JDK-8339822 Introspector change: JSON-B now calls the default
getEntryMap() which throws UnsupportedOperationException, causing HTTP 500
in ActionResourceImplTest.checkSchemaSerialization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(QTDI-3656): align Schemas with Schema JsonbTransient changes

Transposes the Schemas.java part of #1119 (QTDI-2101): getEntriesOrdered()
returns an empty list and getEntriesOrdered(Comparator) is @JsonbTransient.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(QTDI-3656): set explicit Accept header in HTTP capture tests

The JDK's default HttpURLConnection Accept header changed in recent
17.0.x updates ('*; q=.2, */*; q=.2' -> '*/*; q=0.2'). Set it explicitly
as already done on master.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Revert "fix(QTDI-3656): backport API test CI setup from master"

This reverts commit a405c5f.

These changes were pushed here by mistake; they belong on QTDI-3696 (#1305).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Revert "fix(QTDI-3656): move daikon logging-event-layout to ci-build profile"

This reverts commit b110b5a.

These changes were pushed here by mistake; they belong on QTDI-3696 (#1305).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(QTDI-3656): declare gradle-core transitive modules explicitly

A gradle-core:3.0 pom cached from a repository serving a stub (central) is
reused whatever the repositories order, leaving its transitive modules
(gradle-base-services, -logging, ...) off the classpath and failing the
compilation of the Gradle plugin. These modules only exist on repo.gradle.org.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: fdesiles <52663885+fdesiles@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.

3 participants