E-PC: ViewContentURL Not Working For UNC Network Shared Paths (Doc ID 2234745.1)

Last updated on MARCH 01, 2017

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.55 and later
Information in this document applies to any platform.

Symptoms

ViewContentURL no longer works with UNC network shared paths in 8.55.  Per PeopleBooks, it's supposed to be work, and an example is even provided in PeopleBooks:

The JavaScript window open method uses the backslash (\) as a quote for the next character. You must use double backslashes for the ViewContentURL function to work a JavaScript. Note the four backslashes in the beginning of the following code example:
ViewContentURL("\\\\PT-NFS01\\PSUSERWS\\TEMP\\TVN\\81X-PATCHES.TXT");

However, calling code like the sample code in PeopleBooks leads to the UNC path not being opened, and instead ViewContentURL thinks it's a component.

For example, calling code:
ViewContentURL("\\\\hostname\\SHARED_FOLDER\\test.txt", True);

The URL the browser tries to open ends up being:
http://server/psc/ps/EMPLOYEE/HRMS/c/%5c%5c%5c%5chostname%5c%5cSHARED_FOLDER%5c%5ctest.txt

And that is an invalid URL.

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