| Summary: | [msn] Msn retrieve Buddy List error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Cui Zihui <cuizihui> | ||||
| Component: | ecf.protocols | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccalli, slewis | ||||
| Version: | 1.0.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Cui Zihui
Are you consistently getting this? From the user-contributed specification, there shouldn't be a semi-colon between the F and C parameters in the command you provided. See http://msnpiki.msnfanatic.com/index.php/Command:LST Is this not a bug? Cuizhui please let us know about a response to question in comment #1. In the mean time, I'm moving to version 1.0.1. cuizihui can we get your input on with respect to comment #1? (In reply to comment #3) > cuizihui can we get your input on with respect to comment #1? This problem still exists. If change org.eclipse.ecf.protocol.msn.NotificationSession line 128: BufferedReader reader = new BufferedReader(new InputStreamReader(getInputStream())); to BufferedReader reader = new BufferedReader(new InputStreamReader(getInputStream(),"UTF-8")); then not problem. (In reply to comment #4) > This problem still exists. > If change org.eclipse.ecf.protocol.msn.NotificationSession line 128: > BufferedReader reader = new BufferedReader(new > InputStreamReader(getInputStream())); > to > BufferedReader reader = new BufferedReader(new > InputStreamReader(getInputStream(),"UTF-8")); > then not problem. Interesting. Care to supply a patch? This problem occurs because of looking for a message in every output of a read() call and sometimes leave message fragments behind. There's not a structure to combine the remaining parts of these reads after it is split into message pieces and processed. When you examine read() calls, you'll observe that the implementation tries to read incomplete messages and this makes it throw different kinds of exception. Probably, this case not only causes this "retrieve buddy list" error but also other failures in messaging. I'm investigating this and hopefully produce a patch in 2-3 days. Created attachment 83137 [details]
Patch to force the usage of UTF-8 as an encoding.
The patch has been committed to CVS HEAD. Setting as RESOLVED/FIXED. (In reply to comment #6) > This problem occurs because of looking for a message in every output of a > read() call and sometimes leave message fragments behind. There's not a > structure to combine the remaining parts of these reads after it is split into > message pieces and processed. When you examine read() calls, you'll observe > that the implementation tries to read incomplete messages and this makes it > throw different kinds of exception. This issue is being covered by 207677. closing. |