Qube's qube names character limit

Why we are notified that this limit is 32 characters, while we can set only 31? I started to notice this from the earliest version of 4.1 alpha til today’s v4.2.3.

It should say
"VM name must be shorter than 32 characters"
and not
"VM name must be shorter or equal to 32 characters"

What is the exact error you get?

1 Like

Oh G. My bad, Thanks. Somehow I read it like “no more than 32” or like… This topic should be deleted.

Actually no. You are right. I believe it should read:
"VM name must be shorter or equal to 31 characters"
To avoid confusion. But I am not going to make a PR for this at the moment. Hopefully if I make a PR to qubes-core-admin in the future, I will fix this as well.

2 Likes

That makes sense, especially since 32 is too much used number, as 2^5, so it’s strange that limit isn’t 32 characters actually.

1 Like

This is how a C programmer brain works. Since C strings are Null-terminated. ASCII characters ended with 0. So technically a 31 character string uses 32 bytes of memory.

1 Like

Now you now I’m not a programmer :rofl:

1 Like