pastebinit on Debian don't give you paste.debian.net/id-number if username is longer than 10 characters

Bug #1437286 reported by Malin Bruland on 2015-03-27
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pastebinit
Medium
Unassigned
pastebinit (Ubuntu)
Undecided
Unassigned

Bug Description

pastebinit dosen't return paste-ID-link when username is longer than 10 characters.

when username has 11 or more characters, you get this in return

http://paste.debian.net/

According to their webpage, I get this error when trying to manually paste something with my username

Could not add your entry to the paste database:

Invalid format for name (no special chars, max 10 chars)

when username has 10 or less characters, you get an actual paste in return:

http://paste.debian.net/163493/

the solution should be something like

if paste is paste.debian.net
    then username shoud be shortned to 10 characters, by deleting any character bigger than, or 11 characters.

A workaround for this, is to add the .pastebinit.xml file to the longusernameuser's home folder. Within the file, add this lines:

<pastebinit>
    <author>shorter-than-10-characters-name</author>
</pastebinit>

save and run pastebinit again

your username will be replaced with any word/name shorter or equal to 10 characters

Malin Bruland (malinkb) on 2015-03-27
tags: added: paste.debian.net
removed: test
tags: added: pastebinit
description: updated
summary: - pastebinit
+ pastebinit don't gives url with id link, when username contain 11 or
+ more characters
summary: - pastebinit don't gives url with id link, when username contain 11 or
- more characters
+ pastebinit on Debian don't give you paste.debian.net/id-number if
+ username is longer than 10 characters
Rolf Leggewie (r0lf) on 2016-02-29
Changed in pastebinit:
importance: Undecided → Medium
status: New → Triaged
Stéphane Graber (stgraber) wrote :

Note that the username can also be replaced at the time of the paste with -a.

Anyway, a branch to implement the missing logic (ideally through configuration rather than an hardcoded check for paste.debian.net) would certainly be appreciated!

Rolf Leggewie (r0lf) on 2016-04-25
Changed in pastebinit (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers