Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1251

Policy file is missing in the Squiggle app

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • SVG Viewer
    • None

    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:

      1. Unzip binary distribution
      2. Double click batik-squiggle-1.11.jar
      3. Error dialog appears. When 'Show Details' button is clicked, this strack trace is listed:
      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)

       Environment: Win 10 64bit, Oracle JRE 1.8.0_171

       

       

       

       

      Attachments

        1. preferences.xml
          0.1 kB
          Simon Steiner

        Activity

          ssteiner Simon Steiner added a comment -

          Could you add replication steps for issue

          ssteiner Simon Steiner added a comment - Could you add replication steps for issue
          BigBadaboom Paul LeBeau added a comment - - edited

          Batik is great software, but this is getting quite frustrating.  The last version of squiggle that actually runs is 1.7.1.

          All the newer versions either silent quit at startup, or crash/hang on the splash screen. Requiring the process to be killed.

          Any chance squiggle could get a bit of TLC please? 

          (Sorry for the moan)

           

          I'm using Windows 7, with Java 8.

           

           

          BigBadaboom Paul LeBeau added a comment - - edited Batik is great software, but this is getting quite frustrating.  The last version of squiggle that actually runs is 1.7.1. All the newer versions either silent quit at startup, or crash/hang on the splash screen. Requiring the process to be killed. Any chance squiggle could get a bit of TLC please?  (Sorry for the moan)   I'm using Windows 7, with Java 8.    
          ssteiner Simon Steiner added a comment -

          Workaround is to add this preferences.xml to %USERPROFILE%\.batik

          ssteiner Simon Steiner added a comment - Workaround is to add this preferences.xml to %USERPROFILE%\.batik
          ssteiner Simon Steiner added a comment - http://svn.apache.org/viewvc?view=revision&revision=1854984

          People

            ssteiner Simon Steiner
            jan.tosovsky.cz Jan Tošovský
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: