09-29-2011 04:06 PM - edited 03-14-2019 08:38 AM
Hi,
We are currently having an issue with our subflow script which alters an XML file.
This Script has been functional in the past however it was when we were running UCCX 7.0 on windows and we used the windows paths to reference the XML document.
We have migrated to the Document repository and have worked through most errors like replacing the create file document step with the Create XML Document step however we receive the following error on the Write Document step:
AccessControlException:access denies (java.io.FilePermission DOC[/XMLs/business_fwd.xml] read)
I have attached the Script and XML documents.
Any help would be greatly appreciated.
Scott
09-29-2011 10:07 PM
Error "expecting string"
09-29-2011 10:13 PM
Sorry, you only need the "business_fwd.xml"
You only invoke DOC[foobar] when you want to pull the file. Saving it just requires the name.
09-29-2011 10:23 PM
Removed the DOC and only had "business_fwd.xml".. still no joy unfortunately, we can now debug the script again though, and we see the upload step hitting unsuccesful...
09-29-2011 10:30 PM
Dumb question, do both the Get User and Authenticate User steps succeed?
If so, you may need to gather the MIVR logs and determine exactly why it's
failing.
09-29-2011 10:52 PM
both get user and auth user steps succeed
09-29-2011 11:34 PM
after looking through look MIVR logs we have found the following:
%MIVR-STEPS_DOCUMENT-7-DOCUMENT_UPLOAD_EXCEPTION:Executing: Task id=25000002875,Step=java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.
6874812: Sep 30 16:13:13.001 EST %MIVR-STEPS_DOCUMENT-7-EXCEPTION:java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.
6874813: Sep 30 16:13:13.001
%MIVR-STEPS_DOCUMENT-7-DOCUMENT_UPLOAD_EXCEPTION:Executing: Task id=25000002875,Step=java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.
6874812: Sep 30 16:13:13.001 EST %MIVR-STEPS_DOCUMENT-7-EXCEPTION:java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.
6874813: Sep 30 16:13:13.001
However 0290082334 is an appadmin administrator/supervisor/agent
Any ideas?
Scott
09-29-2011 11:47 PM
Hi Scott
You have a get user step, which is good..
Then an auth user, which references the userid again - this should reference the UserAuth object that you just obtained with the get user step. If you just reference the userid and PIN, you are basically 'testing' the auth, not authenticating your user object.. see?
You are already correctly using UserAuth for the actual upload step, but because the Auth User step hasn't done the business on UserAuth, it fails..
Regards
Aaron
09-29-2011 11:51 PM
Hi Aaron,
Thank you for the information there very helpful as we have had no need for the Auth or user steps for subflows etc in the past with the IPCX 7.x
Scott
09-29-2011 11:48 PM
Hi,
We have resolved this issue, the error being that we were authenticating a user rather than the users extension, once this was changed fieles started uploading.Thank you for your help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide