Skip to content

Automatically un-quote the queue name passed to UseSchemaForQueue API #1433

@SzymonPobiega

Description

@SzymonPobiega

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions