Skip to content

Subscriptions to individual EndDevices can't be made via Aggregator EndDevice #179

@joshvote

Description

@joshvote

Trying to subscribe to a particular EndDevice's resources (eg /edev/123/derp/doe/derc) by POSTing to the aggregator EndDevice /edev/0/sub will return a HTTP 400.

The error is that the SubscriptionManager sees a mismatch between scope (edev 0) and subscribed resource (edev 123). In this particular example - IF the edev belongs to the aggregator scope, it should probably be allowed. If it's an edev outside the current aggregator's scope - the existing failure should still be returned as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions