-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shapefile upload with not ASCII field names fails #3818
Comments
This is happening because of a problem with GeoServer REST API. When checking gs_resource.native_bbox in Step 6 of geoserver/upload.py the error is raised. This is the endpoint which is checked: and this is the exception: *** Exception: ('GeoServer gave non-XML response for [GET http://localhost:8080/geoserver/rest/workspaces/geonode/datastores/wmdata/featuretypes/ming_female_1.xml]: \n ming_female_1\n ming_female_1\n \n geonode\n <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/namespaces/geonode.xml" type="application/xml"/>\n \n <title>ming_female_1</title>\n .... @afabiani any chance this can be fixed in GeoServer? In case you want to replicate I can send you the shapefile. |
@afabiani is this a know problem? should I report this in the GeoServer mailing list? |
Hi @capooti we should open a JIRA on GeoServer for this one I guess. |
Update: Andrea Aime suggests (look at the comments in the ticket) to prevent field names containing characters like "@", "/" etc... when uploading shapefiles and add this to our fields sanitizer. I can look into this soon and come with a fix. |
This was fixed now with PR #4026 |
Observed in 2.7.x. Error log:
The text was updated successfully, but these errors were encountered: