Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Correlation filter rule with user properties returns error "xml: unsupported type: map[string]interface {}" #204

Closed
wzamlynny opened this issue Jan 21, 2021 · 1 comment

Comments

@wzamlynny
Copy link
Member

Creating a filter rule using a correlation filter on a subscription with custom user properties returns error: xml: unsupported type: map[string]interface {} on PutRule.

The error occurs at subscription_manager.go ln 398 on xml.Marshal. The following snippet recreates the error seen:

          customProperties := map[string]interface{}{
                         "workertype": "test",
          }

          filter := &servicebus.CorrelationFilter{
                         Properties: customProperties,
          }

          reqBytes, err := xml.Marshal(filter.ToFilterDescription())
@richardpark-msft
Copy link
Member

Hi @wzamlynny,

We've moved development of this package into the azure-sdk-for-go repo and I've created a bug to track the issue there: Azure/azure-sdk-for-go#16045.

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

No branches or pull requests

2 participants