lime-packages icon indicating copy to clipboard operation
lime-packages copied to clipboard

New network name created via FBW is forced to lowercase but default is mixed case

Open ilario opened this issue 5 years ago • 7 comments

FirstBootWizard forces the users to use lowercase names for the new networks (see https://github.com/libremesh/lime-app/commit/73d464e) but the default "LibreMesh.org" is not lowercase.

The lowercase was introduced as a bug fix (mentioned here) but the bug is not specified, maybe is for avoiding confusion?

We should change the default "LibreMesh.org" to "libremesh.org". A (maybe small but surely annoying for someone) drawback is that the 10.13.x.x network domain would change to 10.249.x.x

ilario avatar Dec 01 '19 20:12 ilario

Fixed with https://github.com/libremesh/lime-app/pull/268

ilario avatar Aug 26 '20 12:08 ilario

Maybe this is not 100% fixed, see https://github.com/libremesh/lime-app/issues/288

ilario avatar Jan 21 '21 17:01 ilario

Oh, no my fault, we do want hostnames to be lower case forced. I though we didn't. Network names are note forced to be upper-case. Thanks @ilario

germanferrero avatar Jan 22 '21 01:01 germanferrero

Mh... Let's keep the "hostname" and "network name" issues clearly separated please, I am a bit confused now.

Problem 1: Network name defaults to "LibreMesh" (in lime-system's lime-defaults) but the fbw (and lime-app?) forces it to be lowercase. Is this correct?

Problem 2: Hostname defaults to LiMe-%M4%M5%M6 but fbw (and lime-app?) forces it to lower case. Is this correct?

ilario avatar Jan 22 '21 09:01 ilario

Problem 1: Network name defaults to "LibreMesh" (in lime-system's lime-defaults) but the fbw (and lime-app?) forces it to be lowercase. Is this correct?

Not anymore, this was fixed by https://github.com/libremesh/lime-app/pull/268, now network name can use uppercase.

Problem 2: Hostname defaults to LiMe-%M4%M5%M6 but fbw (and lime-app?) forces it to lower case. Is this correct?

Yes, we have closed https://github.com/libremesh/lime-app/issues/210 to soon. @spiccinini said there:

We should allow uppercase network names. Hostnames, in my opinion, in lowercase. @germanferrero ?

I didn't answer then, now I do: I think we should allow uppercase on hostnames too. It gives more freedom to the users and it is harmless. DNS resolution is case insensitive.

germanferrero avatar Jan 22 '21 17:01 germanferrero

We should allow uppercase network names. Hostnames, in my opinion, in lowercase. @germanferrero ?

I didn't answer then, now I do: I think we should allow uppercase on hostnames too. It gives more freedom to the users and it is harmless. DNS resolution is case insensitive.

I think it is better to use all lowercase hostnames, and change the default to lime-%M4%M5%M6, because there is a lot of broken software in the world that does not have case insensitivity support. I know that enforcing softly the all lowercase hostname is not a proper fix, and bugs may pile under the carpet (for example storing hostnames in hash maps without prior enforcing lowercase, etc). In the other hand I think it is more confusing to have mixed case hostnames.

spiccinini avatar Feb 04 '21 21:02 spiccinini

So it would be enough to change this line:

https://github.com/libremesh/lime-packages/blob/78162b4d773c9e8d01f63801ce3464ea84ac89b6/packages/lime-system/files/etc/config/lime-defaults#L9

ilario avatar Mar 01 '23 17:03 ilario