Bug #2880
Unicode chars in VM name are truncated
Status: | New | Start date: | 05/08/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Core & System | |||
Target version: | - | |||
Resolution: | Pull request: | |||
Affected Versions: | OpenNebula 4.10, OpenNebula 4.12, OpenNebula 4.14, OpenNebula 4.6, OpenNebula 4.8, OpenNebula 5.0 |
Description
Reported in the mailing list:
http://lists.opennebula.org/pipermail/users-opennebula.org/2014-May/027425.html
Hi everyone,
There seems to be a bug in 4.6 regarding special characters in VM's names (at least this holds for german umlauts):
If I set a VM to have the name "text ö text", the machine is displayed as "ö text".
If I change the name to "text ö text ö text", the machine is displayed as "ö text ö text".
In other words: Every character before the first special character is truncated.It's not a Sunstone bug, it also appears on the CLI. If I use "onevm list" the machine's name is truncated. If I use "onevm show", I see the full name. In Sunstone, the list of VMs shows the truncated name, the page with the VM's details however displays the full name.
Greetings
Wilma
History
#1 Updated by Carlos Martín about 7 years ago
For the record:
In the XML output, the name is correct:
$ onevm list -x | grep '<NAME'
<NAME>text ö text ö text</NAME>$ onevm show -x 0 | grep '<NAME'
<NAME>text ö text ö text</NAME>Greetings
Wilma
#2 Updated by Ruben S. Montero about 7 years ago
- Target version deleted (
Release 4.8)
#3 Updated by EOLE Team about 5 years ago
We have the same issue with images as described in #3189 (which is a duplicate), and it applies to 5.0 as well:
oneimage list
is bogus for image ID 9:oneadmin@bogdanov:~$ oneimage list ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS 0 eole-admin eole DSK-40-G images 40G OS No used 1 1 eole-admin eole DSK-100-G images 100G OS No rdy 0 [...] 8 nebula oneadmin alpine-vrouter images 256M OS No rdy 0 9 dad mensr α3 images 9.8G DB No rdy 0
- The real name is displayed in
oneimage show
:oneadmin@bogdanov:~$ oneimage show 9 IMAGE 9 INFORMATION ID : 9 NAME : test-2.4-α3 [...]
- The template referring to this image is bogus too:
oneadmin@bogdanov:~$ onetemplate show 7 TEMPLATE 7 INFORMATION ID : 7 NAME : test USER : dad GROUP : mensr REGISTER TIME : 06/27 13:35:26 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- TEMPLATE CONTENTS CONTEXT=[ NETWORK="YES", SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="0.02" DISK=[ IMAGE="α3", IMAGE_UNAME="dad" ] GRAPHICS=[ KEYMAP="fr", LISTEN="0.0.0.0", TYPE="VNC" ] MEMORY="1024" OS=[ ARCH="x86_64", BOOT="disk0" ] VCPU="2"
#4 Updated by Ruben S. Montero about 5 years ago
- Affected Versions OpenNebula 4.10, OpenNebula 4.12, OpenNebula 4.14, OpenNebula 4.8, OpenNebula 5.0 added