plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.65k stars 472 forks source link

rocket emoji causes UnsupportedOperationException #231

Closed VladimirAlexiev closed 1 year ago

VladimirAlexiev commented 2 years ago

(A bit related to https://github.com/plantuml/plantuml-server/issues/32, which should really be in this project).

On a whim I tried a rocket emoji (Eg see https://emojipedia.org/rocket/)

usecase "<:rocket:> Implement the changes" as Implement
[Company] --> Implement

at plantuml server causes this scary-looking result (cc @arnaudroques):

image

In contrast, a wrong emoji name (eg <:nosuch:>) is rendered as that same name.

It's strange that if I use the image URL directly in this issue (or a code block surrounded with @startuml..@enduml), it shows <:rocket:>! I guess that's because Github invokes the plantuml server in a slightly different way?

The image URL is: http://www.plantuml.com/plantuml/png/SoWkIImgAStDuIejJarEB4vLKBAnAifFpaujiR9JyCmjo4dDJSqhKIZ9I5L8paZCIqyjLb98B4R8S4Kxv-SM9EPLnYhewjeXYJkavgK0pGK0

HeinrichAD commented 1 year ago

The bug seems to be fixed. I can not reproduce it with the current version 1.2023.8.

(But, I could reproduce the issue with version 1.2022.6 as stated in the error image.)

Result with current version ```plantuml @startuml usecase "<:rocket:> Implement the changes" as Implement [Company] --> Implement @enduml ``` ![image](https://github.com/plantuml/plantuml-server/assets/5962361/950d8dd8-1c9f-4d53-8816-b589edb75661)