Projects tigase _server server-core Issues #830
a problem about xep-0128 (#830)
houk kun opened 8 years ago

Hi, I have a problem with Tigase 7.1.

When I query for room information, the server returns the result like:

...

    <field type="FORM_TYPE" var="hidden">

        <value>http://jabber.org/protocol/muc#roominfo&lt;/value>

    </field>

...

,it is different from xep-0128 which describes the result like :

...

  <field var='FORM_TYPE' type='hidden'>

    <value>http://jabber.org/protocol/muc#roominfo&lt;/value>

  </field>

...

, and this difference results in a exception thrown by the client(smack 4.1.3).

Exception information:

java.lang.IllegalArgumentException: No enum constant org.jivesoftware.smackx.xda

ta.FormField.Type.FORM_TYPE

    at java.lang.Enum.valueOf(Enum.java:236)

    at org.jivesoftware.smackx.xdata.FormField$Type.valueOf(FormField.java:4
  1.  at org.jivesoftware.smackx.xdata.FormField$Type.fromString(FormField.jav
    

a:131)

    at org.jivesoftware.smackx.xdata.provider.DataFormProvider.parseField(Da

taFormProvider.java:98)

    at org.jivesoftware.smackx.xdata.provider.DataFormProvider.parse(DataFor

mProvider.java:63)

    at org.jivesoftware.smackx.xdata.provider.DataFormProvider.parse(DataFor

mProvider.java:42)

    at org.jivesoftware.smack.provider.Provider.parse(Provider.java:35)

    at org.jivesoftware.smack.util.PacketParserUtils.parseExtensionElement(P

acketParserUtils.java:928)

    at org.jivesoftware.smack.util.PacketParserUtils.addExtensionElement(Pac

ketParserUtils.java:1059)

    at org.jivesoftware.smack.util.PacketParserUtils.addExtensionElement(Pac

ketParserUtils.java:1054)

    at org.jivesoftware.smackx.disco.provider.DiscoverInfoProvider.parse(Dis

coverInfoProvider.java:64)

    at org.jivesoftware.smackx.disco.provider.DiscoverInfoProvider.parse(Dis

coverInfoProvider.java:34)

    at org.jivesoftware.smack.provider.Provider.parse(Provider.java:35)

    at org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUti

ls.java:637)

    at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParse

rUtils.java:153)

    at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(A

bstractXMPPConnection.java:1010)

    at org.jivesoftware.smack.tcp.SIMPTCPConnection.access$700(SIMPTCPConnec

tion.java:140)

    at org.jivesoftware.smack.tcp.SIMPTCPConnection$PacketReader.parsePacket

s(SIMPTCPConnection.java:1150)

    at org.jivesoftware.smack.tcp.SIMPTCPConnection$PacketReader.access$300(

SIMPTCPConnection.java:1101)

    at org.jivesoftware.smack.tcp.SIMPTCPConnection$PacketReader$1.run(SIMPT

CPConnection.java:1118)

    at java.lang.Thread.run(Thread.java:745)
wojciech.kapcia@tigase.net batch edited 7 months ago
Name Previous Value Current Value
Iterations
empty
Candidate for next minor release
issue 1 of 1
Type
Bug
Priority
Blocker
Assignee
RedmineID
5547
Version
Candidate for next minor release
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/server-core#830
Please wait...
Page is in error, reload to recover