Azure-Samples / azure-event-grid-viewer

Live view of events from Azure Event Grid with ASP.NET Core and SignalR
MIT License
142 stars 205 forks source link

Subject filter doesn't work with cloud event schema subscription #1

Closed jeanpaulsmit closed 5 years ago

jeanpaulsmit commented 5 years ago

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

=> This issue was created on request of @AzureSupport

1) Create new event grid topic instance, select Cloud Event schema 2) Create Event subscription, select Cloud Event schema and specify Storage Queue as Endpoint 3) Enable Subject filtering, set 'Subject begins with' to 'myapp' without the single quotes 4) Post event to Event Grid endpoint with this message: { "cloudEventsVersion": "0.1", "eventTypeVersion": "", "eventId": "12345", "source": "#/myapp/vehicles/motorcycles", "eventType": "queuea", "subject": "myapp/vehicles/hoedan", "eventTime": "2018-09-08T13:05:47.6120424Z", "data": { "make": "Honda", "model": "Monster" } } 5) Check Storage Queue, no event delivered.

Any log messages given by the failure

none, it's hard to find out why an event isn't delivered at a subscription

Expected/desired behavior

event being delivered to Storage queue when filter criteria are met

OS and Version?

n/a

Versions

n/a

Mention any other details that might be useful

Interestingly enough this exact set of steps does work correctly for 'Event Grid Schema'.


Thanks! We'll be in touch soon.

jeanpaulsmit commented 5 years ago

Wrong repo :-(