Infos:
- Used Zammad version: 5.1
- Used Zammad installation type: package
- Operating system: Ubuntu 18.04
- Browser + version: Firefox 98/Chrome 100
Expected behavior:
- “Migrate Now!” button in the banner above an existing Email channel recreates the channel in the Microsoft 365 section.
Actual behavior:
(no change to either the old or new channel)
Steps to reproduce the behavior:
- Add an Exchange Online/Microsoft 365 mailbox to Zammad in the Email channel section with IMAP/SMTP
- Press “Migrate Now!” button in the banner that appears over the email entry
- Press the “Submit” button on the popup that appears
Tailing the production.log shows this around the same time gets something very similar:
I, [2022-04-05T10:59:54.473180 #3287-31560360] INFO -- : Processing by ChannelsMicrosoft365Controller#inbound as JSON
I, [2022-04-05T10:59:54.473314 #3287-31560360] INFO -- : Parameters: {"options"=>{"folder"=>"Inbox", "keep_on_server"=>true}, "active"=>true, "id"=>"8"}
E, [2022-04-05T10:59:54.490816 #3287-31560360] ERROR -- : undefined method `options' for nil:NilClass (NoMethodError)
app/controllers/channels_microsoft365_controller.rb:73:in `block in inbound'
app/controllers/channels_microsoft365_controller.rb:72:in `each'
app/controllers/channels_microsoft365_controller.rb:72:in `inbound'
app/controllers/application_controller/has_download.rb:21:in `block (4 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:20:in `block (3 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:19:in `block (2 levels) in <module:HasDownload>'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
I, [2022-04-05T10:59:54.493606 #3287-31560360] INFO -- : Completed 500 Internal Server Error in 20ms (Views: 0.1ms | ActiveRecord: 7.1ms | Allocations: 11648)