My Oracle Support Banner

ibcGetAtachment.jsp Is Missing A Empty String Case To Avoid Exception. (Doc ID 2882987.1)

Last updated on JULY 13, 2022

Applies to:

Oracle Content Manager - Version 12.2.5 and later
Information in this document applies to any platform.

Symptoms

ACTUAL BEHAVIOR
---------------
As per the $OA_HTML/ibcGetAttachment.jsp

if (cverid != null && mimetype != null && language != null) {
      long cvidLong = Long.parseLong(cverid);
      fndLobsIS = new FndLobsInputStream(cvidLong, language, mimetype, enc);
   }
   else {
      long cidLong = Long.parseLong(cid);

      if (fid != null) {
         long fidLong = Long.parseLong(fid);

Above is taking care of not null scenario and  need exception handling in case of empty string.






STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. ibcGetAtachment.jsp -->Check for empty string



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.