instedd / mbuilder

Scalable SMS application builder
http://mbuilder.instedd.org/
6 stars 1 forks source link

Updating a channel can result in inconsistent database state #240

Closed ggiraldez closed 9 years ago

ggiraldez commented 9 years ago

When updating a channel, Pigeon will delete the Nuntium channel and recreate it. If the creation fails for some reason (eg. a invalid ticket code is entered in the local gateway wizard), mBuilder database is left at an inconsistent state since the mBuilder channel still exists, but there's no corresponding Nuntium (Pigeon) channel. This leads to an error when attempting to access the channel for update/deletion.

ggiraldez commented 9 years ago

Editing a local gateway channel in particular cannot be done unless the gateway is reconfigured (ticket code is re-entered).