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 MARCH 13, 2018

Applies to:

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


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:

And then rendered in the Template code, like the following:
<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




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