Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHANGED] Reject channels with different case (Foo vs foo) #1274

Merged
merged 1 commit into from
Oct 11, 2022
Merged

Conversation

kozlovic
Copy link
Member

Due to the way channels are stored to persistent storage, the first spelling of a channel caused that channel to be persisted under that name.
If an application later publishes/subscribes to the same channel but with a different case (say first "Foo" then "foo"), the server would treat it as a new channel but would still store data in the first "Foo" channel, causing message sequences to be reset and inability to consume after a server restart.

From now on, the server will reject published messages or new subscriptions if it detects that a similar channel already exists with a different "case".

Resolves #1265

Signed-off-by: Ivan Kozlovic ivan@synadia.com

Due to the way channels are stored to persistent storage, the
first spelling of a channel caused that channel to be persisted
under that name.
If an application later publishes/subscribes to the same channel
but with a different case (say first "Foo" then "foo"), the
server would treat it as a new channel but would still store
data in the first "Foo" channel, causing message sequences to
be reset and inability to consume after a server restart.

From now on, the server will reject published messages or new
subscriptions if it detects that a similar channel already exists
with a different "case".

Resolves #1265

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 91.44% when pulling 497a6a0 on fix_1265 into 432ad7c on main.

@kozlovic kozlovic merged commit 069cc96 into main Oct 11, 2022
@kozlovic kozlovic deleted the fix_1265 branch October 11, 2022 01:44
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.

sub/pub on similar-named channels (on Windows)
3 participants