You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/06/06 10:40:11 UTC

DO NOT REPLY [Bug 35233] New: - RhinoInterpreter does not always call setSecurityController()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35233>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35233

           Summary: RhinoInterpreter does not always call
                    setSecurityController()
           Product: Batik
           Version: 2.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Scripting
        AssignedTo: batik-dev@xml.apache.org
        ReportedBy: jbq@anyware-tech.com


Using Batik in Cocoon, activating the key_execute_onload transcoding hint of
batik rasterizer and using ecmascript on the onload attribute of the SVG root
element produces the following error:

java.lang.IllegalArgumentException: securityDomain should be null if
setSecurityController() was never called
        at org.mozilla.javascript.Context.compileImpl(Context.java:2324)
        at org.mozilla.javascript.Context.compileReader(Context.java:1334)
        at org.mozilla.javascript.Context.compileReader(Context.java:1306)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:1248)
        at org.apache.batik.script.rhino.RhinoInterpreter.evaluate(Unknown Source)

This happens because Cocoon loads Rhino for its own FlowScript before Batik is
requested to read an SVG image with scripting.  In this case, the context is
already initialized, but without security controller.  The patch attached sets
the security controller in all cases, whether or not the context has been
initialized by Batik.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org