Skip to content

http post call return a 415 error in 9.0.4 due to probable token error #10074

@bonnoiaf

Description

@bonnoiaf

Current Behavior

post calls made from version 9.0.4 don't seem to arrive in Salesforce logging(get calls do) and return a 415 code in ibis.
Get/Patch calls work normally. Calls tested successfully in version 8.3.2 and 8.3.3.

oauthAuthenticationMethod property was added to config in 9.0.4, but removing it doesn't make a difference

problem might be here:

Image Kan het zijn dat het issue met de HttpSender hier in de AbstractOauthAuthenticator.java zit waar expiresIn wordt geparsed? Is hier een fix voor de maken? Image Logging uit oppty app TST waar iets fout gaat in de AbstractOauthAuthenticator met parsen

Een sf token response bevat deze velden:
Image

Expected Behavior

optimally, calls should be successful(!)

Environment Information

FF! 9.0.4-20251127.031131: ibis4salesforce_opportunity
Running on ibis4salesforce-opportunity-app-tst using Apache Tomcat/10.1.48
Java Version: OpenJDK Runtime Environment (17.0.17+10-LTS)
Heap size: 556.6 MiB, total JVM memory: 975.0 MiB
Free memory: 418.4 MiB, max memory: 975.0 MiB
Free disk space: 8.8 GiB, total disk space: 14.9 GiB
Up since: 2025-12-04 11:12:37, timezone: Europe/Amsterdam

Steps To Reproduce

No response

Configuration

<SenderPipe name="CallSalesForcePostOpportunity" getInputFromSessionKey="OpportunityBody" storeResultInSessionKey="OpportunityResult">
    <HttpSender oauthAuthenticationMethod="RESOURCE_OWNER_PASSWORD_CREDENTIALS_QUERY_PARAMETERS" truststore="ibis4salesforce_truststore.jks" truststoreAuthAlias="salesforce_truststore" allowSelfSignedCertificates="true" tokenEndpoint="${salesforce.url.base}/${salesforce.url.oauth_service}" clientAlias="salesforce_client" authAlias="salesforce" headersParams="Accept,Content-Type" urlParam="OpportunityUrl" methodType="Post" timeout="${salesforce.timeout}" connectionTimeToLive="${salesforce.connectionTimeToLive}" tokenExpiry="${salesforce.tokenExpiry}" resultStatusCodeSessionKey="ResultCode" maxExecuteRetries="3" />
    <Param name="OpportunityUrl" sessionKey="OpportunityUrl" />
    <Param name="Accept" value="application/xml" />
    <Param name="Content-Type" value="application/xml" />
    <Forward name="timeout" path="Timeout" />
    <Forward name="success" path="logRecordId" />
    <Forward name="exception" path="logErrorCallSalesForcePostPatchOpportunity" />
   </SenderPipe>

Input

ibis4salesforce_opportunity (2).log

Pipeline opportunity_HandleOpportunitySoapListenerAdapter3 (2).zip

What database are you using?

No response

What browsers are you seeing the problem on?

No response

Relevant Log Output

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions