requestsync crashed with ValueError in validate_param_values()

Bug #418802 reported by Baptiste Mille-Mathias
58
This bug affects 6 people
Affects Status Importance Assigned to Milestone
python-wadllib (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

I was requesting sync of latest nemiver with "requestsync -s nemiver karmic"

ProblemType: Crash
Architecture: i386
Date: Tue Aug 25 21:01:01 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/requestsync
InterpreterPath: /usr/bin/python2.6
Package: ubuntu-dev-tools 0.75
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/requestsync -s nemiver karmic
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 LANGUAGE=fr_FR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-7.27-generic
PythonArgs: ['/usr/bin/requestsync', '-s', 'nemiver', 'karmic']
SourcePackage: ubuntu-dev-tools
Title: requestsync crashed with ValueError in validate_param_values()
Uname: Linux 2.6.31-7-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse kvm lpadmin plugdev video

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :
tags: removed: need-duplicate-check
Adrien Cunin (adri2000)
visibility: private → public
Revision history for this message
Adrien Cunin (adri2000) wrote :

Same here.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Bienia (geser) wrote :

This seems to be a bug in the new python-wadllib package.

affects: ubuntu-dev-tools (Ubuntu) → python-wadllib (Ubuntu)
Revision history for this message
Kees Cook (kees) wrote :

Notes from IRC:

19:27 < leonardr> kees, sure. the bug is caused by wadllib being smart about escaping strings, and launchpadlib/lazr.restfulclient not being smart about what it tells wadllib to escape
19:27 < leonardr> upgrade wadllib without making launchpadlib smart, and you'll get this error
19:28 < leonardr> use the launchpadlib and lazr.restfulclient currently in trunk, and the problem should be solved

Changed in python-wadllib (Ubuntu):
importance: Undecided → Critical
milestone: none → karmic-alpha-6
Revision history for this message
James Westby (james-w) wrote :

Should be fixed with the launchpadlib upload of 5 minutes ago and
lazr.restfulclient getting out of NEW.

Thanks,

James

Changed in python-wadllib (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Note that the new python-launchpadlib does not build because of the python-oauth build dependency, which is in universe and debated. This also completely breaks the apport retracers unfortunately.

Revision history for this message
James Westby (james-w) wrote :

Un-fixing, as launchpadlib is dep-wait on python-oauth, as it's MIR is
not approved, see bug 408878.

Thanks,

James

Changed in python-wadllib (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

Is there a workaround? This is pretty urgent for me, since it causes crash reports to become totally useless after very few days.

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, I just put the new p-launchpadlib into my retracer PPA (https://launchpad.net/~pitti/+archive/apport-retracer) and have the retracers use that, so it's fine for the retracers for now. With current karmic and p-launchpadlib 1.5.1 apport's launchpad backend test suite succeeds again.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 418802] Re: requestsync crashed with ValueError in validate_param_values()

On Thu Aug 27 08:39:40 UTC 2009 Martin Pitt wrote:
> Is there a workaround? This is pretty urgent for me, since it causes
> crash reports to become totally useless after very few days.

I'm not sure if there is a code workaround. We could downgrade python-waddlib
until the oauth issue is done.

Thanks,

James

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This is pretty urgent for the security team as well. It breaks nearly all of our scripts (including our publication scripts). An effective workaround is installing python-wadllib_0.1~bzr7-0ubuntu4_all.deb from jaunty.

Revision history for this message
Bryce Harrington (bryce) wrote :

python-launchpadlib (1.5.1-0ubuntu1) is available in Karmic and seems to resolve the issue quite fine.

Changed in python-wadllib (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Nope, still seeing the issue. Also tried a ppa with backported launchpadlib and still see it:

https://edge.launchpad.net/~tsimpson/+archive/launchpadlib

Changed in python-wadllib (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Well I'm using lucid with 1.5.5-1 and it works fine. Which command fails for you exactly?

python-launchpadlib (1.5.5-1) unstable; urgency=low

  * New upstream version.
  * debian/control:
    - Tighten python-lazr.restfulclient dependency to be >= 0.9.11.

 -- Luca Falavigna <email address hidden> Wed, 17 Feb 2010 21:49:35 +0100

Revision history for this message
Bryce Harrington (bryce) wrote :

here's the backtrace:

 ERROR: Failed to update bug 493645
New status was: Confirmed
0 bugs updated
Traceback (most recent call last):
  File "/home/bryce/src/Arsenal/arsenal/contrib/process-incomplete-bugs.py", line 88, in <module>
    bugtask.transitionToStatus(status = new_status)
  File "/usr/local/lib/python2.6/dist-packages/launchpadlib-1.0.1-py2.6.egg/launchpadlib/resource.py", line 344, in __call__
    **args)
  File "/usr/lib/python2.6/dist-packages/wadllib/application.py", line 591, in build_representation
    media_type, param_values, **kw_param_values)
  File "/usr/lib/python2.6/dist-packages/wadllib/application.py", line 690, in representation
    return definition.bind(param_values, **kw_param_values)
  File "/usr/lib/python2.6/dist-packages/wadllib/application.py", line 801, in bind
    params, param_values, **kw_param_values)
  File "/usr/lib/python2.6/dist-packages/wadllib/application.py", line 169, in validate_param_values
    param_values[name], name, '", "'.join(options)))
ValueError: Invalid value '"Confirmed"' for parameter 'status': valid values are: "New", "Incomplete", "Invalid", "Won't Fix", "Confirmed", "Triaged", "In Progress", "Fix Committed", "Fix Released", "Unknown"

Revision history for this message
James Westby (james-w) wrote :

Hi Bryce,

You appear to be using

  "/usr/local/lib/python2.6/dist-packages/launchpadlib-1.0.1-py2.6.egg/launchpadlib/resource.py"

remove your /usr/local install and all should work fine again.

Thanks,

James

Changed in python-wadllib (Ubuntu):
status: Triaged → 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

Remote bug watches

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