unregistering a previously unregistered channel returns status:200
Closed this issue · 4 comments
- say hello and register a channel
- unregister the channel
- unregister the same channel
actual: status 200
expected: status 401. If i unregister a non existent channel, i get a 401 prior to registering.
Let me know if you want me to give you exact json packets to send via wsdump
The pushgo server does not keep channel states for individual UAIDs. This was done for scaling reasons. (Scaling is possible only if the amount of data associated with a given node is reduced to absolute critical.) Since no channel states are maintained, the act of "unregistering" is effectively a Non Operational action. It removes or prevents nothing. For that matter, the act of "registering" a channel is also a Non Operation, aside from creating an endpoint that can be used to send data to the UAID associated with the given channel.
Since this is a No-op, and second unregistration returns the same result as the primary one, marking this as
WONTFIX
I'm fine with wontfix, however, just to clarify the behavior:
unregister - non existent channelID - status 401
register - to create channelID - status 200
unregister - existing channelID - status 200
unregister - a previously unregistered channelID - status 200
Hmm, inconsistent behavior is a bug. I'll reopen this and address it.
Thanks!