Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SzymonPobiega opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@SzymonPobiega
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant