Broken Mime Parts

Bug #1676371 reported by Ezra Prakasa
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Fix Released
Undecided
David Britton
Xenial
Won't Fix
Undecided
Unassigned
Yakkety
Won't Fix
Undecided
Unassigned

Bug Description

Description: Ubuntu 16.04.2 LTS
Release: 16.04

dovecot-core:
  Installed: 1:2.2.22-1ubuntu2.2
  Candidate: 1:2.2.22-1ubuntu2.2
  Version table:
 *** 1:2.2.22-1ubuntu2.2 500
        500 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2.2.22-1ubuntu2 500
        500 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 Packages

imap: Error: Corrupted index cache file dovecot.index.cache: Broken MIME parts
      for mail UID 33928 in mailbox INBOX: Cached MIME parts don't match
      message during parsing: Cached header size mismatch (parts=4100...)
imap: Error: unlink(dovecot.index.cache) failed: No such file or directory (in
      mail-cache.c:28)
imap: Error: Corrupted index cache file dovecot.index.cache: Broken MIME parts
      for mail UID 33971 in mailbox INBOX: Cached MIME parts don't match
      message during parsing: Cached header size mismatch (parts=)

The problem appears to be fixed in [ https://github.com/dovecot/core/commit/1bc6f1c54b4d77830288b8cf19060bd8a6db7b27 ]

[ https://www.osso.nl/blog/patch-a-day-dovecot-broken-mime-parts-xenial/ ]

Robie Basak (racb)
tags: added: server-next
Revision history for this message
David Britton (dpb) wrote :

Appears fixed in Zesty on. 2.2.25-1 was pulled into debian/sid, in July/2016 and into Zesty later that year. Nominated for SRU back to Yakkety and Xenial.

Changed in dovecot (Ubuntu):
assignee: nobody → David Britton (davidpbritton)
Changed in dovecot (Ubuntu):
status: New → Fix Released
Changed in dovecot (Ubuntu Xenial):
status: New → Triaged
Changed in dovecot (Ubuntu Yakkety):
status: New → Triaged
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Ezra,
this bug was dormant for a while and I beg your pardon.
I finally got aware of this and also found some time to work on it. Furthermore at the moment it seems no other dovecot SRU is in flight that would block it.

I prepared PPAs for Xenial [1] and Yakkety [2].
I intended to ask you if you could test them before moving into a real SRU.
But it turns out I see now why in your example you set DEB_BUILD_OPTIONS="nocheck" as the checks die now with:
  message header parser no EOH ......................................... : ok
  0 / 5 tests failed
  message id parser .................................................... : ok
  0 / 1 tests failed
  /bin/bash: line 1: 2983 Segmentation fault (core dumped) ./$bin
  Makefile:1180: recipe for target 'check-test' failed

In any way it would be great if you could assist the SRU process further, by filling out the template [3] for this case and add it to the Bug description.

[1]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/2837
[2]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/2839
[3]: https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

[1] seems to be the related change to the tests that make them working again.
But this one applies much less as-is than the actual fix.
OTOH I'm not really tempted to disable the test, so one will need to backport the (required part of) test adaptions properly.

I wanted to ask, would you be willing and able to do so, or do you rely on the community to do so?
(Dropping server-next until clarified who tries to tackle the backport of the test fixes).

[1]: https://github.com/dovecot/core/commit/aeaf818613081b9a9ff8c9fd4306e8dbfab4fd86

tags: removed: server-next
Revision history for this message
Manuel Grabowski (manuel.grabowski) wrote :

I'm seeing this as well. Anything I can do to help with the fix? :)

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Manuel,
we currently wait for myself or someone in the community to find the cycles to do the extended backport. The fix was backported before, but that implies changes to the tests (not just disabling but making them correctly matching the changes of the backport).

If you are willing and able to do so you can prepare that and myself as well as others can take a look. To easen your work and our review of it I recommend [1] as a process.

http://www.justgohome.co.uk/blog/2017/07/developing-ubuntu-using-git.html#multi-post-index

Revision history for this message
Matthieu Herrb (matthieu-o) wrote :

Hi,

I'd really like to see a backport of a more recent dovecot version to 16.04.
Our mail servers won't be updated to 18.04 before several months, but it looks like many small issues in handling of mailbox indexes and dsync protocol have been fixed since version 2.2.22.

Thanks in advance.

Revision history for this message
Bryce Harrington (bryce) wrote :

[Xenial and Yakkety are no longer under standard support.]

Changed in dovecot (Ubuntu Yakkety):
status: Triaged → Won't Fix
Changed in dovecot (Ubuntu Xenial):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.