Strange URL validation in Shapefile importer
--------------------------------------------
Key: GEOS-3708
URL: http://jira.codehaus.org/browse/GEOS-3708
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.0.x
Reporter: Sebastian Benthall
Assignee: Andrea Aime
Attachments: PQUEPOS_Escenario_190.dbf, PQUEPOS_Escenario_190.shp,
PQUEPOS_Escenario_190.shx
With a certain shapefile (attached) given a certain path in the Shapefile Store
creation workflow, the URL field's validator seems to append an extra "file://"
before the URL I enter, and then reports an error. Logs show a stack trace
(also attached).
The original input to the URL field is:
{{file:data/Ejemplo_Puerto_Quepos-CRI/Esc190/PQUEPOS_Escenario_190.shp}}
That input is changed to the following when I click "Save":
{{file://file:data/Ejemplo_Puerto_Quepos-CRI/Esc190/PQUEPOS_Escenario_190.shp}}
The error reported in the page UI is:
{{Error creating data store, check the parameters. Error message: Shapefile not
found:file:/file:data/Ejemplo_Puerto_Quepos-CRI/Esc190/PQUEPOS_Escenario_190.shp}}
Expected behavior: The data store should be created from the Shapefile. If the
Shapefile is invalid, then I should get an error (hopefully an informative one
about what's wrong with the Shapefile), but in this case the URL field should
not change.
--
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
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel