Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0 - Initial Release
-
Fix Version/s: 1.1 - Concurrency
-
Component/s: None
-
Labels:None
-
Acceptance Test - Add?:No
Description
The org.xmpp.forms.DataForm#addField(String variable, String label, FormField.Type type) doesn't work. The method adds a FormField to the DataForm but without setting up the variable and label. This is caused by two wrong checks which would be corrected by the attached patch. This bug prevents users of the actual Openfire trunk version to configure Multi-User Chat rooms.
I'm not sure if these checks are necessary since they will be checked twice, in org.xmpp.forms.DataForm#addField(String, String, FormField.Type) and in org.xmpp.forms.FormField. But nevertheless I will write a unit test for the DataForm which prevents bugs like these.