hughsie / passim

A local caching server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libsoup assertion reached when accessing an empty item

mgerstner opened this issue · comments

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.

I verified this fix.