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)
Error in executing iwaccess set-owner
dineshkumar
Dear All,
As part of my requirement, I am trying to set owner and group for workarea files using the following clt.
C:/Interwoven/TeamSite/bin/iwaccess.exe set-owner Y:/qr_redesign/main/myBranch/WORKAREA/work/templatedata/myCategory/Configuration/data/subfolder domain\\cmsadmin -r
While I am executing this clt through windows cmd, it is working fine. But I am having a custom menu JSP, while trying to execute it from that JSP it is not working.
I suspect this as a permission issue. Not sure why this is happening. Even I cant conclude this is happening due to iwui. Since the folder and files, which I am trying to set owner is getting created from same java, with another clt just above one line.
Enivironment details:
Windows serer 2003, TS 7.0
Any suggestions or alternate aways??
Find more posts tagged with
Comments
Rick Poulin
The IW authentication filter applies to all custom JSPs that aren't first routed through a custom servlet. Long story short, the JSP will run the command line as the logged in iw_user, so permissions could very likely be the issue.
That said,
* The issue could be one of a bajillion different things. Using logging, or posting a stack trace, or even sharing your code would be a good start.
* Consider using the CSSDK instead of forking a process to the command line. Not only is this faster and less error prone, but debugging will be **** tons easier.
* There's a multitude of reasons why scriptlets (which is what you're doing) are a bad idea, so please check that out on Google before you put this in production.
dineshkumar
Hi Rpoulin,
Thanks for the reply.
Even I dont want to go with clt. But to satisfy my requirement, I could not get a way through cssdk APIs.
I choosed clt atlast as, I could not convert String to CSFile. I need to copy all the DCRs from one folder to another. To do this, I am getting source and target paths as string.
So, DCR copy is happening perfectly here. Only setting owner and group is not working.
As you mentioned, there can be more than one reason for this issue. If it is a permission issue, I logged in to CMS server with adminstrator credentials. Even in that case set owner CLT is not working. Even I am not getting any error.
Please find the attached code
Adam Stoller
Have you searched the forums for "String CSFile" or "String CSSimpleFile"?
If not, I suggest you do so, as there have been a number of examples posted showing how to convert a string vpath into a CSFile or CSSimpleFile.
Rick Poulin
I choosed clt atlast as, I could not convert String to CSFile.
I don't think you tried very hard...
CSFile file = csclient.getFile(new CSVPath("/default/main/hello/WORKAREA/world/blah.txt"));
The semi-hard part when starting out is obtaining a CSClient. That, as ghoti said, has examples littered all over devnet.
Even I am not getting any error.
That's because you're never using the Process object returned by the exec() call. If you were to log its input and/or error stream to a log file, you'll likely find the error message you're looking for.