[openstreetmap/openstreetmap-website] HTTP 500/502 when calling `/changeset/create` with percent and unicode symbols in body (Issue #6096)
Roman Deev
notifications at github.com
Fri Jun 13 18:15:17 UTC 2025
deevroman created an issue (openstreetmap/openstreetmap-website#6096)
### URL
_No response_
### How to reproduce the issue?
I suspect the error is in incorrect % escaping, however I don't expect HTTP 5xx code
```bash
curl 'https://master.apis.dev.openstreetmap.org/api/0.6/changeset/create' \
-v \
-X PUT \
--data-raw $'<osm><changeset><tag k="created_by" v="test"/><tag k="comment" v="100% \u0441\u043f\u043e\u0440\u0442\u0430"/></changeset></osm>'
```
Response:
```
HTTP/2 502
< date: Fri, 13 Jun 2025 18:10:34 GMT
< cache-control: no-cache, no-store, must-revalidate
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< content-length: 54
< status: 502 Bad Gateway
< x-robots-tag: noindex, nofollow
< content-type: text/html; charset=UTF-8
< server: Apache/2.4.62 (Debian)
<
* Connection #0 to host master.apis.dev.openstreetmap.org left intact
```
If you remove the \u symbols:
```bash
curl 'https://master.apis.dev.openstreetmap.org/api/0.6/changeset/create' \
-v \
-X PUT \
--data-raw $'<osm><changeset><tag k="created_by" v="test"/><tag k="comment" v="100%"/></changeset></osm>'
```
Response:
```
< HTTP/2 500
< vary: Origin
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-request-id: d691e6dc-12f0-49af-8740-3ea0a85f7b06
< x-runtime: 0.010115
< date: Fri, 13 Jun 2025 18:11:30 GMT
< x-powered-by: Phusion Passenger(R) 6.0.27
< status: 500 Internal Server Error
< x-robots-tag: noindex, nofollow
< content-type: text/plain; charset=utf-8
< server: Apache/2.4.62 (Debian)
<
500 Internal Server Error
* Connection #0 to host master.apis.dev.openstreetmap.org left intact
```
### Screenshot(s) or anything else?
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6096
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6096 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250613/c924b902/attachment.htm>
More information about the rails-dev
mailing list