Opened 8 hours ago
#24553 new defect
Download object dialog does not ignore U+202E Unicode control character
| Reported by: | ff5722 | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Paste text containing an unicode control character in the download object dialog ID field
1364346400
- JOSM will say the Object ID is invalid
What is the expected result?
Either render the control character or trim it
What happens instead?
The ID visually looks valid but only after pasting in an advanced text editor the user can find why it was showns as invalid.
Please provide any additional information below. Attach a screenshot if possible.
As for why the U+202E character was included, I simply pasted a link from osm.org with Microsoft Edge, which became formatted as:
<a href="https://www.openstreetmap.org/way/1364346400#map=16/25.58389/107.30486" data-text-el="text-only-link" data-md-href="https://www.openstreetmap.org/way/1364346400#map=16/25.58389/107.30486" rel="noopener noreferrer nofollow">Way: 筑北高速 (1364346400) | OpenStreetMap</a>
It seems that basic escape characters like line endings are already trimmed, but I didn't test all the other 'rare' ones such as from this list https://unicode-explorer.com/b/2000
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2025-08-31 14:19:57 +0200 (Sun, 31 Aug 2025) Revision:19439 Build-Date:2025-09-02 01:30:58 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19439 en_GB) Windows 11 64-Bit OS Build number: Windows 10 Home 25H2 (26200) Memory Usage: 650 MB / 3048 MB (150 MB allocated, but free) Java version: 25+37-LTS-3491, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920x1080x32bpp@75Hz (scaling 1.00×1.00) \Display1 1920x1080x32bpp@59Hz (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: UTF-8 System property sun.jnu.encoding: Cp1252 Locale info: en_GB Numbers with default locale: 1234567890 -> 1234567890 Dataset consistency test: No problems found Plugins: + FastDraw (36438) + apache-commons (36438) + buildings_tools (36438) + easypresets (1623509627) + ejml (36438) + geotools (36438) + jackson (36438) + jaxb (36438) + jts (36438) + mbtiles (v2.6.1) + opendata (36460) + reverter (36447) + terracer (36438) + utilsplugin2 (36438) Tagging presets: + <josm.pref>/EasyPresets.xml Last errors/warnings: - 00000.481 W: extended font config - overriding 'filename.Malgun_Gothic=malgun.ttf' with 'MALGUN.TTF' - 00000.482 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.482 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
Attachments (2)
Change History (2)
by , 8 hours ago
| Attachment: | Screenshot 2025-11-24 180420.png added |
|---|
by , 8 hours ago
| Attachment: | Screenshot 2025-11-24 180446.png added |
|---|


