#7558 closed defect (fixed)
History window shows XML entities in user names
| Reported by: | kolen | Owned by: | team |
|---|---|---|---|
| Priority: | trivial | Component: | Core |
| Version: | tested | Keywords: | history, entities, entity |
| Cc: |
Description
If user name contain characters such as apostrophe ('), history window shows such characters as XML entity, i.e. "'".
version 5047
Attachments (1)
Change History (6)
Changed 14 months ago by kolen
comment:1 Changed 14 months ago by Don-vip
comment:2 Changed 14 months ago by bastiK
- Resolution set to fixed
- Status changed from new to closed
I've committed a fix, but it doesn't show up in trac...
comment:3 Changed 14 months ago by Don-vip
r5146 :) Are you sure it does only concern the apostrophe sign ?
comment:4 Changed 14 months ago by bastiK
Yes, I've tried all except \t \n and \r. My Java is
java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
comment:5 Changed 14 months ago by Don-vip
FYI I have created a bug on bugs.sun.com:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7158257
It has been closed as "not a defect" because Java supports only HTML 3.2, but "apos;" is not even in HTML 4. Indeed, it appeared only in XHTML 1.0: http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML
This wikipedia list is useful to find entities not supported by Java (everything introduced after HTML 3.2). I will run some tests and maybe add some other exceptions.



I can reproduce it with:
Can you post you system information, please ? (first lines of Help->Status report).
@team: This change has been intentionally made in r4602:
http://josm.openstreetmap.de/changeset/4602/josm#file7 (line 444)
But I don't understand why the HTML entities are not replaced. Is it a LnF-specific bug ?