Skip to content

MOSIP-20847: Fixed the xml issue#1367

Open
dhanendra06 wants to merge 8 commits into
mosip:release-1.3.xfrom
dhanendra06:MOSIP-030
Open

MOSIP-20847: Fixed the xml issue#1367
dhanendra06 wants to merge 8 commits into
mosip:release-1.3.xfrom
dhanendra06:MOSIP-030

Conversation

@dhanendra06
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2e6bd0ed-5d8c-423a-9cf3-bb1ede6a9ed5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

dhanendra06 and others added 7 commits May 15, 2026 16:13
Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com>
…rror

Set explicit Content-Type: application/json header in AuditUtil.callAuditManager
to prevent RestTemplate from defaulting to application/xml, which caused
KER-AUD-500 errors from the audit service.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com>
Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com>
Signed-off-by: Dhanendra Sahu <dhanendra.tech@gmail.com>
…ll REST calls

jackson-dataformat-xml was unnecessarily added as a dependency, causing
RestTemplate to register MappingJackson2XmlHttpMessageConverter. This
polluted default Accept and Content-Type negotiation, making servers respond
with XML instead of JSON. Reverts symptom-level header fixes in AuditUtil
and AuditManagerProxyServiceImpl in favour of this single root-cause fix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…m RestTemplate

jackson-dataformat-xml must stay on the classpath because FaceDecoder
(biometrics-util) uses XmlFactory internally. However, its presence causes
Spring to auto-register MappingJackson2XmlHttpMessageConverter in every
RestTemplate, which makes servers respond with XML instead of JSON.

Add a BeanPostProcessor in CommonConfig that removes
MappingJackson2XmlHttpMessageConverter from all RestTemplate instances after
initialization — a single central fix covering restTemplate,
selfTokenRestTemplate, and plainRestTemplate provided by kernel-auth-adapter.

Co-Authored-By: Claude Sonnet 4.6 <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