Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Uploading Files on INTERWOVEN SERVER
sunil_j
Hi,
I am trying to upload a gif file from a local windows machine to an Interwoven Server running on Solaris using a Java Program.
I am trying to write a file (gif file) to /iwmnt/default/main/branchX/WORKAREA/workA/images
It throws an error saying Permission Denied, where as I have checked permssions on the images folder and it shows the following permission
drwxrwxrwx 2 team1000 publish 512 May 30 15:45 images
I am able to use the same program to write a file on a Windows machine to Y:/default/main/branchX/WORKAREA/workA/images
Can't think of what could be the problem. Can someone look into this and suggest me where I am doing wrong ?
Regards
Sunil
Find more posts tagged with
Comments
Adam Stoller
Do you know at what point you are getting a permission denied error? I.e. is it in the copying of the file to the workarea? or is it earlier - like in the execution of the Java program?
You might also need to post the code for the java program and information about how you installed it for folks to help further.
--fish
(Interwoven Senior Technical Consultant)
sunil_j
Yes, I know the exact location where it is throwing the exception.
Here are a couple of line of the File.java (attached) I am using to upload the File
java.io.File file = new java.io.File(path);
FileOutputStream fileOut = new FileOutputStream(file);
fileOut.write(m_parent.m_binArray, m_startData, m_size);
fileOut.close();
The exception is throws on the line which reads
fileOut.write(m_parent.m_binArray, m_startData, m_size);
I am using the approach already posted earlier in this forum.
Regards
Sunil
tvaughan
Just because you have write-access to the images directory doesn't mean you can necessarily write to that directory . . .you must also have write priveledges to the workarea. Does your application meet both criteria?
Tom
sunil_j
Hi,
My workarea has an owner and has been shared with a "publish" group. But the jsp file from which I am issuing the write command doesn't have any user information. Its a plain JSP file which takes a file name from the local file system and tries to write to /iwmnt directory .....under images folder.
Apart from sharing with a publish group and having an owner associated with the workarea.. I dont think I can do any thing with permission on the workarea.
Kindly help !!
Regards
nipper
Your app may be writing as iwui with no group associated, I had a similar problem & since iwui was not part of any group, the directories above the location need read and execute access for everyone, write access is required for the destination directory.
Is this solaris or windows ?
Andy