WEBUTIL in 10gAS on Linux: WUT-121 File Transfer forbidden
242034May 3 2004 — edited May 12 2004I developed a 9i Form in Designer to test file upload using WebUtil. The form successfully reads an image file in 9iDS environment on Windows.
In 10gAS on Linux, two problems arise:
1) Java console on form startup shows:
2004-May-03 14:11:12.775 ERROR>WUC-18 [URLDownload.pullFile()] Invalid server side file specification http://apexl2.apexoff.com:7778/forms90/f90servlet/webutil
/jacob.dll
(same error messages generated for JNIsharedstubs.dll and d2kwut60.dll)
I saw in an earlier posting that the DLLs are only needed for OLE integration, C API integration and the CLIENT_WIN_API_* packages. Since I am not using these at this time, I commented out the dlls from the webutil.cfg file, and the error messages no longer appear.
My question on this is if I were to need to access these packages/integration in the future, since the midtier is Linux based, where should these DLLs be located and how should the configuration files be set up? (Does it even work properly on a Linux midtier?)
2) When I try to read an image from my browser workstation, I get the error
"WUT-121: File Transfer has been forbidden by the Administrator /usr/local/forms/mywork/[myWinIP]/amys/logo_home[1].gif"
The file browser has come up fine, with initial directory of my Windows home, as expected. I attempted to read logo_home.gif from c:\temp.
I'm using an application-specific forms web configuration. In the configuration file (test.env), I added:
WEBUTIL_CONFIG=/usr/local/forms/webutil/server/webutil.cfg
I have configured that webutil.cfg with:
transfer.database.enabled=FALSE
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=/usr/local/forms/mywork
transfer.appsrv.accessControl=TRUE
#List transfer.appsrv.read.<n> directories
transfer.appsrv.read.1=c:\temp
#List transfer.appsrv.write.<n> directories
transfer.appsrv.write.1=c:\temp
(I tried changing accessControl=FALSE, no change.)
(The 9iDS webutil.cfg is configured with:
transfer.database.enabled=FALSE
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=c:\WebUtil
transfer.appsrv.accessControl=TRUE
#List transfer.appsrv.read.<n> directories
transfer.appsrv.read.1=c:\WebUtil
#List transfer.appsrv.write.<n> directories
transfer.appsrv.write.1=c:\WebUtil )
I noticed that when I run in 9iDS, the form creates the subdirectory c:\WebUtil\[myWinIP]\amys. It does not create the subdirectory /usr/local/forms/mywork/[myWinIP]/amys so I manually created it, in case it didn't have permission. (Didn't fix the problem. Even changed the Linux directory mywork to be read/write/execute to all.)
Read Image File button executes the code:
PROCEDURE get_client_image IS
BEGIN
:photo.photo_filename := NULL;
:global.user_home := webutil_clientinfo.get_system_property('user.home');
:photo.photo_filename := client_get_file_name(
directory_name => :global.user_home,
file_name => null,
file_filter => 'GIF Files (*.gif)|*.gif|',
message => null,
dialog_type => null,
select_file => null
);
IF :photo.photo_filename IS NOT NULL THEN
client_image.read_image_file(:photo.photo_filename, 'GIF', 'photo.photo');
END IF;
END;
Are those settings in webutil.cfg correct (workAreaRoot should be a Linux working directory? appsrv.read.<n> should be directories on the browser Windows workstation?) Can you give me any suggestions on what I'm doing wrong?
Thanks!
Amy