paste.debian.net: user should have max 10 chars

Bug #941616 reported by Leandro Toledo
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pastebinit
Triaged
Medium
Unassigned

Bug Description

How to reproduce:
$ id -un
leandrotoledo

$ dmesg | pastebinit
http://paste.debian.net/

339 page = url_opener.open(website, params) #Send the informations and be redirected to the final page
340 print page.read()
...
<b>Invalid format for name (no special chars, max 10 chars)</b><br>
...

Possible fixes:
1) hard-coding for paste.debian.net (ugly way)
124 if param == 'user':
125 if pastebind[pastebin]['pastebin']['basename'] == 'paste.debian.net':
126 params[paramname] = user[:9]
127 else:
128 params[paramname] = user

2) default user valeu from conf file should override localuser value (ugly too)

3) remove user from paste.debian.net.conf
...
[format]
content = code
format = lang
remember = remember
expire = expire

[defaults]
lang = -1
remember = 0
expire = 604800
...

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

I strongly object to dropping user name support outright

we probably need something like an error handling lib for pastebinit

Changed in pastebinit:
importance: Undecided → Medium
status: New → Triaged
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.