Skip to content

Conversation

@michaelklishin
Copy link
Collaborator

@michaelklishin michaelklishin commented Jun 22, 2024

The queue type argument won't always be a binary,
for example, when a virtual host is created.

As such, the validation code should accept at
least atoms in addition to binaries.

While at it, improve logging and error reporting
when DQT validation fails, and while at it,
make the definition import tests focussed on
virtual host a bit more robust.

Fixes a subtle regression introduced in #11457.

The queue type argument won't always be a binary,
for example, when a virtual host is created.

As such, the validation code should accept at
least atoms in addition to binaries.

While at it, improve logging and error reporting
when DQT validation fails, and while at it,
make the definition import tests focussed on
virtual host a bit more robust.
@michaelklishin michaelklishin merged commit 7335aaa into main Jun 22, 2024
@michaelklishin michaelklishin deleted the mk-fix-virtual-host-creation-post-11457 branch June 22, 2024 09:15
michaelklishin added a commit that referenced this pull request Jun 22, 2024
michaelklishin added a commit that referenced this pull request Jun 22, 2024
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528
mergify bot pushed a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528

(cherry picked from commit f3b7a34)

# Conflicts:
#	deps/rabbit/src/rabbit_queue_type.erl
#	deps/rabbit/src/rabbit_vhost.erl
michaelklishin added a commit that referenced this pull request Jun 24, 2024
at validation time.

DQT = default queue type.

When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to
be "undefined".

References #11457 ##11528

(cherry picked from commit f3b7a34)

# Conflicts:
#	deps/rabbit/src/rabbit_queue_type.erl
#	deps/rabbit/src/rabbit_vhost.erl
michaelklishin added a commit that referenced this pull request Aug 24, 2024
when virtual host does not have any metadata.

References #11541 #11457 #11528
michaelklishin added a commit that referenced this pull request Aug 24, 2024
mergify bot pushed a commit that referenced this pull request Aug 24, 2024
when virtual host does not have any metadata.

References #11541 #11457 #11528

(cherry picked from commit 29051a8)
mergify bot pushed a commit that referenced this pull request Aug 24, 2024
References #11541 #11457 #11528

(cherry picked from commit c41c27d)
mergify bot pushed a commit that referenced this pull request Aug 24, 2024
when virtual host does not have any metadata.

References #11541 #11457 #11528

(cherry picked from commit 29051a8)
(cherry picked from commit f90a4e1)
mergify bot pushed a commit that referenced this pull request Aug 24, 2024
References #11541 #11457 #11528

(cherry picked from commit c41c27d)
(cherry picked from commit bd6097f)

# Conflicts:
#	deps/rabbitmq_amqp_client/test/management_SUITE.erl
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.

2 participants