ATG Rest Decoding JSON Parameter Twice Causing "atg.json.JSONException: Unterminated string" (Doc ID 2026208.1)

Last updated on NOVEMBER 13, 2015

Applies to:

Oracle Commerce Platform - Version 9.4.0.4 and later
Information in this document applies to any platform.

Symptoms

Some special characters in some types of ATG request is doubly decoded and result in invalid request. Following %25+Albany in the request XML would lead to JSONException:

This issue can occur in following types of request:

  1. GET request
  2. POST request with content type 'application/x-www-form-urlencoded'
  3. PUT request with content type 'application/x-www-form-urlencoded'

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms