You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rule match value to be empty or nil (not returned in the response)
Actual Behavior
Prints an invalid match value string which is produced by Go's fmt.Sprintf function.
"subscriptions": [
{
"pubsubname": "orderpubsub",
"topic": "orders",
"rules": [
{
"match": "%!s(<nil>)", // <--- The value is a product of `fmt.Sprintf("%s", nil)`
go to pub sub quickstart cd pub_sub/go/sdk/order-processor
run app dapr run --app-port 6001 --app-id order-processor --app-protocol http --dapr-http-port 3501 --components-path ../../../components -- go run app.go
Observe the log app is subscribed to the following topics: [orders] through pubsub=orderpubsub
Run curl http://localhost:3501/v1.0/metadata | jq
The response will show the programmatic subscription orderpubsub with rule's match field as "%!s(<nil>)"
➜ curl http://localhost:3501/v1.0/metadata |jq
{
"id": "order-processor",
"runtimeVersion": "1.12.0",
"components": [
...
],
...
"subscriptions": [
{
"pubsubname": "orderpubsub",
"topic": "orders",
"rules": [
{
"match": "%!s(<nil>)", // <--- The value is a product of `fmt.Sprintf("%s", nil)`"path": "/orders"
}
],
"deadLetterTopic": ""
}
],
...
}
Release Note
RELEASE NOTE: FIX Metadata API programmatic subscription rule's match field, marshal invalid nil value format
The text was updated successfully, but these errors were encountered:
In what area(s)?
/area runtime
What version of Dapr?
Expected Behavior
Rule match value to be empty or nil (not returned in the response)
Actual Behavior
Prints an invalid match value string which is produced by Go's
fmt.Sprintf
function.Steps to Reproduce the Problem
git clone https://github.com/dapr/quickstarts.git
cd pub_sub/go/sdk/order-processor
dapr run --app-port 6001 --app-id order-processor --app-protocol http --dapr-http-port 3501 --components-path ../../../components -- go run app.go
app is subscribed to the following topics: [orders] through pubsub=orderpubsub
curl http://localhost:3501/v1.0/metadata | jq
orderpubsub
with rule'smatch
field as"%!s(<nil>)"
Release Note
RELEASE NOTE: FIX Metadata API programmatic subscription rule's match field, marshal invalid nil value format
The text was updated successfully, but these errors were encountered: