Skip to content
Discussion options

You must be logged in to vote
  • Topic permissions: indeed, nothing enforces that the exchange exists before setting a topic permission on it. I checked the Mnesia-based code and that’s the same. So we always allowed to set a topic permission on a non-existing exchange.

  • Binding creation: this is a known issue, we should put a FIXME there until we fix it.

  • Exchange serial bump: like topic permissions, the code with Mnesia didn’t check the existence of the exchange first. I wonder if we should change the put to ensure the exchange exists. Unfortunately, the next_serial/1 function always returns a serial: it has no room for error handling.

With this in mind, I think your proposed patch is fine. I will review it in #1…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@michaelklishin
Comment options

Comment options

You must be logged in to vote
1 reply
@dumbbell
Comment options

Answer selected by michaelklishin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants