Skip to content

Licensing component fails to parse connection string for SQL transport when custom 'queue schema' is specified #4397

@itarob

Description

@itarob

Describe the bug

Description

if SQL-transport is used and a custom queue schema is configured in the connection string (as described here https://docs.particular.net/servicecontrol/transports#sql), the licensing component fails to use this string with the error:
2024-08-15 01:18:21.9548|17|Error|ServiceControl.Transports.SqlServer.SqlServerQuery|Failed to initialise SqlServerQuery|System.Exception: SQL Connection String could not be parsed.
---> System.ArgumentException: Keyword not supported: 'queue schema'.

Expected behavior

the main connection string can also be used by the licensing component

Actual behavior

fails to work with the error above

Versions

ServiceControl 5.6.1
ServicePulse 1.41.0

Steps to reproduce

  • use SQL-transport
  • use custom queue-schema in connection string

Relevant log output

No response

Additional Information

Workarounds

Explicitly specify the config key 'LicensingComponent/SqlServer/ConnectionString' with a connection string without the 'queue schema' parameter

Additional information

See #4397 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions