After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707655 - evolution-ews fails to load mails from Exchange Server
evolution-ews fails to load mails from Exchange Server
Status: RESOLVED NOTGNOME
Product: evolution-ews
Classification: Other
Component: Mail
3.9.x
Other Linux
: Normal major
: ---
Assigned To: Evolution EWS maintainer(s)
Evolution EWS maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-09-06 20:48 UTC by Dominique Leuenberger
Modified: 2014-01-09 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libsoup headers debug (1.49 KB, patch)
2013-09-13 21:43 UTC, Tiago Batista
none Details | Review
curl with the same request that fails (3.33 KB, text/plain)
2013-09-13 22:36 UTC, Tiago Batista
  Details
This is the debug log which shows the absolute reproducible test case of Robert Ehrenleitner's PDF file. (566.58 KB, text/plain)
2013-10-16 12:01 UTC, Robert Ehrenleitner
  Details

Description Dominique Leuenberger 2013-09-06 20:48:35 UTC
I'm running evolution 3.9.90 (on openSUSE 13.1 Factory/dev snapshot; update to 3.9.91 pending)

Exchange account setup using g-o-a, Calendar is being loaded just fine and access to my personal addressbook is working (as well as tasks and memos).

With the mail folders, though, there is a problem:
Most of the folders I have on the Exchange Server do not show mails (some do, so it seems not to be a general issue).

running with EWS_DEBUG=2 evolution, I can see traffic like this:

> POST /ews/Exchange.asmx HTTP/1.1
> Soup-Debug-Timestamp: 1378500376
> Soup-Debug: SoupSessionAsync 1 (0x53389a0), ESoapMessage 6 (0x5473f60), SoupSocket 1 (0x5346a50)
> Host: <company exchange Server>
> User-Agent: Evolution/3.9.90
> Connection: Keep-Alive
> Content-Type: text/xml; charset=utf-8
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2010_SP2"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types"><messages:ItemShape><BaseShape>IdOnly</BaseShape><IncludeMimeContent>false</IncludeMimeContent><AdditionalProperties><FieldURI FieldURI="item:Subject"/><FieldURI FieldURI="item:DateTimeReceived"/><FieldURI FieldURI="item:DateTimeSent"/><FieldURI FieldURI="item:DateTimeCreated"/><FieldURI FieldURI="item:Size"/><FieldURI FieldURI="item:HasAttachments"/><FieldURI FieldURI="item:InReplyTo"/><FieldURI FieldURI="message:From"/><FieldURI FieldURI="message:Sender"/><FieldURI FieldURI="message:ToRecipients"/><FieldURI FieldURI="message:CcRecipients"/><FieldURI FieldURI="message:BccRecipients"/><FieldURI FieldURI="message:IsRead"/><FieldURI FieldURI="message:References"/><FieldURI FieldURI="message:InternetMessageId"/><FieldURI FieldURI="item:ResponseObjects"/><FieldURI FieldURI="item:Sensitivity"/><FieldURI FieldURI="item:Importance"/><FieldURI FieldURI="item:Categories"/><FieldURI FieldURI="message:IsRead"/><ExtendedFieldURI PropertyTag="0x0e07" PropertyType="Integer"/><ExtendedFieldURI PropertyTag="0x0e17" PropertyType="Integer"/><ExtendedFieldURI PropertyTag="0x1080" PropertyType="Integer"/><ExtendedFieldURI PropertyTag="0x1081" PropertyType="Integer"/></AdditionalProperties></messages:ItemShape><messages:ItemIds><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtT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aAAABLAM5lrsUtTISEEnRzOe1GAABIuOElAAA="/><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtTISEEnRzOe1GAAAAPQaAAABLAM5lrsUtTISEEnRzOe1GAABIuOEkAAA="/><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtTISEEnRzOe1GAAAAPQaAAABLAM5lrsUtTISEEnRzOe1GAABIuOEjAAA="/><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtTISEEnRzOe1GAAAAPQaAAABLAM5lrsUtTISEEnRzOe1GAABIuOEiAAA="/><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtTISEEnRzOe1GAAAAPQaAAABLAM5lrsUtTISEEnRzOe1GAABIuOEhAAA="/><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtTISEEnRzOe1GAAAAPQaAAABLAM5lrsUtTISEEnRzOe1GAABIuOEgAAA="/><ItemId Id="AAMkADUwMzU0MmJkLTYxZTYtNDY2Yi04NTg2LWRiMWEzYTA0NTFhNABGAAAAAAC6d+5BzJXkRrolj5KFmJtNBwBLAM5lrsUtTISEEnRzOe1GAAAAPQaAAABLAM5lrsUtTISEEnRzOe1GAABIuOEfAAA="/></messages:ItemIds></messages:GetItem></SOAP-ENV:Body></SOAP-ENV:Envelope>
  
< HTTP/1.1 8 Message Corrupt
< Soup-Debug-Timestamp: 1378500376
< Soup-Debug: ESoapMessage 6 (0x5473f60)

Is there anything else I can provide?
Comment 1 Dominique Leuenberger 2013-09-06 20:58:55 UTC
I should be able to test this on 3.9.91 by Sunday or so (waiting for the builds of the entire stack to finish)
Comment 2 Dominique Leuenberger 2013-09-07 12:35:16 UTC
Can;t see anything obvious changed in ews 3.9.91, yet: this actually loads my mail from the Exchange Server...


almost sounds like a co-incidence.
Comment 3 Dominique Leuenberger 2013-09-07 13:38:01 UTC
ok.. it is random.. upon a restart of evo 3.9.91, the folder list no longer loads... so the problem does persist.
Comment 4 Dominique Leuenberger 2013-09-09 17:10:24 UTC
(clarification: the folder LIST loads.. just the mail list within a folder does not)
Comment 5 Tiago Batista 2013-09-11 08:51:34 UTC
I am on evolution-ews-3.8.5. I am experiencing this too and i think it may be related to the gnutls/glib networking/libsoup stack but i do not have the knowledge to debug it further.

Here is how I got to that conclusion:

I have two gentoo systems. I initially found this on the first upgrade to >=net-libs/gnutls-3.2.0 (actually the initial problem was different but was solved on 3.2.2)

Since then, i have been experimenting with upgrading and downgrading gnutls on both my systems. After downgrading gnutls to 2.12.23-r1, and rebuilding related packages (glib networking is in this list), the problem goes away! If i re-upgrade it, the problem comes back

Now the weird detail... I have two exchange accounts. On on a 2007 exchange and the other on a more recent version, 2010 maybe.. And only the 2007 account exhibits this problem.

At first I thought this had something to do with message sizes and I reduced the number of messages fetched in one go from 100 to 10, but that did not solve it.

Being a gentoo user I am able to help out in the resolution of this issue, but this is so over my head that I will need developer guidance for sure!

I was able to reproduce the problem using the following versions:
net-libs/libsoup-2.42.2 and net-libs/libsoup-2.43.90
net-libs/glib-networking-2.36.2
net-libs/gnutls-3.2.3 and net-libs/gnutls-3.2.4

When downgrading to net-libs/gnutls-2.12.23-r1 the problem goes away no matter the libsoup version.
Comment 6 Milan Crha 2013-09-12 10:47:33 UTC
> < HTTP/1.1 8 Message Corrupt
> < Soup-Debug-Timestamp: 1378500376
> < Soup-Debug: ESoapMessage 6 (0x5473f60)

The question is what made the resolution of "Message Corrupt", was it the server, or the client? From Tiago's playing with different versions of related packages it seems like the client decided errorneously about the "Message Corrupt" response.

Dan, do you have any idea from the libsoup point of view, please?
Comment 7 Dan Winship 2013-09-12 14:21:51 UTC
"Message Corrupt" in this case means that either the response didn't have a valid HTTP response header, or else the connection was closed in the middle of parsing the headers.

SoupLogger isn't going to help here. You'd need to see the raw data before libsoup has started trying to parse it. If you're using https though, there's no easy way to do that. (You'd have to add debugging printfs or something.)
Comment 8 David Woodhouse 2013-09-12 19:41:06 UTC
You can see the request which was sent to the server. You could make a connection to it with 'openssl s_client -crlf -connect exchange.server.com:443' and paste the request, then see exactly what the response is.

You could also try submitting the same with curl.
Comment 9 Milan Crha 2013-09-13 06:53:02 UTC
(In reply to comment #8)
> You could also try submitting the same with curl.

If this is related to libsoup/glib-networking, then the curl will not help much with reproducibility, because it doesn't use any of these (according to ldd). But if you want just see raw data what server returned, then I agree, it's better to avoid the affected libraries.
Comment 10 Tiago Batista 2013-09-13 08:09:28 UTC
Thank you for the curl tip, it will be useful for comparison!

I had some time yesterday to look at the source of libsoup. The error is coming from read_headers() as you told me.

 I still need to look at the involved structs to figure out what to print to the console... Is there any member on the involved structs that holds all the message as received from the server? That would be useful when looking for corruption!
Comment 11 David Woodhouse 2013-09-13 09:46:26 UTC
The curl tip would probably have been more helpful if I'd given you the command line. Assuming you have Kerberos (who doesn't, apart unfortunately from Evolution-EWS because libsoup doesn't support it):

Save the XML content that you posted in comment 0 (without the leading '> ') into a file, and:
 
curl --negotiate -u : https://your.server/ews/Exchange.asmx -d @file.xml -H "Content-Type: text/xml"

If you want to use NTLM authentication, replace "--negotiate -u :" with:
    --ntlm -u DOMAIN\\username:password
Comment 12 Tiago Batista 2013-09-13 09:56:35 UTC
Thanks a lot! I'll try it as soon as I get home... I cant risk fiddling with my main mail account during work hours!
Comment 13 Dan Winship 2013-09-13 12:25:42 UTC
(In reply to comment #10)
>  I still need to look at the involved structs to figure out what to print to
> the console... Is there any member on the involved structs that holds all the
> message as received from the server? That would be useful when looking for
> corruption!

You want to print io->read_header_buf in read_headers() in the "nread == 0" case, and in io_read() in the "status != SOUP_STATUS_OK" case of SOUP_MESSAGE_IO_STATE_HEADERS. (And print something to distinguish the two printfs so you can tell which one you're hitting.)
Comment 14 Tiago Batista 2013-09-13 12:52:37 UTC
Thank you Dan,

In my preliminary tests i think I was hitting nread==0, but I want to go a bit further in my analysis, and try to find out the differences in the invocation when the call works and when it fails.

I now have the info I need from you. As soon as I get the tiem to sit down and really look into this, I'll get back to you!
Comment 15 Tiago Batista 2013-09-13 21:43:23 UTC
Created attachment 254887 [details] [review]
libsoup headers debug

I just applied this patch to libsoup, its crappy but it prints all non printable chars in decimal, {13}{10} is CR,LF!

So, the output of a successful request looks pretty much like this:

got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}X-Powered-By: ASP.NET{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}X-Powered-By: ASP.NET{13}{10}X-AspNet-Version: 2.0.50727{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}X-Powered-By: ASP.NET{13}{10}X-AspNet-Version: 2.0.50727{13}{10}Cache-Control: private, max-age=0{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}X-Powered-By: ASP.NET{13}{10}X-AspNet-Version: 2.0.50727{13}{10}Cache-Control: private, max-age=0{13}{10}Content-Type: text/xml; charset=utf-8{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}X-Powered-By: ASP.NET{13}{10}X-AspNet-Version: 2.0.50727{13}{10}Cache-Control: private, max-age=0{13}{10}Content-Type: text/xml; charset=utf-8{13}{10}Content-Length: 1608{13}{10}
got_lf and io->read_header_buf=HTTP/1.1 200 OK{13}{10}Date: Fri, 13 Sep 2013 21:12:09 GMT{13}{10}Server: Microsoft-IIS/6.0{13}{10}X-Powered-By: ASP.NET{13}{10}X-AspNet-Version: 2.0.50727{13}{10}Cache-Control: private, max-age=0{13}{10}Content-Type: text/xml; charset=utf-8{13}{10}Content-Length: 1608{13}{10}{13}{10}

While the output when I get the error looks... Well, it errors out right away! Maybe the connection gets closed or something? I think Ill need to look at glib-networking.

The output after the request never actually prints anything:

nread==0 and io->read_header_buf=

The request that causes this error looks like this (I redacted a very large SyncState for readability):

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header>
      <types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1" />
   </SOAP-ENV:Header>
   <SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages">
      <messages:SyncFolderItems xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
         <messages:ItemShape>
            <BaseShape>IdOnly</BaseShape>
         </messages:ItemShape>
         <messages:SyncFolderId>
            <FolderId Id="AAMkADZhNmNjNDA0LTYzMTQtNDkzZS05YmVjLWRhNWFlOTQ4YTM4MAAuAAAAAAD7bi3f5hu2QIfPxhCB+uquAQBHp/Z8YnBgQbxJ23giscnbAKnwxAk4AAA=" />
         </messages:SyncFolderId>
         <messages:SyncState>{REDACTED_LOTS_OF_TEXT}</messages:SyncState>
         <messages:MaxChangesReturned>100</messages:MaxChangesReturned>
      </messages:SyncFolderItems>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Comment 16 David Woodhouse 2013-09-13 21:57:27 UTC
And when you post that same request with curl or 'openssl s_client', what do you see?
Comment 17 Tiago Batista 2013-09-13 22:36:32 UTC
Created attachment 254892 [details]
curl with the same request that fails

Ok, I attached the curl chat with the -v option active. I just redacted authentication information and the hostname/IP of the server to preserve some privacy.

I made sure I compiled curl against gnutls, in the hope that would reveal the issue if it were there...

Nothing strikes me as unusual here, but then again I am not used to debug http(s) connections!
Comment 18 Evan McClain 2013-09-17 17:55:31 UTC
I am possibly hitting the same (or similar) bug on opensuse-factory and Evolution 3.9.91, but I am getting a different error. The symptoms are the same, folder list loads but no messages.

> POST /EWS/Exchange.asmx HTTP/1.1
> Soup-Debug-Timestamp: 1379076546
> Soup-Debug: SoupSessionAsync 1 (0x3973be0), ESoapMessage 12 (0x3beedb0), SoupSocket 4 (0x3c525f0)
> Host: (company exchange server)
> User-Agent: Evolution/3.9.91
> Connection: Keep-Alive
> Content-Type: text/xml; charset=utf-8
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2010_SP2"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:SyncFolderItems xmlns="http://schemas.microsoft.com/exchange/services/2006/types"><messages:ItemShape><BaseShape>IdOnly</BaseShape></messages:ItemShape><messages:SyncFolderId><FolderId Id="AAMkADI3N2M0YjdiLWQxYjItNDg1Zi04ZmU2LTAzZmE0OWUwZTg0MgAuAAAAAACivauzcXP6QqMTJNRvx4+FAQCjUrpolDoIQr+OJ4QalBlyAE3ki2dfAAA="/></messages:SyncFolderId><messages:SyncState>(Really huge blob)</messages:SyncState><messages:MaxChangesReturned>100</messages:MaxChangesReturned></messages:SyncFolderItems></SOAP-ENV:Body></SOAP-ENV:Envelope>
  
< HTTP/1.1 7 Connection terminated unexpectedly
< Soup-Debug-Timestamp: 1379076546
< Soup-Debug: ESoapMessage 12 (0x3beedb0)
Comment 19 Tiago Batista 2013-09-17 19:09:09 UTC
Hello Evan

If I am not mistaken, you are using libsoup-2.43.90, can you confirm it? I just recompiled my system against that version including the attached patch and I still see the same error.

I still receive:

(...) </SOAP-ENV:Envelope>
  
nread==0 and io->read_header_buf=
< HTTP/1.1 8 Message Corrupt
< Soup-Debug-Timestamp: 1379443009
< Soup-Debug: ESoapMessage 7 (0x7f41bc57a640)

I then looked further and checked the version of glib-networking. Mine was 2.36.2 and yours was 2.37.5 (can you confirm this?) Still I got the same output after rebuilding against the new 

Do you know the version of your exchanage server?

I am getting these errors mostly on folders where the <messages:SyncState> element is very big (1-2 screens of text) can you tell me if that is your case as well? Can this be size related?
Comment 20 Evan McClain 2013-09-17 19:23:51 UTC
I am using libsoup 2.43.90-1.1 and glib-networking 2.37.5-2.1 (latest in opensuse factory)

The exchange server is 2010 (Version 14.2.342.4001). The SyncState was fairly big and that does seem to be the issue.

The Inbox folder (with ~3,000 messages) does not display (with a connection termination error) while Drafts (with only a handful of messages) does connect and display the messages.
Comment 21 Milan Crha 2013-09-25 17:53:48 UTC
This might be better for Dan, as a libsoup developer.

Dan, if you would like to have something for testing, I have a request for a folder which returns 4985 letters long SyncState, which can be used for requests as well (then it returns even longer SyncState, and so on, my folder has 10K messages, thus there is some room for the growth). Just tell me and I'll give you the details in private.
Comment 22 Dan Winship 2013-09-30 12:47:16 UTC
Milan, can you try https://admin.fedoraproject.org/updates/libsoup-2.44.0-2.fc20 ? And if that doesn't fix it, then yes, please send me the testing info.
Comment 23 Milan Crha 2013-10-01 17:05:19 UTC
(In reply to comment #22)
> Milan, can you try
> https://admin.fedoraproject.org/updates/libsoup-2.44.0-2.fc20 ? And if that
> doesn't fix it, then yes, please send me the testing info.

Hrm, I cannot reproduce the error with bare f20, which is:
   libsoup-2.44.0-2.fc20.i686
   glib-networking-2.38.0-1.fc20.i686
   gnutls-3.1.13-2.fc20.i686
Comment 24 Milan Crha 2013-10-01 17:29:00 UTC
I tried to downgrade the libsoup to 2.44.0-1, and it still works as expected.
Comment 25 Dan Winship 2013-10-01 18:12:12 UTC
hm... if it happens with 2.43.90 and not with 2.44.0, then it's probably bug 708006. Actually, yeah, that could definitely cause "Message Corrupt" errors. Are these messages getting cancelled and then retried?

Can everyone else try upgrading to 2.44.0 and see if that fixes it for you?
Comment 26 Evan McClain 2013-10-01 21:28:11 UTC
It seems like the only difference is using gnutls 3.2.4 on opensuse factory vs. 3.1.13

I am still running opensuse factory with gnome factory repo and have libsoup 2.44.0, glib-networking 2.38.0, and gnutls 3.2.4.

But I am also not getting a "Message Corrupt" error, but am getting a "Connection terminated" error so perhaps this is a different bug.

But FWIW, a Fedora 20 Alpha VM does seem to connect and downloads my inbox with no issues.
Comment 27 Robert Ehrenleitner 2013-10-16 11:50:58 UTC
(In reply to comment #25)
> hm... if it happens with 2.43.90 and not with 2.44.0, then it's probably bug
> 708006. Actually, yeah, that could definitely cause "Message Corrupt" errors.
> Are these messages getting cancelled and then retried?
> 
> Can everyone else try upgrading to 2.44.0 and see if that fixes it for you?

I have the latest version from Arch Linux, that is evolution and evolution-ews both in 3.10, gnutls 3.2.4-1, libsoup 2.44.1-1, glib-networking 2.38.1-1.

I can easily reproduce it any time, the attachment just has to be large enough (larger than about 200 kB). I also reproduced the bug perfectly with mrcha's small C program.

The connection terminates with saying "Message Corrupt" in Debug mode, and saying "No Answer: Message Corrupt" in a message window in evolution. No retries are made later on (at least no within the next 5 minutes).
Comment 28 Robert Ehrenleitner 2013-10-16 12:01:02 UTC
Created attachment 257411 [details]
This is the debug log which shows the absolute reproducible test case of Robert Ehrenleitner's PDF file.
Comment 29 Evan McClain 2013-12-17 15:56:24 UTC
Updating my gnutls seems to have fixed the issue I was seeing. openSUSE-factory is using 3.2.6 and that seems to work. Updating openSUSE 13.1's 3.2.4 to 3.2.7 also seems to work for the "Connection terminated unexpectedly" issue. Does this also work for the "Message Corrupt" issue?
Comment 30 Tiago Batista 2013-12-27 10:24:04 UTC
Im using 3.2.8 on gentoo and I can confirm that the issue seems to have been solved...

My current software:
- net-libs/gnutls-3.2.8 (standard portage)
- net-libs/glib-networking-2.37.5 (not in portage)
- net-libs/libsoup-2.42.3.1 (standard portage)

I am also loosing access to my exchange accounts over this weekend, so i cant test this anymore... Its good to see this solved. Any idea on the root cause from gnutls?
Comment 31 Milan Crha 2014-01-09 18:50:51 UTC
(In reply to comment #30)
> Any idea on the root cause from gnutls?

No idea from my side, but I'm happy this was not an evolution-ews issue. I'm closing this as such.