You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arguments denoted as BOOLEAN in the API spec are parsed as strings in
the argument checking. Make the BOOLEAN argument type more flexible by
allowing bool objects in addition to strings. FixesGENI-NSF#394,
SLICE_EXPIRED caused a server error when a JSON boolean was passed.
I was able to verify this issue with client.py. The BOOLEAN parsing in ArgumentCheck.py required the value to be in the set ['t', 'f', 'true', 'false']. It now allows values of type bool as well.
A SLICE lookup call with both a match on SLICE_URN, and a match on "SLICE_EXPIRED: false", causes a server error.
Below is an example of the problem.
Request "lookup" call:
Server Reply:
I guess the server is expecting a string that contains the text "false", but a boolean is given. However, the API requires a boolean here.
The text was updated successfully, but these errors were encountered: