-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[FIXED] Consumer deliver subject incorrect when imported and crossing a route. #3017
Conversation
…sage crossed a route we dropped the delivered subject. Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
5336c0d
to
cd7f16f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Question with @ being a special (internal) character, do we make sure client's can't publish with it? Would pub foo@bar
be received as bar
?
It's not on the subject, its tacked onto the reply subject and we pull that out and set local state and switch on last mile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last minute question, leaf and gateway do not need to be considered right?
@@ -4161,6 +4163,11 @@ func (c *client) processMsgResults(acc *Account, r *SublistResult, msg, deliver, | |||
} else { | |||
dsubj = append(_dsubj[:0], sub.im.to...) | |||
} | |||
|
|||
// Make sure deliver is set if inbound from a route. | |||
if remapped && c.kind == ROUTER { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about Leaf and Gateway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible, just trying to get the fix to pass which it does, and not break any existing tests.
Signed-off-by: Derek Collison <derek@nats.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… gateway followup to #3017 Signed-off-by: Matthias Hanel <mh@synadia.com>
Signed-off-by: Derek Collison derek@nats.io
/cc @nats-io/core