Projects tigase _server server-core Issues #1454
Wrong field type for XEP-0157 entries (#1454)
Unknown opened 3 years ago

The fields defined in XEP-0157 are defined as list-multi fields, but a Tigase instance I came across uses text-multi as below:

<x xmlns="jabber:x:data" type="result">
  <field var="FORM_TYPE" type="hidden">
    <value>http://jabber.org/network/serverinfo</value>
  </field>
  <field var="abuse-addresses" type="text-multi">
    <value>mailto:support@tigase.net</value>
    <value>xmpp:tigase@muc.tigase.im</value>
    <value>https://tigase.net/technical-support</value>
  </field>
</x>

text-multi is a bit awkward to use here since it means that the <values> are really individual lines of a single text field, rather than a list of strings.

Looks like it uses a function here:

https://github.com/tigase/tigase-server/blob/e1cc9196bd89550a3546f475db9cd44874a84925/src/main/java/tigase/server/BasicComponent.java#L625

that hardcodes text-multi here:

https://github.com/tigase/tigase-server/blob/e1cc9196bd89550a3546f475db9cd44874a84925/src/main/java/tigase/server/DataForm.java#L116-L117

Unknown commented 3 years ago

Thank you for reporting.

(#server-1285)

Unknown commented 3 years ago

Fixed and will be part of 8.2 release.

issue 1 of 1
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1454
Please wait...
Page is in error, reload to recover