fix: Bug - CollaborationService errors on workflowOpened message#26439
Draft
n8n-assistant[bot] wants to merge 1 commit intomasterfrom
Draft
fix: Bug - CollaborationService errors on workflowOpened message#26439n8n-assistant[bot] wants to merge 1 commit intomasterfrom
n8n-assistant[bot] wants to merge 1 commit intomasterfrom
Conversation
… 2.10 (CAT-2502) Co-authored-by: Claude <noreply@anthropic.com>
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
This comment was marked as spam.
This comment was marked as spam.
|
Found 2 test failures on Blacksmith runners: Failures
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes CAT-2502: Bug - CollaborationService errors on workflowOpened message from 2.10
This PR fixes a cache format incompatibility issue that causes CollaborationService to crash when handling
workflowOpenedpush messages after upgrading from 2.9.x to 2.10.x.Root Cause
In 2.9.x, the collaboration cache used a different format than 2.10.x. When old cache entries exist without the expected format, the parsing logic would treat timestamps as user IDs, causing UUID validation errors in database queries.
The error manifested as:
Error handling CollaborationService push messageinvalid input syntax for type uuid: "2026-02-26T21:23:36.318Z"Solution
Added validation in the
cacheHashToCollaborators()method to:|) before splittinguserIdandlastSeenparts exist after splittingThis allows the service to skip legacy format entries and continue processing valid ones.
Regression Test
Includes comprehensive regression tests in
CAT-2502-cache-format-bug.test.tsthat verify:Test Plan
Linear
https://linear.app/n8n/issue/CAT-2502
🤖 Generated by Flaky (automated bug reproduction + fix)