Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 8.0-RC1
-
Fix Version/s: None
-
Component/s: referencing
-
Labels:None
-
Environment:Maven 2 and 3, Oracle JDK 6 32 or 64-bit, under Linux, in a path with spaces.
Description
GEOT-4063 patch committed in r38634 on trunk causes build failures in referencing when built in a path with spaces because of bad File/URL conversions. Code likely does not conform to policy:
http://docs.geotools.org/latest/developer/conventions/code/url.html
Results : Failed tests: testIsNTv2GridAvailable(org.geotools.referencing.factory.gridshift.NTv2GridShiftFactoryTest) Tests in error: testTransform(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testGetSourceDimensions(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testGetTargetDimensions(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testGetParameterValues(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testNADCONTransform(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testInverse(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testInverseTransform(org.geotools.referencing.operation.transform.NADCONTransformTest): File does not exist or is unreadable: /home/car605/geoserver/src%20with%20spaces/geotools-trunk/modules/library/referencing/target/test-classes/org/geotools/referencing/factory/gridshift/stpaul.las testTransform(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. testGetSourceDimensions(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. testGetTargetDimensions(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. testGetParameterValues(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. testInverse(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. testInverseTransform(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. testNTv2Transform(org.geotools.referencing.operation.transform.NTv2TransformTest): NTv2 Grid File not available. Tests run: 241, Failures: 1, Errors: 14, Skipped: 5
Issue Links
- relates to
-
GEOT-4063
NTv2 grid shift transformation (EPSG:9615)
-
the full text of the failure on the CSIRO Computational Geoscience buildbot is here:
http://geobuilder.arrc.csiro.au/geoserver/builders/GeoT-java15/builds/6277/steps/shell/logs/stdio
This one is Maven 2 with Java 6 32-bit under Debian. I also see this failure with Maven 3 / Java 6 64-bit under Fedora.
Paths with spaces occur often in Windows deployments, and are also a proxy for internationalised filenames that contain unicode characters. If code fails to process paths with spaces, it will likely also fail in other circumstances that require correct escaping and unescaping of special characters. The established convention (in fact a policy) for GeoTools URL/File conversions is documented here:
http://docs.geotools.org/latest/developer/conventions/code/url.html
Kind regards,
Ben.