[sip-comm-dev] Jabber Messages Encoded Incorrectly?


#1

Good Afternoon,

I noticed a peculiar bug when using the Digsby IM Client and receiving a
message from a friend using SIP communicator. If I receive a message from a
SIP Communicator user that includes HTML elements, for example:

<div style="border: 1px solid #F00; padding: 10px; font-size: 14px; color:
#00D;">Ridiculous shit</div>

It originally displays as text with no problems. However, Digsby has a
feature where when you close out an IM window, the next time you open a
window for that same user Digsby will display the last couple of messages
that you and your friend exchanged. When this happens, the HTML elements are
actually rendered in the IM window, instead of displaying as clear text.
This only happens for messages received from a SIP Communicator user, and
not messages I send myself.

I contacted Digsby support first, originally thinking that it was an issue
with their client. One of the developers contacted me and said he couldn't
repeat it when both users were on Digsby, and he tried to take a look at SIP
Communicator but couldn't even get a few of the nightly build installers to
work.

Here's some system information:
I am running:
Digsby Build 27465,
Windows XP 64 bit

Friend is running:
SIP Communicator 1.0-alpha6-nightly.build.2798
Windows 7 Pro 64 bit

Steps to reproduce:
1. Have SIP communicator user IM Digsby user HTML elements, for example:
"<div style="border: 1px solid #F00; padding: 10px; font-size: 14px; color:
#00D;">Ridiculous shit</div>"

2. After Digsby user receives message, close out the Digsby IM window.

3. Re-open IM window on Digsby for the same SIP Communicator user.

4. The HTML elements have now been rendered instead of displaying as clear
text.

My contact at Digsby is: Steve Shapiro (steve@digsby.com)

Regards,
--- Scott


#2

Hey Scott,

На 12.07.10 19:07, Scott Hamper написа:

Good Afternoon,

I noticed a peculiar bug when using the Digsby IM Client and receiving a
message from a friend using SIP communicator. If I receive a message
from a SIP Communicator user that includes HTML elements, for example:

<div style="border: 1px solid #F00; padding: 10px; font-size: 14px;
color: #00D;">Ridiculous shit</div>

It originally displays as text with no problems. However, Digsby has a
feature where when you close out an IM window, the next time you open a
window for that same user Digsby will display the last couple of
messages that you and your friend exchanged. When this happens, the HTML
elements are actually rendered in the IM window, instead of displaying
as clear text. This only happens for messages received from a SIP
Communicator user, and not messages I send myself.

We explicitly escape HTML characters so that this won't happen and the
fact that the messages originally appear alright seems to indicate that
the escaping is working properly. We are not able to reproduce the issue
in sessions between SIP Communicator and other clients like Empathy,
Pidgin or Adium.

We've also just tried exchanging messages between Empathy and Digsby,
and Digsby's history was showing the same issue. It seems that there's
a problem with either they way Digsby stores messages or the way it
renders history.

Cheers,
Emil

···

I contacted Digsby support first, originally thinking that it was an
issue with their client. One of the developers contacted me and said he
couldn't repeat it when both users were on Digsby, and he tried to take
a look at SIP Communicator but couldn't even get a few of the nightly
build installers to work.

Here's some system information:
I am running:
Digsby Build 27465,
Windows XP 64 bit

Friend is running:
SIP Communicator 1.0-alpha6-nightly.build.2798
Windows 7 Pro 64 bit

Steps to reproduce:
1. Have SIP communicator user IM Digsby user HTML elements, for example:
"<div style="border: 1px solid #F00; padding: 10px; font-size: 14px;
color: #00D;">Ridiculous shit</div>"

2. After Digsby user receives message, close out the Digsby IM window.

3. Re-open IM window on Digsby for the same SIP Communicator user.

4. The HTML elements have now been rendered instead of displaying as
clear text.

My contact at Digsby is: Steve Shapiro (steve@digsby.com
<mailto:steve@digsby.com>)

Regards,
--- Scott

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net