Uploaded image for project: 'GeoTools'
  1. GeoTools
  2. GEOT-5660

SVGGraphicFactoryTest#testLocalURLXEE fails on Windows (java.io.FileNotFoundException: \etc\passwd)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 17-beta
    • Fix Version/s: 15.5, 16.3, 17.0
    • Component/s: svg plugin
    • Labels:
      None
    • Environment:

      Windows 10

      Description

      Run the unit tests for gt-svg on Windows and it will fail with the error "java.io.FileNotFoundException: \etc\passwd (The system cannot find the path specified)"

      Running org.geotools.renderer.style.SVGFactoryFinderTest
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.geotools.renderer.style.SVGFactoryFinderTest
      Running org.geotools.renderer.style.SVGGraphicFactoryTest
      Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.07 sec <<< FAILURE! - in org.geotools.renderer.style.SVGGraphicFactoryTest
      testLocalURLXEE(org.geotools.renderer.style.SVGGraphicFactoryTest) Time elapsed: 0.024 sec <<< ERROR!
      java.io.FileNotFoundException: \etc\passwd (The system cannot find the path specified)
      at java.io.FileInputStream.open0(Native Method)
      at java.io.FileInputStream.open(FileInputStream.java:195)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at java.io.FileInputStream.<init>(FileInputStream.java:93)
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:622)
      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1300)
      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1237)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1908)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3067)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:431)
      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:349)
      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:200)
      at org.geotools.renderer.style.SVGGraphicFactory.getIcon(SVGGraphicFactory.java:165)
      at org.geotools.renderer.style.SVGGraphicFactoryTest.testLocalURLXEE(SVGGraphicFactoryTest.java:100)

        Attachments

          Activity

            People

            • Assignee:
              aaime aaime
              Reporter:
              leif81 Leif Gruenwoldt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: