-
Notifications
You must be signed in to change notification settings - Fork 409
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
Bad behaviour in setting attributes #910
Comments
This is the behaviour using
This is the resulting resource content:
Also, the value of the attribute alone, is returned properly decoded:
|
This is the behaviour using a tomcat instance behind an apache httpd server, using a single uriencoded URL:
Notice that PUTting an attribute value without slashes (albeit uriencoded) is working;
Probably some logic in the container is decoding the urlEncoded part, and will provide to the REST framework a URL where the slashes that should be part of the attribute value are parsed as part of the REST path; in this case the REST framework will not recognise the REST path and wil return a 404. By encoding the attribute value twice, the encoded slashes will be "protected":
but we'll need to decode the retrieved value:
|
Closed and opened an issue in Geostore. |
There is a different behaviour when an attribute’s value is being updated on GeoStore:
This is the curl command im using:
results:
HTTP/1.1 400 Bad Request
HTTP/1.1 200 Ok
This is the base value that needs to be encoded twice on Tomcat and only once with Jetty:
http://demo.geo-solutions.it/share/MapStore2-previews/histo-flowrence.png
I also have some problems with this request using postman ( Cross-Origin Resource Sharing (CORS) Filter: Unsupported HTTP method, 405 Method not allowed)
The text was updated successfully, but these errors were encountered: