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
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pastebinit
Triaged
Medium
Unassigned
pastebinit (Ubuntu)
Fix Released
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)
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)
Changed in pastebinit:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
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)
Changed in pastebinit (Ubuntu):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pastebinit - 1.6.2-1

---------------
pastebinit (1.6.2-1) unstable; urgency=medium

  * New upstream relase (1.6.1). GitHub Changelog:
    * Revert "Add NoneType handling/fix for Debian (Closes: #1023962)"
    * Default to empty string in os.environ.get for potentially empty
      env vars
      (Closes: #1023962)

 -- Thomas Ward <email address hidden> Mon, 14 Nov 2022 16:33:59 -0500

Changed in pastebinit (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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