Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib plugin: broken physical size! #239

Closed
jrse opened this issue Jan 23, 2019 · 3 comments
Closed

zlib plugin: broken physical size! #239

jrse opened this issue Jan 23, 2019 · 3 comments
Assignees
Labels

Comments

@jrse
Copy link
Contributor

jrse commented Jan 23, 2019

after #233

using the zlib plugin leads to broken physical size:

imap(t3): Error: Corrupted index cache file /home/jan/dovecot-2.2.21/var/mail/rbox/t3/mailboxes/INBOX/rbox-Mails/dovecot.index.cache: Broken physical size for mail UID 1
Jan 23 17:53:49 imap(t3): Error: read(zlib((buffer))) failed: Cached message size smaller than expected (904 < 1726, box=INBOX, UID=1)
Jan 23 17:53:49 imap(t4): Error: read(zlib((buffer))) failed: Cached message size smaller than expected (1070 < 2051, box=INBOX, UID=1)

@jrse jrse self-assigned this Jan 23, 2019
@jrse
Copy link
Contributor Author

jrse commented Jan 23, 2019

this seems to be a general problem with the zlib plugin. which is independent of our latest changes in #233.

@jrse jrse added the bug label Jan 24, 2019
jrse added a commit that referenced this issue Jan 24, 2019
…eader). read_mail. did update to mail object PHYSICAL_SIZE=object size. which lead to invalid physical size
@jrse
Copy link
Contributor Author

jrse commented Jan 25, 2019

Tests
To test the correct compression/decompression with zlib plugin. The plugin should be activated and proper configured in: dovecot-container: ceph-dovecot/docker-ceph-dovecot-build#1
so that the imaptests and doveadm commands are working with compressed mails.

@jrse
Copy link
Contributor Author

jrse commented Jan 25, 2019

mdbox configuration in (ceph-dovecot/docker-ceph-dovecot-build#1) to have zlib also availble, or we need to change doveadm backup commands in travis build files.

jrse added a commit that referenced this issue Jan 25, 2019
#239: invalid reinterpret_cast in istream_bufferlist
@jrse jrse closed this as completed Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant