My Oracle Support Banner

<af:inputFile> Update File Popup Window Does Not Dismiss (Doc ID 1570987.1)

Last updated on OCTOBER 03, 2023

Applies to:

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

Symptoms

An ADF file upload component <af:inputFile> is used  in a portletized jspx file as shown in the following snippet of source code:

  <f:view>
    <af:document id="d1">
      <af:form id="f1" usesUpload="true">
        <af:inputFile label="File" id="if1"/>
        <af:commandButton text="Upload" id="cb1"/>
      </af:form>
    </af:document>
  </f:view>

The web.xml has declared upload file size limit as follows  (1 Mb).

<context-param>
<param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
<param-value><PARAM_VALUE></param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
<param-value><PARAM_VALUE></param-value>
</context-param>  

When the portlet application is deployed into WebCenter Portal managed server, such as WC_Portlet, the update file popup window does not dismiss after file uploading fails due to file size limit.

The issue can be reproduced at will with steps:

Deploy a test case project onto WC_Portlet
Open browser, go to /<webapp_content>/info to show WSRP Producer Test Page. As per the following screen shot.

 

Click "run as servlet"
Click "Browse" to choose file to be uploaded. Choose one file larger than size (1M bytes)
Click button "Upload" , "Error: The file upload failed.The file could not be uploaded because it is too large.. " will be returned. As per the following screen shot.


Click button "Update..." which is on the right side of file input box and show update file dialog box.
Browse and select a file, Click "OK", the dialog box cannot dismiss. As per the following screen shot.

When the application is deployed on non-WebCenter Portal Managed server, such as a standard JRF enabled Weblogic server, the issue is not be reproduced.

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
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.