Subject: MyJID off when username contains @ sign
Our user names contain @ signs because they are also email addresses. In my code I make use of XmppClientConnection.MyJID and I think when the user name contains an @ some double encoding is going on.
In the LogOn method I do this:
mClientCon.Username = mConnectionInfo.Uri;
Which does an escape on the @ sign ( string tmpUser = Jid.EscapeNode(value)
.
When the connection is opened this code:
Console.WriteLine("LogOn: myfulljid={0} bare={1} user={2} server={3} resource={4}",
mClientCon.MyJID.ToString(), mClientCon.MyJID.Bare.ToString(),
mClientCon.MyJID.User, mClientCon.MyJID.Server, mClientCon.MyJID.Resource);
prints:
LogOn: myfulljid=pascal\5c40XX.com@hostname/XX bare=pascal\5c40XX.com@hostname user=pascal\5c40XX.com server=hostname resource=XX
The MyJID code also does encoding so it's double encoding which causes later errors.
Any thoughts on how to fix this?
thanks
In the LogOn method I do this:
mClientCon.Username = mConnectionInfo.Uri;
Which does an escape on the @ sign ( string tmpUser = Jid.EscapeNode(value)

When the connection is opened this code:
Console.WriteLine("LogOn: myfulljid={0} bare={1} user={2} server={3} resource={4}",
mClientCon.MyJID.ToString(), mClientCon.MyJID.Bare.ToString(),
mClientCon.MyJID.User, mClientCon.MyJID.Server, mClientCon.MyJID.Resource);
prints:
LogOn: myfulljid=pascal\5c40XX.com@hostname/XX bare=pascal\5c40XX.com@hostname user=pascal\5c40XX.com server=hostname resource=XX
The MyJID code also does encoding so it's double encoding which causes later errors.
Any thoughts on how to fix this?
thanks