Skip to content

Add Device.validateLocalId for migration#2134

Open
ferdnyc wants to merge 1 commit into
GSConnect:mainfrom
ferdnyc:fix-migration
Open

Add Device.validateLocalId for migration#2134
ferdnyc wants to merge 1 commit into
GSConnect:mainfrom
ferdnyc:fix-migration

Conversation

@ferdnyc

@ferdnyc ferdnyc commented Feb 11, 2026

Copy link
Copy Markdown
Member

The Device.validateId() function was made more liberal just prior to the release of v61 (or was it v66?), breaking its use in _migrateConfiguration() to trigger resetting of invalid device IDs. (It accepts hyphenated UUIDs, which we no longer want to consider valid local device IDs.)

KDE Connect 1.35 has stopped accepting hyphenated IDs, so we really need to force migration of those. To facilitate that, add a new Device.validateLocalId() that accepts only UUID strings without separators, or with underscore separators (no hyphens), and use that in _migrateConfiguration().

Fixes #2133

The `Device.validateId()` function was made more liberal just prior
to the release of v61, breaking its use in `_migrateConfiguration()`
to trigger resetting of invalid device IDs. (It accepts hyphenated
UUIDs, which we no longer want to consider valid local device IDs.)

KDE Connect 1.35 has stopped accepting hyphenated IDs, so we really
need to force migration of those. To facilitate that, add a new
`Device.validateLocalId()` that accepts only UUID strings without
separators, or with underscore separators (no hyphens), and use that
in `_migrateConfiguration()`.

Fixes GSConnect#2133

@andyholmes andyholmes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, sorry for the long delay.

@daniellandau daniellandau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The IDs with dashes are explicitly allowed by the protocol and the recent breakage reports seem to have been about IP address restrictions so I don't think doing this makes any sense.

@andyholmes

Copy link
Copy Markdown
Collaborator

I might have misunderstood, per my approval, but I think this is intended to only apply to device IDs generated by GSConnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GSConnect systems with hyphenated device IDs are broken after upgrading to KDE Connect 1.35

3 participants