Error trying to upload a package from a user that contains unicode chars on profile name

Bug #275509 reported by Ursula Junque
26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Julian Edwards

Bug Description

User salutis (https://launchpad.net/~salutis) reported on #launchpad:
<salutis> I got error by e-mail from <email address hidden>: 'Rejected: Unhandled exception processing upload: 'ascii' codec can't encode character u'\u010d' in position 75: ordinal not in range(128)' :(

His profile name was Rudolf Adamkovič, he changed to Rudolf Adamkovic and the package was uploaded and accepted successfully.

E-mail message:
"""
Rejected:
Unhandled exception processing upload: 'ascii' codec can't encode character u'\u010d' in position 75: ordinal not in range(128)
Format: 1.7
Date: Tue, 23 Sep 2008 17:14:45 +0200
Source: salutis-connect
Binary: salutis-connect
Architecture: source
Version: 1.2.5
Distribution: hardy
Urgency: low
Maintainer: Rudolf Adamkovic <email address hidden>
Changed-By: Rudolf Adamkovic <email address hidden>
Description:
 salutis-connect - Dialer for Huawei E220 & E169G modems and generic USB ACM phones
Changes:
 salutis-connect (1.2.5) hardy; urgency=low
 .
   * Changed maintainer e-mail address
Files:
 9f6cea2c8dd936d6328ebe5909984561 510 net extra salutis-connect_1.2.5.dsc
 c0fdeaed6f70794e6e92177c4a963612 11595 net extra salutis-connect_1.2.5.tar.gz
"""

Related branches

Ursula Junque (ursinha)
description: updated
Changed in soyuz:
assignee: nobody → julian-edwards
importance: Undecided → High
milestone: none → 2.1.10
status: New → Triaged
Changed in soyuz:
status: Triaged → In Progress
Revision history for this message
Julian Edwards (julian-edwards) wrote :

I can't re-create this, despite getting Rudolf to upload something to dogfood where his name still contains UTF8. I've moved it to low priority for now until it happens again.

Changed in soyuz:
assignee: julian-edwards → nobody
importance: High → Low
status: In Progress → Triaged
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Setting to "incomplete" so that this expires naturally. If it happens again, please set this back to "confirmed"

I think this was fixed as a side-effect of fixing bug 274015.

Changed in soyuz:
status: Triaged → Incomplete
milestone: 2.1.10 → none
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Related question mentioning workaround: https://answers.launchpad.net/launchpad/+question/45857

It happened to me today as well. As the referenced question says: it happens if you upload the same version of source package for the second time && there is an accented character in the maintainer name. I bumped version number in changelog and launchpad accepted that upload without any other change.

I think it has to do with some internal package metadata storage inside soyuz (which is in ascii), since the package doesn't influence that by itself.

For your information, I got this exact message:

 Unhandled exception processing upload: 'ascii' codec can't encode character u'\xe1' in position 57: ordinal not in range(128)
 [...]
 Maintainer: Václav Šmilauer

\xe1 is "á"

Changed in soyuz:
status: Incomplete → Confirmed
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for confirming this with more detail, we'll look into it.

Changed in soyuz:
assignee: nobody → al-maisan
importance: Low → Medium
milestone: none → 2.1.12
Celso Providelo (cprov)
Changed in soyuz:
importance: Medium → High
milestone: 2.1.12 → 2.2.1
status: Confirmed → Triaged
Changed in soyuz:
milestone: 2.2.1 → 2.2.2
Revision history for this message
Pavel Mlčoch (pavkamlc) wrote :

I think, this bug is very frustrating. No possible to solve it? I as "Pavel Mlčoch" can not extend my ppa long time.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 275509] Re: Error trying to upload a package from a user that contains unicode chars on profile name

On Friday 20 February 2009 21:33:52 Pavel Mlcoch wrote:
> I think, this bug is very frustrating. No possible to solve it? I as
> "Pavel Mlčoch" can not extend my ppa long time.

You can temporarily rename your Launchpad display name to ASCII only and your
upload will work.

Apologies for the delay in fixing this one.

Changed in soyuz:
milestone: 2.2.2 → 2.2.3
Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

Numerous attempts to reproduce this bug have failed. Could the next person who is affected by this bug please describe the problems faced in detail in addition to attaching the respective package files here?

Changed in soyuz:
status: Triaged → Incomplete
Changed in soyuz:
milestone: 2.2.3 → none
Revision history for this message
Lubomír Sedlář (lubomir-sedlar) wrote :

I also faced this bug. What is quite strange is that one day it works and the other day I get the error message, even if I am using the same name all the time.

The message is this:

Unhandled exception processing upload: 'ascii' codec can't encode character u'\xed' in position 62: ordinal not in range(128)
[...]
Maintainer: Lubomír Sedlář

and \xed seems to be í

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Hi Lubomír, can you please attach the rest of the package files for that changes file, and we'll hopefully be able to re-create the problem doing the exact same upload as yourself.

Revision history for this message
Lubomír Sedlář (lubomir-sedlar) wrote :

I hope there's everything you need.

Revision history for this message
Pavel Mlčoch (pavkamlc) wrote :

Rejected:
Unhandled exception processing upload: 'ascii' codec can't encode character u'\u010d' in position 61: ordinal not in range(128)

Format: 1.8
Date: Sat, 11 Apr 2009 22:42:14 +0200
Source: aqemu
Binary: aqemu
Architecture: source
Version: 0.7.1-2
Distribution: intrepid
Urgency: low
Maintainer: Pavel Mlčoch <email address hidden>
Changed-By: Pavel Mlčoch <email address hidden>
Description:
 aqemu - KDE frontend for qemu
Changes:
 aqemu (0.7.1-2) intrepid; urgency=low
 .
   * Initial release
Checksums-Sha1:
 dd3bf4d85f91ca90aa8e0a71569d79340aaae709 979 aqemu_0.7.1-2.dsc
 d733f6ffa764db640e256e89dd22dc2e34807f7a 630679 aqemu_0.7.1.orig.tar.gz
 225a5bac204f1f8866c691772c97c896c7373913 22951 aqemu_0.7.1-2.diff.gz
Checksums-Sha256:
 9d92f853d387985c66771d192da6632c09c3d0ad92fd587392c31bd03db04caf 979 aqemu_0.7.1-2.dsc
 090048a651354d35423655268ae8cd3d4bd71ae8099667a385fd57c66fa02f8f 630679 aqemu_0.7.1.orig.tar.gz
 3d99dc6a8503cd27322dff44b29655dd3b0aa283d02cd0e23091b4e2ee73610e 22951 aqemu_0.7.1-2.diff.gz
Files:
 a0170f03ca8dfc2f83cd28f1968ad7ee 979 misc extra aqemu_0.7.1-2.dsc
 4decc64db65db8cfa9e810482465d3da 630679 misc extra aqemu_0.7.1.orig.tar.gz
 d9da04ecaf3f1727c2cb5b2aa58b2649 22951 misc extra aqemu_0.7.1-2.diff.gz

===

If you don't understand why your files were rejected please send an email
to <email address hidden> for help (requires membership).

-- You are receiving this email because you are the uploader of the above PPA package.

Revision history for this message
Andreas Smas (andoma) wrote :

FWIW, I've the same problem:

If you want any more info, please yell :)

Rejected:
Unhandled exception processing upload: 'ascii' codec can't encode character u'\xd6' in position 64: ordinal not in range(128)

Format: 1.7
Date: Thu, 16 Oct 2008 19:47:23 +0200
Source: hts-tvheadend
Binary: hts-tvheadend
Architecture: source
Version: 2.1
Distribution: hardy
Urgency: low
Maintainer: Andreas OEman <email address hidden>
Changed-By: Andreas Öman <email address hidden>
Description:
 hts-tvheadend - TV headend for hts-showtime
Changes:
 hts-tvheadend (2.1) hardy; urgency=low
 .
   * HTSP server slightly modified. Now also supports the XBMC HTSP client.
 .
   * tvheadend and showtime went separate ways.
 .
   * tvheadend: Record post-processing added again, run command when a
     recording is done.
 .
   * tvheadend: Fix characterset translation bug introduced in r1902.
Files:
 a0274694847277290685e5d6feaa56b8 508 universe/misc extra hts-tvheadend_2.1.dsc
 68f84976ca82be9e71ec88d3036fd173 4606869 universe/misc extra hts-tvheadend_2.1.tar.gz

===

Changed in soyuz:
status: Incomplete → Confirmed
assignee: Muharem Hrnjadovic (al-maisan) → Julian Edwards (julian-edwards)
Changed in soyuz:
milestone: none → 2.2.7
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Good news people! I think I found the cause of this - it happens when you're uploading an orig.tar.gz file which is already in the PPA, and the error being reported has unicode in it (in this case, the person's name) which triggers a bug somewhere which is trying to convert to ASCII.

Thanks for providing the failing package Lubomír Sedlář, it helped me find the problem.

Changed in soyuz:
status: Confirmed → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit

Fixed in devel r8788.

Changed in soyuz:
status: In Progress → Fix Committed
Revision history for this message
Matej Kovacic (matej-kovacic) wrote :

I try to login to my wiki page: https://wiki.ubuntu.com/MatejKovačič

When I click toLogin, I get info I will be using OpenID. When I try to login, I got this error:

UnicodeEncodeError

'ascii' codec can't encode character u'\u010d' in position 42: ordinal not in range(128)

If you want to report a bug, please save this page and attach it to your bug report.

    * Show debugging information
    * Report bug
    * Visit MoinMoin wiki

Is that conneted to the fact that in URL there are non-english characters? If so, can someone change this?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Matej Kovacic, please file a new bug on the launchpad project, your problem is nothing to do with this one.

Changed in soyuz:
status: Fix Committed → Fix Released
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

Related questions

Remote bug watches

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