Webservice treats named operation arguments as the wrong type
Bug #304670 reported by
William Grant
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Leonard Richardson |
Bug Description
Webservice named operations have their arguments mistreated. I discovered this with IDistribution.
I can also ask for Ubuntu 8.0399999999999991 using IDistribution.
IProductSeries.
Changed in launchpad-foundations: | |
assignee: | nobody → leonardr |
importance: | Undecided → High |
milestone: | none → 2.1.12 |
status: | New → Triaged |
Changed in launchpad-foundations: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
The problem is caused on the server side where name_or_version is deserialized as a JSON object. TextField fields in query data shouldn't be JSON deserialized; they should just be treated as strings.
A workaround: quote '8.10' as '"8.10"'. Then it'll get deserialized into a string.