Internal Server Error: !if -1 == -1

+1 vote
asked Nov 8, 2022 in Bug by kirchsth (4,880 points)

Following !if -1 == -1 produces an internal server error, if it is started on the plantuml web server http://www.plantuml.com (version 1.2022.13.beta5)
( !if "-1" == "-1" is working)

@startuml
[A]
!if -1 == -1
[Bob] -> [Alice]
!endif
@enduml

BR Helmut

commented Nov 8, 2022 by The-Lu (63,920 points)

[Just for a test case]

Same issue with variable:

@startuml
[A]
!$v = -1
!if ($v == -1)
[Bob] -> [Alice: $v]
!endif
@enduml

commented Nov 8, 2022 by The-Lu (63,920 points)

Hello K.,

Here is a funny workaround, with %string... wink

@startuml
[A]
!if %string(0-1) == %string(0-1)
[Bob] -> [Alice]
!endif
@enduml

Or just:

@startuml
[A]
!if 0-1 == 0-1
[Bob] -> [Alice]
!endif
@enduml

Regards.

commented Nov 8, 2022 by plantuml (294,960 points)
Thanks all for your test cases!

It should be fixed now.

Tell us when you'll find other issues :-)
commented Nov 8, 2022 by kirchsth (4,880 points)
Thank you for the fast fix
BR Helmut

1 Answer

0 votes
answered Nov 11, 2022 by kirchsth (4,880 points)
fixed it in the meantime by the plantuml team
...