Changing affiliation to none with two resources connected gives a 500 error

Hello gentlemen,

I’ve detected that if you tries to change your account affiliation to none having two resources connected OpenFire gives a 500 error.

// With only a device connected per account.

<iq to='63607f5f-717e-43a4-95cd-bc2e7faf8da8@conference.xmpp-stg.displaynote.com' from='mike__mike.com@xmpp-stg.displaynote.com/2e783d581da7ebc3a6f2d915a473b0902bebfa2f' id='y0nkD-109' type='set'>
  <query xmlns='http://jabber.org/protocol/muc#admin'>
  <item affiliation='none' jid='mike__mike.com@xmpp-stg.displaynote.com'></item>
  </query>
</iq> <iq type="result" id="y0nkD-109" from="63607f5f-717e-43a4-95cd-bc2e7faf8da8@conference.xmpp-stg.displaynote.com" to="mike__mike.com@xmpp-stg.displaynote.com/2e783d581da7ebc3a6f2d915a473b0902bebfa2f"/>

// With two devices connected with same account.

<iq to='63607f5f-717e-43a4-95cd-bc2e7faf8da8@conference.xmpp-stg.displaynote.com' from='mike__mike.com@xmpp-stg.displaynote.com/16a6399aa7ac3f7016d0f74ca36dfe1d06c0a2a7' id='54HzY-150' type='set'>
  <query xmlns='http://jabber.org/protocol/muc#admin'>
  <item affiliation='none' jid='mike__mike.com@xmpp-stg.displaynote.com'></item>
  </query>
</iq> <iq type="error" id="54HzY-150" from="63607f5f-717e-43a4-95cd-bc2e7faf8da8@conference.xmpp-stg.displaynote.com" to="mike__mike.com@xmpp-stg.displaynote.com/16a6399aa7ac3f7016d0f74ca36dfe1d06c0a2a7">
  <query xmlns="http://jabber.org/protocol/muc#admin">
  <item affiliation="none" jid="mike__mike.com@xmpp-stg.displaynote.com"/>
  </query>
  <error code="500" type="wait"><internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error>
</iq>

OpenFire version: 3.10.2

Someone can bring few light here ?

Thanks a lot, Regards.