[Geoserver-devel] [jira] Created: (GEOS-4228) Build failure in ResourcePoolTest caused by bad file path handling

Build failure in ResourcePoolTest caused by bad file path handling
------------------------------------------------------------------

                 Key: GEOS-4228
                 URL: http://jira.codehaus.org/browse/GEOS-4228
             Project: GeoServer
          Issue Type: Bug
          Components: Global
    Affects Versions: 2.1-beta1
            Reporter: Ben Caradoc-Davies
            Assignee: Justin Deoliveira
            Priority: Blocker

Commit in r15082 on trunk by jdeolive causes a build failure in ResourcePoolTest, when building in a path with spaces (our usual way of detecting bad file path handling). The presence of a file path element with "build%20with%20spaces" suggests a URL is being improperly converted to a File.

{code}
-------------------------------------------------------------------------------
Test set: org.geoserver.catalog.ResourcePoolTest
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.469 sec <<< FAILURE!
testGeoServerReload(org.geoserver.catalog.ResourcePoolTest) Time elapsed: 0.093 sec <<< ERROR!
javax.xml.transform.TransformerException: java.io.FileNotFoundException: /home/buildbot/GeoServerTrunkSlave/build%20with%20spaces/geoserver-trunk/src/main/./target/mock1319342102080559651data/featureTypes/cite_Lakes/info.xml (No such file or directory)
        at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:296)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:329)
        at org.geoserver.catalog.ResourcePoolTest.testGeoServerReload(ResourcePoolTest.java:152)
Caused by: java.io.FileNotFoundException: /home/buildbot/GeoServerTrunkSlave/build%20with%20spaces/geoserver-trunk/src/main/./target/mock1319342102080559651data/featureTypes/cite_Lakes/info.xml (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:286)
        ... 28 more
---------
java.io.FileNotFoundException: /home/buildbot/GeoServerTrunkSlave/build%20with%20spaces/geoserver-trunk/src/main/./target/mock1319342102080559651data/featureTypes/cite_Lakes/info.xml (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:286)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:329)
        at org.geoserver.catalog.ResourcePoolTest.testGeoServerReload(ResourcePoolTest.java:152)
{code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira