pastes to pastebin.com no longer work

Bug #526849 reported by Moritz Naumann
46
This bug affects 6 people
Affects Status Importance Assigned to Milestone
pastebinit (Ubuntu)
Fix Released
High
Unassigned
Hardy
Won't Fix
Undecided
Unassigned
Jaunty
Fix Released
Undecided
Unassigned
Karmic
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pastebinit

The pastebin.com website, which is the default pastebin used by pastebinit, no longer works with pastebinit, apparently due to an upgrade of their codebase. Content passed to pastebinit does not get posted and pastebinit exists with successful status returning only the string "http://pastebin.com".

The website maintainers can be contacted using the email address found at http://pastebin.com/help - I will point them to this bug report.

ProblemType: Bug
Architecture: amd64
Date: Wed Feb 24 06:19:46 2010
DistroRelease: Ubuntu 9.10
Package: pastebinit 0.11.2-1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=de_DE.UTF-8
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
SourcePackage: pastebinit
Uname: Linux 2.6.31-19-generic x86_64

Revision history for this message
Moritz Naumann (mnaumann) wrote :
Revision history for this message
Moritz Naumann (mnaumann) wrote :

The attached patch provides support for the new API as documented at http://pastebin.com/api.php

Revision history for this message
Stéphane Graber (stgraber) wrote : Re: [Bug 526849] Re: pastes to pastebin.com no longer work

On Wed, 2010-02-24 at 12:30 +0000, Moritz Naumann wrote:
> The attached patch provides support for the new API as documented at
> http://pastebin.com/api.php
>
> ** Patch added: "Patch for compatibility with new pastebin.com API"
> http://launchpadlibrarian.net/39703529/pastebinit_patch_2010-02-24_mnaumann.diff
>

Thanks a lot, I'll try to look at that and merge it today.

--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

tags: added: patch
Changed in pastebinit (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

just because Brian set this to High priority a few minutes ago: Isn't this already fixed in the current lucid package?

pastebinit (1.0-0ubuntu3) lucid; urgency=low

  * Take pastebin.com.conf from bzr to fix pastebin.com until 1.1 is released.

 -- Stéphane Graber <email address hidden> Tue, 23 Feb 2010 20:00:30 -0500

FWIW, 0ubuntu3 worked fine for me this morning with pastebin.com

Revision history for this message
Rolf Leggewie (r0lf) wrote :

but it seems that karmic and probably earlier versions are affected, too. we should think about an SRU.

Revision history for this message
Nigel Babu (nigelbabu) wrote :

Based on Rolf's last comment, changing bug to fix released.

tags: added: patch-accepted
Changed in pastebinit (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Stephane, do I understand correctly that backporting this fix to karmic and jaunty is not possible because lucid pastebinit was completely refactored?

Revision history for this message
Stéphane Graber (stgraber) wrote :

On Fri, 2010-03-19 at 17:51 +0000, Rolf Leggewie wrote:
> Stephane, do I understand correctly that backporting this fix to karmic
> and jaunty is not possible because lucid pastebinit was completely
> refactored?
>

Yes, unfortunately the code of 1.0 is quite different from older
releases. The best we can do is probably to offer a PPA with these
packages although installing Lucid's package as-is will work just fine
(it's just python, no binary).

--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Revision history for this message
Martin Erik Werner (arand) wrote :

Patch applies cleanly and patched pastebinit works for pastebin.com in Karmic.
debdiff attached

Revision history for this message
Martin Erik Werner (arand) wrote :

Patch also applies cleanly and works as expected in Jaunty.

For Hardy, the patch is a bit off it seems, it now returns "http://pastebin.com//api_public########" (#-random), however the pasting seems to be done correctly, since navigating to equivalent "http://pastebin.com/########" will reveal the paste correctly.

Also a lot of formatting changes (spaces->tabs, edit of unpatched place-reference text) done to make the patch apply to Hardy version.

Revision history for this message
Martin Erik Werner (arand) wrote :

Unfinished Hardy patch attached

Revision history for this message
Rolf Leggewie (r0lf) wrote :

arand, thank you for your work. The upload needs to go to karmic-proposed, not karmic. Can you change your patch in comment 9? Let's try to get that sponsored first, although most devs will likely be focused on the lucid release, rather. So, please be patient.

Revision history for this message
Martin Erik Werner (arand) wrote :

Edited debdiff to credit Moritz Naumann for the fix and to use karmic-proposed instead.

Revision history for this message
Martin Erik Werner (arand) wrote :

Likewise for Jaunty

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Can someone from the Stable Release Team please sponsor the patch from comment 13? Pastebin.com is the default pastebin and currently completely broken.

Revision history for this message
John Dong (jdong) wrote :

Patch looks good. Note that Karmic version should be -1ubuntu0.1

Other than that, ACK from the SRU team on both. Feel free to subscribe ubuntu-sponsors to get this uploaded. Thanks for your contribution to Ubuntu

Revision history for this message
Martin Erik Werner (arand) wrote :

versionfixed debdiff attached, subscribing ubuntu-sponsors

Revision history for this message
Benjamin Drung (bdrung) wrote :

uploaded debdiffs from comment #14 and #17. For karmic-proposed I had to run "update-maintainer" to update the maintainer field.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

let's fix hardy, too

tags: added: verification-needed
tags: removed: amd64
Revision history for this message
Benjamin Drung (bdrung) wrote :

uploaded to hardy-proposed

Revision history for this message
Martin Erik Werner (arand) wrote :

It seems like the new Hardy patch still has the problem described by me above:

$ echo hello | pastebinit
http://pastebin.com//api_public.phpB35bGNCE

and if instead going to http://pastebin.com/B35bGNCE
the paste is found

So we need some way to get rid of the "/api_public.php" output in the hardy version, since the paste in itself works, but not the echoing back of the correct link.

Marking as verification-failed (for Hardy patch).

tags: added: verification-failed
removed: verification-needed
Changed in pastebinit (Ubuntu Hardy):
status: New → Confirmed
Changed in pastebinit (Ubuntu Jaunty):
status: New → Fix Committed
Changed in pastebinit (Ubuntu Karmic):
status: New → Fix Committed
Revision history for this message
Martin Erik Werner (arand) wrote :

I'm marking jaunty and karmic as fix-commited since it's in -proposed, and hardy confirmed since the patch doesn't work properly.

Revision history for this message
Jonathan Riddell (jr) wrote :

rejecting from hardy-proposed unapproved queue based on comments above

Revision history for this message
Jonathan Riddell (jr) wrote :

Accepted into karmic-proposed and jaunty-proposed, please test

Revision history for this message
Martin Erik Werner (arand) wrote :

Note that this currently fails on all versions (ugly crash on earlier versions, nice notice on later), due to pastebin.com server reorganisation, let's just hope it does work when they get back up.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

if you want this to hit karmic and jaunty, please test and report success or failure

Revision history for this message
Martin Erik Werner (arand) wrote :

Well I've tested on both with success, however I was thinking it'd be appropriate that someone confirmed it independently... I'm not sure exactly how the policy goes there.

Also, regading Hardy.
One option would be to simply switch the default site to paste.ubuntu.com for hardy, it's a horrible cop-out, but it's a very simple&safe change, I guess {all other considerations ignored (fact that pastebin.com is the proper default)}.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

marking verification-done for jaunty and karmic

tags: added: verification-done
Martin Pitt (pitti)
tags: removed: verification-failed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pastebinit - 0.11.2-1ubuntu0.1

---------------
pastebinit (0.11.2-1ubuntu0.1) karmic-proposed; urgency=low

  * fix by Moritz Naumann for compatibility with new pastebin.com API
    (LP: #526849)
 -- Arand Nash <email address hidden> Wed, 21 Apr 2010 04:03:42 +0100

Changed in pastebinit (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pastebinit - 0.11.2-0ubuntu1.1

---------------
pastebinit (0.11.2-0ubuntu1.1) jaunty-proposed; urgency=low

  * fix by Moritz Naumann for compatibility with new pastebin.com API
    (LP: #526849)
 -- Arand Nash <email address hidden> Mon, 19 Apr 2010 16:16:01 +0200

Changed in pastebinit (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I believe I now found the correct patch for hardy as well. At least testing with the hardy packages on my lucid showed the desired behaviour of broken before and fixed after. Attaching debdiff and requesting sponsorship.

Package is also available from https://launchpad.net/~r0lf/+archive/stable/+sourcepub/1261101/+listing-archive-extra

Revision history for this message
Rolf Leggewie (r0lf) wrote :

actually, I rejoiced too soon. Problem is still unfixed in hardy.

Revision history for this message
Moritz Naumann (mnaumann) wrote :

I doubt anyone cares about Hardy these days?

Rolf Leggewie (r0lf)
Changed in pastebinit (Ubuntu Hardy):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.