Bug#632684: pastebinit: empty URL
Hi! Since November 2010, paste.debian.net has enforced a 2 or 3-line minimum on pastes to stop spammers. This is actually returned to XML-RPC clients and also to web-users but the error message (and the fact that the paste failed) is ignored by pastebinit. This means that (date; echo; echo) | pastebinit -b http://paste.debian.net works just fine, while date | pastebinit -b http://paste.debian.net will fail without a useful error message to the user. I doubt that Sary's Xorg.0.log file was empty (although that's possible), so it's more likely that it exceeded the 90kB limit of paste.debian.net. Rolf, a couple of things come out of this -- * pastebinit could either pad pastes that are too short with a couple of lines, tell the user in advance that there's a minimum paste length (or both). It could conceivably also tell users in advance that pastes are too long. * ignoring the return information/failures is a separate bug (perhaps you could forward that upstream if you can't see where to fix it yourself) cheers Stuart (and thanks to formerer on #debian-devel for some information on what is happening here) -- Stuart Prescott--www.nanonanonano.net signature.asc Description: This is a digitally signed message part.
Bug#632684: pastebinit: empty URL
Package: pastebinit Version: 1.2-2 Severity: normal I've tried to use the tool as follow: cat /var/log/Xorg.0.log | pastebinit -b http://paste.debian.net/ , but then it returned an empty url only as/ http://paste.debian.net/ -- System Information: Debian Release: 6.0.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pastebinit depends on: ii python 2.6.6-3+squeeze6 interactive high-level object-orie ii python-configobj4.7.2+ds-1 simple but powerful config file re pastebinit recommends no packages. 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
Bug#632684: pastebinit: empty URL
On 05.07.2011 06:42, Sary Muhammad wrote: Package: pastebinit Version: 1.2-2 Severity: normal I've tried to use the tool as follow: cat /var/log/Xorg.0.log | pastebinit -b http://paste.debian.net/ , but then it returned an empty url only as/ http://paste.debian.net/ That's strange. Works fine here. Is the file in question empty or contains only a few lines? Does "pastebinit -b http://paste.debian.net/ /usr/share/doc/pastebinit/README" work? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org