Bug#804529: ejabberd: HTTP upload fails with 'bad argument in call to erlang:list_to_binary()'

2015-11-09 Thread Josef Kufner
Holger Weiß wrote, on 9.11.2015 10:52:
>   modules:
> # [...]
> mod_http_upload:
>   thumbnail: false
>   # [...]

Thank you, this workaround works!



signature.asc
Description: OpenPGP digital signature


Bug#804529: ejabberd: HTTP upload fails with 'bad argument in call to erlang:list_to_binary()'

2015-11-09 Thread Holger Weiß
* Josef Kufner  [2015-11-09 10:30]:
> when trying to share file via HTTP upload method (mod_http_upload) the
> upload fails with following error in log. The uploaded photo was small
> PNG. Both Gajim and Conversations clients failed.
> 
> 2015-11-09 10:20:51.788 [info] <0.675.0>@mod_http_upload:create_slot:580 Got 
> HTTP upload slot for u...@.com/Gajim (file: coffe-sophie-copy.jpg)
> 2015-11-09 10:20:51.797 [info] <0.990.0>@ejabberd_listener:accept:299 
> (#Port<0.16013>) Accepted connection 192.168.xx.xx:34830 -> xx.xx.xx.xx:5444
> 2015-11-09 10:20:51.798 [info] <0.1165.0>@ejabberd_http:init:157 started: 
> {p1_tls,{tlssock,#Port<0.16013>,#Port<0.16014>}}
> 2015-11-09 10:20:52.232 [error] <0.1165.0> CRASH REPORT Process <0.1165.0> 
> with 0 neighbours crashed with reason: bad argument in call to 
> erlang:list_to_binary(<<"/srv/jabber/upload/6bc534cbxxxef80b/vdbh473UMwcCfte1O...">>)
>  in mod_http_upload:thumb_el/2 line 891
> 2015-11-09 10:20:52.232 [error] <0.428.0> Supervisor ejabberd_http_sup had 
> child undefined started with {ejabberd_http,start_link,undefined} at 
> <0.1165.0> exit with reason badarg in context child_terminated

This is fixed upstream[*] and can be worked around by disabling
thumbnail creation (Gajim and Conversations currently don't use that
feature anyway):

  modules:
# [...]
mod_http_upload:
  thumbnail: false
  # [...]

[*]: 
https://github.com/processone/ejabberd/commit/1b368a86b709053ded0ebdfa0499cbd78712fce6



Bug#804529: ejabberd: HTTP upload fails with 'bad argument in call to erlang:list_to_binary()'

2015-11-09 Thread Josef Kufner
Package: ejabberd
Version: 15.10-2
Severity: important

Dear Maintainer,

when trying to share file via HTTP upload method (mod_http_upload) the
upload fails with following error in log. The uploaded photo was small
PNG. Both Gajim and Conversations clients failed.

2015-11-09 10:20:51.788 [info] <0.675.0>@mod_http_upload:create_slot:580 Got 
HTTP upload slot for u...@.com/Gajim (file: coffe-sophie-copy.jpg)
2015-11-09 10:20:51.797 [info] <0.990.0>@ejabberd_listener:accept:299 
(#Port<0.16013>) Accepted connection 192.168.xx.xx:34830 -> xx.xx.xx.xx:5444
2015-11-09 10:20:51.798 [info] <0.1165.0>@ejabberd_http:init:157 started: 
{p1_tls,{tlssock,#Port<0.16013>,#Port<0.16014>}}
2015-11-09 10:20:52.232 [error] <0.1165.0> CRASH REPORT Process <0.1165.0> with 
0 neighbours crashed with reason: bad argument in call to 
erlang:list_to_binary(<<"/srv/jabber/upload/6bc534cbxxxef80b/vdbh473UMwcCfte1O...">>)
 in mod_http_upload:thumb_el/2 line 891
2015-11-09 10:20:52.232 [error] <0.428.0> Supervisor ejabberd_http_sup had 
child undefined started with {ejabberd_http,start_link,undefined} at <0.1165.0> 
exit with reason badarg in context ch
ild_terminated


-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (750, 'stable'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.2.0-rc6-686-pae (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages ejabberd depends on:
ii  adduser 3.113+nmu3
ii  debconf [debconf-2.0]   1.5.56
ii  erlang-asn1 1:18.1-dfsg-1
ii  erlang-base-hipe [erlang-abi-17.0]  1:18.1-dfsg-1
ii  erlang-crypto   1:18.1-dfsg-1
ii  erlang-inets1:18.1-dfsg-1
ii  erlang-lager3.0.1-1
ii  erlang-mnesia   1:18.1-dfsg-1
ii  erlang-odbc 1:18.1-dfsg-1
ii  erlang-p1-cache-tab 0.2015.07.28-1
ii  erlang-p1-iconv 0.2015.06.24-1
ii  erlang-p1-stringprep0.2015.02.04-1
ii  erlang-p1-tls   0.2015.08.03-1+b1
ii  erlang-p1-utils 0.2015.10.16-1
ii  erlang-p1-xml   0.2015.10.23-1
ii  erlang-p1-yaml  0.2015.10.07-1
ii  erlang-p1-zlib  0.2015.02.23-2
ii  erlang-public-key   1:18.1-dfsg-1
ii  erlang-ssl  1:18.1-dfsg-1
ii  erlang-syntax-tools 1:18.1-dfsg-1
ii  init-system-helpers 1.24
ii  openssl 1.0.2d-3
ii  ucf 3.0030

ejabberd recommends no packages.

Versions of packages ejabberd suggests:
pn  apparmor 
pn  apparmor-utils   
ii  ejabberd-contrib 0.2015.10.26~dfsg0-1
ii  erlang-oauth20.2015.09.28-1
ii  erlang-p1-mysql  0.2015.09.29-1
ii  erlang-p1-pam0.2015.02.23-1
ii  erlang-p1-pgsql  0.2015.04.28-2
ii  erlang-p1-sip0.2015.07.22-1
ii  erlang-p1-stun   0.2015.09.16-1
ii  erlang-redis-client  1.0.8-1
ii  erlang-sqlite3   1.1.4~dfsg0-1
ii  imagemagick  8:6.8.9.9-5
ii  libunix-syslog-perl  1.1-2+b4

-- debconf information excluded