getExtendedInfo creates malformed XML

Description

If a client requests extended room info according to XEP-128 (http://xmpp.org/extensions/xep-0128.html) Openfire's response contains malformed XML:

<field label="Number of occupants" var="muc#roominfo_occupants" >
<value>test</value>
<value>0</value>
</field>
<field/>

The bug can easily be fixed by commenting the whole line 1293:

/final FormField fieldOcc =/ dataForm.addField();
fieldSubj.setVariable("muc#roominfo_occupants");
fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.occupants"));
fieldSubj.addValue(Integer.toString(room.getOccupantsCount()));

Environment

None

Activity

Show:

Daryl Herzmann February 1, 2011 at 7:28 PM

r121019

Fixed

Details

Assignee

Reporter

Original estimate

Time tracking

No time logged1m remaining

Components

Fix versions

Affects versions

Priority

Created January 31, 2011 at 10:03 PM
Updated October 28, 2020 at 1:26 PM
Resolved February 1, 2011 at 7:28 PM

Flag notifications