WEBUTIL_File_Transfer Fails With WUT-132 Invalid Applications Server File Name
(Doc ID 341174.1)
Last updated on OCTOBER 07, 2023
Applies to:
Oracle Forms - Version 10.1.2.0.2 and laterOracle Forms for OCI - Version 12.2.1.3.0 and later
Information in this document applies to any platform.
Symptoms
The objective is to transfer a file from the client machine to the machine hosting OracleAS 10g Forms Services via WebUtil - WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS
When starting the transfer of a file from the client to the application server machine using this WebUtil function an error occurs e.g.
WUT-132: Invalid Application Server File Name
Cannot create application server file
http://machine/webdoc/test.txt java.io.filenotfoundexception:
http:\\machine\webdoc\test.txt
There is a virtual directory declared in forms90.conf:
AliasMatch ^/webdoc/(..*) "d:\webdoc/$1"
This alias works as it is possible to access a file from that directory using a standard URL
Settings in webutil.cfg are:
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=c:\temp
transfer.appsrv.accessControl=FALSE
#List transfer.appsrv.read.<n> directories
transfer.appsrv.read.1=c:\temp
transfer.appsrv.write.2=d:\webdoc
transfer.appsrv.read.3=c:\
#List transfer.appsrv.write.<n> directories
transfer.appsrv.write.1=c:\temp
transfer.appsrv.write.2=d:\webdoc
transfer.appsrv.write.3=c:\
Code in the form:
DECLARE
transfer_ok BOOLEAN;
server_writable BOOLEAN;
client_dir_file VARCHAR2(100);
BEGIN
client_dir_file := WEBUTIL_FILE.FILE_OPEN_DIALOG(null,null,null,'Attach document');
server_writable := WEBUTIL_FILE_TRANSFER.IS_AS_WRITABLE('http://machine/webdoc/test.txt');
IF server_writable then
message('file ok !');
ELSE
message('file not ok !');
END IF;
transfer_ok:= WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS(client_dir_file,'http://machine/webdoc/test.txt');
END;
The directory on the application server exists and has read / write permissions.
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 |