You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GUI check for own/already-existing device ID could be better #7291
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
I can reproduce. While trying I noticed that typing the ID lower-case and no dashes, or at least e.g. the last character, the pre-existence test doesn't work, and validating doesn't change our "Device Name" anymore.
But I also noticed that the test is not reliable : e.g. swapping 2 letters in the end past the 52 first won't show the warning. I also noticed some months ago that weird thing happen between 52 and 56th chars. At least the dashes should be stripped out and entries should be case-insensitive while checking if not yet. In my memory I said to myself there was a difficulty here because valid ID may be either 52 or 56 chars in length. Please confirm.
Cornercase ;-) reproduce : Add new device-> enter our ID so that warning won't trigger before validating (eg, replace latest letter to lower-case -> Enter a "Device Name" that ALREADY exists in your list (I only did this with exact same case) -> Validate -> Our "Device Name" is changed accordingly.
Strangely, doing a second shoot (to revert back or even try with another existing Device Name) won't "work" until I changed back my Device Name from Action/Settings
changed the title [-]v0.13.0-rc1 Addind a device changes our name[/-][+]GUI check for own/already-existing device ID could be better[/+]on Jan 25, 2021
Sounds like the already-exists-check doesn't take all possible variations of the device ID into account. It should resolve it to canonical form before checking.
Sounds like the already-exists-check doesn't take all possible variations of the device ID into account. It should resolve it to canonical form before checking.
Yes Jakob. Furthermore, ST quits on restart: I got rid of that by cleaning the dup in config.xml
[start] 10:21:58 INFO: syncthing v1.13.0-rc.1 "Fermium Flea" (go1.15.6 windows-amd64) [email protected] 2021-01-11 14:15:21 UTC
[start] 10:21:58 INFO: Automatic upgrade is always enabled for candidate releases.
[334ZK] 10:21:58 INFO: My ID: 334YZDC-BBBBBBB-CCCCCCC-DDDDDDD-EEEEEEE-FFFFFFF-3K3FFAU
[334ZK] 10:21:59 INFO: Single thread SHA256 performance is 466 MB/s using minio/sha256-simd (402 MB/s using crypto/sha256).
[334YZ] 10:21:59 WARNING: Short device IDs are in conflict. Unlucky!
Regenerate the device ID of one of the following:
334YZDC-BBBBBBB-CCCCCCC-DDDDDDD-EEEEEEE-FFFFFFF-3K3FFQE in conflict with 334YZDC-BBBBBBB-CCCCCCC-DDDDDDD-EEEEEEE-FFFFFFF-3K3FFAU
[334ZK] 10:22:00 INFO: Exiting
Notice how the 2 strings differ on the last 2 chars
That's not a dup though, that's just that you added a device ID you made up that's almost identical to another device ID, and Syncthing can't handle if they don't differ somewhere in the first 64 bits.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
bugith commentedon Jan 17, 2021
Ooops : I added my own ID !!!!
It seems the check to see if device already exists doesn't check our own ID....
tomasz1986 commentedon Jan 20, 2021
If I understand correctly, you mean that you have added your own ID as a remote device. Is this correct? Can you describe exactly how you did it?
The GUI does not allow doing so normally. This is what one gets when trying to add their own ID.
bugith commentedon Jan 24, 2021
I can reproduce. While trying I noticed that typing the ID lower-case and no dashes, or at least e.g. the last character, the pre-existence test doesn't work, and validating doesn't change our "Device Name" anymore.
But I also noticed that the test is not reliable : e.g. swapping 2 letters in the end past the 52 first won't show the warning. I also noticed some months ago that weird thing happen between 52 and 56th chars. At least the dashes should be stripped out and entries should be case-insensitive while checking if not yet. In my memory I said to myself there was a difficulty here because valid ID may be either 52 or 56 chars in length. Please confirm.
Corner
case;-) reproduce : Add new device-> enter our ID so that warning won't trigger before validating (eg, replace latest letter to lower-case -> Enter a "Device Name" that ALREADY exists in your list (I only did this with exact same case) -> Validate -> Our "Device Name" is changed accordingly.Strangely, doing a second shoot (to revert back or even try with another existing Device Name) won't "work" until I changed back my Device Name from Action/Settings
[-]v0.13.0-rc1 Addind a device changes our name[/-][+]GUI check for own/already-existing device ID could be better[/+]calmh commentedon Jan 25, 2021
Sounds like the already-exists-check doesn't take all possible variations of the device ID into account. It should resolve it to canonical form before checking.
bugith commentedon Jan 25, 2021
Yes Jakob. Furthermore, ST quits on restart: I got rid of that by cleaning the dup in config.xml
Notice how the 2 strings differ on the last 2 chars
calmh commentedon Jan 25, 2021
That's not a dup though, that's just that you added a device ID you made up that's almost identical to another device ID, and Syncthing can't handle if they don't differ somewhere in the first 64 bits.
fix(gui): validate device ID in canonical form (fixes syncthing#7291)
fix(gui): validate device ID in canonical form (fixes syncthing#7291) (…
Merge branch 'main' into v2
Merge branch 'v2' into jb/slog