From 245a3b3851accfc09fa7c0a830c577ec5f30bdc3 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 21 Feb 2018 16:34:03 +0100 Subject: [PATCH] Use the correct ad-hoc action in ServiceAdministrationManager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes SMACK-804. Thanks to Holger Weiß for his help with the issue. Smack would always use the 'next' action only 'execute' (which is always allowed) and 'complete' where candidates. Example XMPP trace: SENT: RECV: Add User http://jabber.org/protocol/admin SENT: http://jabber.org/protocol/admin smack-inttest-one-phx8g@salem.geekplace.eu L2Cz2gKeVsBAEBRJ L2Cz2gKeVsBAEBRJ RECV: http://jabber.org/protocol/admin smack-inttest-one-phx8g@salem.geekplace.eu L2Cz2gKeVsBAEBRJ L2Cz2gKeVsBAEBRJ Unexpected action --- .../smackx/admin/ServiceAdministrationManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/admin/ServiceAdministrationManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/admin/ServiceAdministrationManager.java index 369ea7ce9..b88b9fdad 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/admin/ServiceAdministrationManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/admin/ServiceAdministrationManager.java @@ -85,7 +85,7 @@ public class ServiceAdministrationManager extends Manager { FormField passwordVerifyField = answerForm.getField("password-verify"); passwordVerifyField.addValue(password); - command.next(answerForm); + command.execute(answerForm); assert (command.isCompleted()); } @@ -113,7 +113,7 @@ public class ServiceAdministrationManager extends Manager { FormField accountJids = answerForm.getField("accountjids"); accountJids.addValues(JidUtil.toStringList(jidsToDelete)); - command.next(answerForm); + command.execute(answerForm); assert (command.isCompleted()); } }