Package: pastebinit
Version: 1.3-4
Followup-For: Bug #679650

Hi,


I can confirm this bug. Plus, there is another aspect of the same issue that 
didn't get
mentioned.

paste.debian.net currently blocks submissions with less than "3 or two line 
breaks". So a
simple

$ date | pastebinit
http://paste.debian.net/
$ echo $?
0
$

fails silently. The server response includes the error message

----BEGIN
<div class=status> 
Could not add your entry to the paste database:<br><br>
<b>Thanks to some spammers you need to provide at least 3 or two 
linebreaks</b><br>

</div>
----END

but the end user will never see it. That's the same behavior as for very long
input:

$ dd if=/dev/zero bs=10M count=1 | pastebinit
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 0.0771713 s, 136 MB/s
http://paste.debian.net/
$ echo $?
0
$

on which reason the bug originally was reported. It creates the same kind of
silent error message as above:

----BEGIN
<div class=status> 
Could not add your entry to the paste database:<br><br>
<b>Length of code is not allowed to exceed 150kB</b><br>

</div>
----END

As a quick fix one could compare the defaultPB variable with the returned URL
from the server.


Cheers,

        Julius



-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pastebinit depends on:
ii  python            2.7.3-4
ii  python-configobj  4.7.2+ds-4

Versions of packages pastebinit recommends:
ii  lsb-release  4.1+Debian8

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

Reply via email to