My Oracle Support Banner

Vanity URLs Retreived in Controller using AssetReader are URL-Encoded in Live Mode but URL-Decoded in Preview Mode (Doc ID 2369815.1)

Last updated on NOVEMBER 04, 2022

Applies to:

Oracle WebCenter Sites - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

When using AssetReader to retrieve Blob Vanity URL, it is not url-encoded when rendermode=preview.

For example:
- Suppose you have a vanity url for a blob attribute named TestBlobAttr: example(1).jpg

The blob is retrieved from a Controller using AssetReader:
e.g.



And then rendered in the Template code, like the following:
e.g.
<img src="${image.TestBlobAttr_bloblink_}" />

When rendered with rendermode=live, the url is rendered in the html as url-encoded:
e.g.  example(1).jpg

When rendered with rendermode=preview, the url is rendered in the html without being url-encoded:
e.g.  example(1).jpg

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.