In web applications compiled with Oracle JDeveloper 12.2.1.3.0 and deployed on GlassFish 5.x the “file download/upload” functions do not work.
The problem resides in how the Trinidad library handles multi-part forms and it is fixed by the following change.
index: trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/share/util/MultipartFormHandler.java =================================================================== --- trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/share/util/MultipartFormHandler.java (revision 1160712) +++ trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/share/util/MultipartFormHandler.java (working copy) @@ -388,9 +388,14 @@ { return null; } + String boundary = contentType.substring(boundaryStart +_BOUNDARY_PARAMETER.length()); + final int semicolonIndex = boundary.indexOf(";"); + if (semicolonIndex > -1) { + boundary = boundary.substring(0, semicolonIndex); + } // Boundary always starts with "--" - return "--" + contentType.substring(boundaryStart + _BOUNDARY_PARAMETER.length()); + return "--" + boundary; } //Reads the ContentType string out of a line of the incoming request
Spazio IT has applied this fix to the trinidad-impl.jar file distributed with Oracle JDeveloper 12.2.1.3.0 which should replace the one in “<Oracle_Home>/oracle_common/modules/oracle.adf.view”.
Do notice: the fix is not needed when using Jdeveloper 12.2.1.4.0.