My Oracle Support Banner

OSB 12.2.1.3 Sends Content-Type: Text/plain In REST Http GET Outbound Call when sending an an Empty Content-Type (Doc ID 2682446.1)

Last updated on MAY 01, 2023

Applies to:

Oracle Service Bus - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.3.0 version, OSB Transports

ACTUAL BEHAVIOR
---------------
OSB 12.2.1.3 sends Content-Type: text/plain in REST http GET outbound call

The use case is OSB used as a proxy in between client and service provider communication.
A client sends http GET request together with Content-Type: application/json and service provider expects empty Content-Type or Content-Type: application/json otherwise it fails.
This worked fine without OSB and with OSB 11g.
After upgrade to OSB 12.2.1.3 request http GET with Content-Type: application/json fails because OSB JSON parser tries to parse empty payload.

This issue has been fixed by patch 27996858 "REST GET Operation with Content type and No Payload Leads to Exception".
The patch removes Content-Type from request so it is not visible in OSB pipeline. Therefore OSB pipeline can not set client Content-Type as a work around.
The issue is that even there is no Content-Type OSB sends default Content-Type: text/plain to service provider which then fails.

EXPECTED BEHAVIOR
-----------------------
to be able to receive an empty content-type when an empty one is sent

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.