You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your improvement related to a problem? Please describe.
The UseSchemaForQueue API is used to override schema if a destination address does not specify it. The matching for the override is done against unquoted queue name parsed from the destination address. If a quoted queue name is passed to the UseSchemaForQueue the matching will silently fail and the override will not be used.
Example
In the default configuration if the destination queue is specified as Receiver, it will be converted to a canonical name "public"."Receiver" by the transport (public is the default schema).
When using override UseSchemaForQueue("Receiver", "my_schema") the destination will be "my_schema"."Receiver" but when using override UseSchemaForQueue("\"Receiver\"", "my_schema") (quoted name), the override will not be used and the destination will be the same as in the default scenario.
Describe the suggested solution
Automatically remove quotes if the queue passed to UseSchemaForQueue is quoted.
Describe alternatives you've considered
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the suggested improvement
Is your improvement related to a problem? Please describe.
The
UseSchemaForQueue
API is used to override schema if a destination address does not specify it. The matching for the override is done against unquoted queue name parsed from the destination address. If a quoted queue name is passed to theUseSchemaForQueue
the matching will silently fail and the override will not be used.Example
In the default configuration if the destination queue is specified as
Receiver
, it will be converted to a canonical name"public"."Receiver"
by the transport (public
is the default schema).When using override
UseSchemaForQueue("Receiver", "my_schema")
the destination will be"my_schema"."Receiver"
but when using overrideUseSchemaForQueue("\"Receiver\"", "my_schema")
(quoted name), the override will not be used and the destination will be the same as in the default scenario.Describe the suggested solution
Automatically remove quotes if the queue passed to
UseSchemaForQueue
is quoted.Describe alternatives you've considered
Additional Context
No response
The text was updated successfully, but these errors were encountered: