[ejabberd] xml-not-well-formed

Daniel Dormont dan at greywallsoftware.com
Fri Nov 16 20:59:32 MSK 2012


There are bugs in Smack where it doesn't XML-encode text content in
certain cases. At least, this is true as of Smack 3.2.0, I haven't
checked more recent versions.

dan

On Fri, Nov 16, 2012 at 11:51 AM, Pablo Polvorin
<pablo.polvorin at process-one.net> wrote:
> Most likely it is a problem with the client library you are using,
> that is not encoding the password right on some cases.
> Just checked and from PSI for example there is no problem with using
> these characters in password,
> something like  "pass&>tt=<'"  works.
>
> On 16 November 2012 13:38, Anurag Srivastava <anurag.cs at gmail.com> wrote:
>> Thanks Peter for your response. I found the issue. ejabberd returning this
>> error because i am using special characters  in password (& ^ etc).
>>
>> Regards,
>> Anurag Srivastava
>>
>>
>> On Fri, Nov 16, 2012 at 4:08 PM, Peter Saint-Andre <stpeter at stpeter.im>
>> wrote:
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On 11/16/12 9:05 AM, Anurag Srivastava wrote:
>>> > Hello There,
>>> >
>>> > I am getting this error message when trying to create multiple
>>> > user using SMACK API.
>>> >
>>> > D(<0.4946.0>:ejabberd_c2s:1553) : Send XML on stream =
>>> > <<"<stream:error><xml-not-well-formed
>>> > xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>">>
>>> >
>>> > Is there any way to disable this error message?
>>>
>>> Send well-formed XML? ;-)
>>>
>>> What XML are you sending?
>>>
>>> Peter
>>>
>>> - --
>>> Peter Saint-Andre
>>> https://stpeter.im/
>>>
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
>>> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>>>
>>> iEYEARECAAYFAlCmZPoACgkQNL8k5A2w/vwJggCfWsd44xBkoV7FtAW2ECZAaNF0
>>> dDgAoJp4YY1uaU2rCTL/+MEacBsUzSOs
>>> =IUUg
>>> -----END PGP SIGNATURE-----
>>> _______________________________________________
>>> ejabberd mailing list
>>> ejabberd at jabber.ru
>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>>
>>
>>
>> --
>> Anurag Srivastava
>>
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>
>
>
> --
> Pablo Polvorin
> ProcessOne
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd


More information about the ejabberd mailing list