Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

ram
New Member

uccx 8.5 SECURITY_VIOLATION when reading repository files

Hi,

When trying to read a vxml file from the document repository in voice browser element I am getting the following error

%MIVR-SECURITY_MGR-2-SECURITY_VIOLATION:Security violation: Permission Name=/opt/cisco/uccx/<,Permission Action=read,Application=null,Script=null,Step id=0,Step,Step Description=null,Expression=null,Exception=java.security.AccessControlException: access denied (java.io.FilePermission /opt/cisco/uccx/< read)

1418545: Mar 15 12:04:51.142 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:java.security.AccessControlException: access denied (java.io.FilePermission /opt/cisco/uccx/< read)

1418546: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)

1418547: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at java.security.AccessController.checkPermission(AccessController.java:546)

1418548: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

1418549: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at com.cisco.security.impl.JavaSecurityManager.checkPermission(JavaSecurityManager.java:327)

1418550: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at java.lang.SecurityManager.checkRead(SecurityManager.java:871)

1418551: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at java.io.File.isDirectory(File.java:752)

1418552: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:65)

1418553: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at com.cisco.voicebrowser.browser.Browser.fetchVxml(Browser.java:483)

1418554: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at com.cisco.wf.cache.dom.DomCacheEntry.get(DomCacheEntry.java:117)

1418555: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at com.cisco.wf.cache.dom.DomCache.get(DomCache.java:88)

1418556: Mar 15 12:04:51.143 MDT %MIVR-SECURITY_MGR-2-EXCEPTION:          at com.cisco.voicebrowser.VxmlDocument$1.run(VxmlDocument.java:293)

Does anyone know what is the problem and how to fix this?

  • Contact Center
4 REPLIES

uccx 8.5 SECURITY_VIOLATION when reading repository files

Hi Ram,

The java.io.FilePermission is received because you are trying to  write a document in a folder in which you don't      have permission. In UCCX  8.0 and 8.5 the only place you have permission to write files is the  Customer folder: /opt/cisco/uccx/Customer.

So you need to put this path in the Write Document step:

untitled.JPG

A similar thing can be done with an XML document.

You can check if the files in the Customer folder with this CLI command:

admin:file uccx list custom_file *

And use an SFTP server to retrieve the files:

admin:file uccx get custom_file

Hope it helps.

Anand

Please rate helpful posts..

ram
New Member

uccx 8.5 SECURITY_VIOLATION when reading repository files

Thanks Anand for your reply. I am a newbie so I am not able to understand.

Here is my scenario -

I have uploaded a vxml document using "document management"  -- sample.vxml

And trying to use the vxml document in voice browser element.

and these are steps I am using in my script -

1. String vxmlURI = Doc[sample.vxml]

2.Document myURLDocument = create URL document(vxmlURI)

3.myNumber = voice Browser(--Tr.Contact--, myURLDocument)

When I try to debug this script at step 3 a popup comes with no description saying "Exception".

When I see the logs the exception is

%MIVR-SECURITY_MGR-2-SECURITY_VIOLATION:Security violation:  Permission Name=/opt/cisco/uccx/<,Permission  Action=read,Application=null,Script=null,Step id=0,Step,Step  Description=null,Expression=null,Exception=java.security.AccessControlException:  access denied (java.io.FilePermission /opt/cisco/uccx/< read)

seems like a read issue.

Can you help in the steps I should be using for reading the vxml document ?

Thanks a lot for the help.

uccx 8.5 SECURITY_VIOLATION when reading repository files

Hi Ram,

Cache Document Step

Use the Cache Document step to perform an input/output (I/O) operation (such as reading a file or

making an HTTP request) and cache the resulting document in the memory buffer.

Because the Cache Document step can use a great deal of memory, you should use it with caution.

The I/O operation is specified by the document defined in a preceding step (such as Create File

Document or Create URL Document) or by a document expression that contains a hard-coded document.

When the Create File Document or Create URL Document step executes, it creates the document

variable but does not send the URL request or access the file system.

The actual I/O operation occurs when another step (such as Send Response or Write Document)

references the document. The Cache Document step allows you to complete the I/O operation before

executing any subsequent steps.

Example 2-2 shows script pseudocode demonstrating how you can use the Cache Document step.

Example 2-2 Using the Cache Document Step

doc=Create URL Document(“http://mybank.money.com/debit?amount=500”)

doc=Cache Document(doc)

. . .

SendResponse(doc)

Reference:

Cisco Unified Contact Center Express Editor Step Reference Guide,

Release 8.5(1)

Hope it helps.

Anand

Please rate helpful posts..

ram
New Member

uccx 8.5 SECURITY_VIOLATION when reading repository files

Hi Anand,

I tried that but I am getting MalFormedURLException no protocol error.

Is the SECURITY_VIOLATION bug related to something to this

http://docwiki.cisco.com/wiki/Engine

If it is how do we change the permissions in the server ?

Thanks for the help.

1048
Views
0
Helpful
4
Replies