[openstreetmap/openstreetmap-website] old user preferences containing "%" break PUT on /api/0.6/user/preferences (Issue #4467)

mmd notifications at github.com
Wed Jan 10 21:11:34 UTC 2024


Also, the issue in #4001 is a completely different one. There's a missing "force string to be treated as UTF-8" in the character validation rules.


```
Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)

API threw unexpected Encoding::CompatibilityError exception: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
openstreetmap-website/app/validators/characters_validator.rb:6:in `match?'
openstreetmap-website/app/validators/characters_validator.rb:6:in `validate_each'

```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4467#issuecomment-1885739614
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/4467/1885739614 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240110/d3418f26/attachment.htm>


More information about the rails-dev mailing list