libsoup assertion reached when accessing an empty item
mgerstner opened this issue · comments
Matthias Gerstner commented
When publishing an empty file (which naturally doesn't make much sense), then download that file triggers a libsoup assertion:
# touch empty
# passim publish empty
Published: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 empty age:150/86400 share:0/5
# curl -k 'https://localhost:27500/empty?sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
# journalctl -u passim.service | tail -n 1
Oct 25 11:52:53 myhost passimd[4402]: soup_message_body_append_bytes: assertion 'g_bytes_get_size (buffer) > 0' failed
The daemon continues to run so it is more a cosmetical problem.
Matthias Gerstner commented
I verified this fix.