Repository navigation
Closed
Labels
frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionuiIssues related to the graphical user interface
Milestone
Description
Does your log mention database corruption?
No
Include required information
Please be sure to include at least:
- which version of Syncthing and what operating system you are using
- 1.27.1, but it's even in
main
- 1.27.1, but it's even in
- what happened
- IDs are of different length from API and in client in specific sections
- what you expected to happen instead
- same-length IDs
syncthing/lib/protocol/deviceid.go
Line 18 in 86a08eb
| ShortIDStringLength = 7 |
/rest/system/connections I get first 7 characters as if split on -| return deviceID.substr(0, 6); |
| return deviceID.substr(0, 6); |
| return id.substr(0, 7) === shortID; |
syncthing/gui/default/index.html
Line 913 in 86a08eb
| <td class="text-right">{{ deviceName(devices[deviceCfg.introducedBy]) || deviceCfg.introducedBy.substring(0, 5) }}</td> |
5
Shouldn't it be the same everywhere? Would you welcome a patch or is this something you are aware of and it's kept because of some backward compatibility reason?
Metadata
Metadata
Assignees
Labels
frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionuiIssues related to the graphical user interface
Activity
[-]Mismatch in device ID length between server<->client and within client[/-][+]Different lengths used for short device IDs in UI[/+]imsodin commentedon Jan 1, 2024
That very much looks unintentional indeed. And at first glance it's all "presentation" strings, so no other logic should depend on it. As in yes, a patch would be welcome.
gui: Keep short deviceID length consistent + xrefs (fixes #9313) (#9314)
Merge branch 'main' into tokensdb
Merge branch 'main' into cli_completion
Merge branch 'main' into integrationtests