Parameters are not JSON-encoded in HTTP requests generated by launchpadlib
Bug #305134 reported by
Abel Deuring
This bug report is a duplicate of:
Bug #304670: Webservice treats named operation arguments as the wrong type.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
New
|
Undecided
|
Unassigned |
Bug Description
The calls
Launchpadlib(
Launchpadlib(
result in identical queries:
https:
The server interprets this as name=None , which is correct for the first client call, but obviously wrong for the second call.
The call devices(
Calls like method(
To post a comment you must log in.
Abel Deuring schrieb: ...).hwdb. devices( name='null' ) ...).hwdb. devices( name=None) hostname> /+hwdb? ws.op=drivers& name=null
> Public bug reported:
>
> The calls
>
> Launchpadlib(
> Launchpadlib(
>
> result in identical queries:
>
> https:<
>
> The server interprets this as name=None , which is correct for the first
> client call, but obviously wrong for the second call.
sigh, that should have been:
which is correct for the _second_ client call, but obviously wrong for
the _first_ call.
> name='null' ) should generate a query like %22null% 22" parameter= 'true') or method( parameter= 'false' ) result
> The call devices(
> "...name=
>
> Calls like method(
> in a similar problem: The server interprets this as parameter=True resp.
> parameter=False.
>
> ** Affects: launchpadlib
> Importance: Undecided
> Status: New
>