-
Notifications
You must be signed in to change notification settings - Fork 37
Description
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 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