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 "Jan Tošovský (JIRA)" <ji...@apache.org> on 2019/02/20 10:30:00 UTC

[jira] [Updated] (BATIK-1251) Policy file is missing in the Squiggle app

     [ https://issues.apache.org/jira/browse/BATIK-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Tošovský updated BATIK-1251:
--------------------------------
    Description: 
There is no policy file in batik-squiggle-1.11.jar file. Some policy can be found in the linked library batik-svgbrowser-1.11.jar, but it contains several outdated versions.

I believe same approach used already for rasterizer could be applied here as well, see https://issues.apache.org/jira/browse/BATIK-1233

That issue was initially targeted for Squiggle, but I overlooked only rasterizer was fixed at the end.

Replication steps:
 # Unzip binary distribution
 # Double click batik-squiggle-1.11.jar
 # Error dialog appears. When 'Show Details' button is clicked, this strack trace is listed:

{code:java}
java.security.AccessControIException: access denied ("java.io.FilePermission" "\C:\batik—1.11\lib\batik—svgbrowser—1.11.jar" "read")
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(Unknown Source)
   at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
   at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.jar.JarURLConnection.getlnputStream(Unknown Source)
   at org.apache.batik.util.ParsedURLData.openStreamlnternal(ParsedURLData.java:554)
   at org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:476)
   at org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:440)
   at org.apaChe.batik.anim.domSAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158)
   at org.apaChe.batik.anim.domSAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactow.java:124)
   at org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:106)
   at org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84){code}
 

 

 

 

 

  was:
There is no policy file in batik-squiggle-1.11.jar file. Some policy can be found in the linked library batik-svgbrowser-1.11.jar, but it contains several outdated versions.

I believe same approach used already for rasterizer could be applied here as well, see https://issues.apache.org/jira/browse/BATIK-1233

That issue was initially targeted for Squiggle, but I overlooked only rasterizer was fixed at the end.

 

 

 

 

 


> Policy file is missing in the Squiggle app
> ------------------------------------------
>
>                 Key: BATIK-1251
>                 URL: https://issues.apache.org/jira/browse/BATIK-1251
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG Viewer
>            Reporter: Jan Tošovský
>            Priority: Major
>
> There is no policy file in batik-squiggle-1.11.jar file. Some policy can be found in the linked library batik-svgbrowser-1.11.jar, but it contains several outdated versions.
> I believe same approach used already for rasterizer could be applied here as well, see https://issues.apache.org/jira/browse/BATIK-1233
> That issue was initially targeted for Squiggle, but I overlooked only rasterizer was fixed at the end.
> Replication steps:
>  # Unzip binary distribution
>  # Double click batik-squiggle-1.11.jar
>  # Error dialog appears. When 'Show Details' button is clicked, this strack trace is listed:
> {code:java}
> java.security.AccessControIException: access denied ("java.io.FilePermission" "\C:\batik—1.11\lib\batik—svgbrowser—1.11.jar" "read")
>    at java.security.AccessControlContext.checkPermission(Unknown Source)
>    at java.security.AccessController.checkPermission(Unknown Source)
>    at java.lang.SecurityManager.checkPermission(Unknown Source)
>    at java.lang.SecurityManager.checkRead(Unknown Source)
>    at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(Unknown Source)
>    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
>    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
>    at sun.net.www.protocol.jar.JarURLConnection.getlnputStream(Unknown Source)
>    at org.apache.batik.util.ParsedURLData.openStreamlnternal(ParsedURLData.java:554)
>    at org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:476)
>    at org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:440)
>    at org.apaChe.batik.anim.domSAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158)
>    at org.apaChe.batik.anim.domSAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactow.java:124)
>    at org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:106)
>    at org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84){code}
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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