Package: pastebinit Version: 1.3-4 Severity: normal Hi,
I recently noticed that pastebinit randomly fails to create a pastebin from certain files or input I provided. While I previously blamed an outdated version for the problem, I eventually figured out that the problem occurs when the files or input from stdin is too large: glaubitz@z6:~/pastebinit> ls -lh total 3.4M -rw-r--r-- 1 glaubitz glaubitz 3.3M Jun 30 12:18 long.log -rw-r--r-- 1 glaubitz glaubitz 88K Jun 30 15:24 short.log glaubitz@z6:~/pastebinit> pastebinit short.log http://paste.debian.net/177062/ glaubitz@z6:~/pastebinit> pastebinit long.log http://paste.debian.net/ glaubitz@z6:~/pastebinit> cat short.log | pastebinit http://paste.debian.net/177064/ glaubitz@z6:~/pastebinit> cat long.log | pastebinit http://paste.debian.net/ glaubitz@z6:~/pastebinit> As can be seen from the above output, when the input provided is too large, pastebinit will just return the URL of the configured pastebin without the handle for the uploaded input, since the upload obviously failed and did not return a valid handle. I understand that the size of the text that can be saved in a pastebin is limited. Thus, pastebinit should check the size of the input provided and gracefully fail with a reasonable error message if the size of the input is larger than the allowed size for a pastebin. Thanks, Adrian -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pastebinit depends on: ii python 2.7.3~rc2-1 ii python-configobj 4.7.2+ds-4 Versions of packages pastebinit recommends: ii lsb-release 4.1+Debian7 pastebinit suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org