powered by Jive Software

Smack-legacy issue with workgroup stanza creation


#1

I am trying to get fastpath working with Spark 2.9.0 which is using Smack 4.19. there are two issues I have found so far in org.jivesoftware.smackx.workgroup.packet both RoomTransfer and RoomInvitation add an extra " to the namespace attribute of the element.

RoomTransfer line 118
buf.append("\" type=\"").append(type.name()).append("\">");
generates
<transfer xmlns='http://jabber.org/protocol/workgroup'" type="workgroup">
and the same line in RoomInvitation generates
<invite xmlns='http://jabber.org/protocol/workgroup'" type="workgroup">
changing the lines to
buf.append(" type=\"").append(type.name()).append("\">");
fixes the issue.
I realise this is legacy code but is it something that is likely to get fixed?
Regards
Dave


#2

Sure, patches welcome :slight_smile:


#3

Happy to but no permission upload files can paste the content of the patch file here if it is of any use


#4

Smack has its Github page, you can submit patch as pull request there. Or paste it in some pastebin and i might try to do PR on your behalf. But it would be better for you to do this, as I’m not a developer.


#5

ok all done Fixes for extra quote in stanzas #192


#6

Great! Thank you for your contribution!