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
OpenRasta will assign NULL to x if the URL parameter "x" is not present in HTTP GET.
But if "x" is present, but empty as in "http://host/path?x=", OpenRasta will not detect "x" as empty - instead it fails to convert the empty string value of "x" to an integer and the result is that OpenRasta fails to match the method and yields the message "None of the operations had members that could be matches against the uri parameters: ..."
It can be argued that, yes, the empty string cannot be converted to integer - but you could also argue that it is a reasonable special case that makes your client implementation simpler (which IMHO is a good thing).
This is experienced in 2.5.2001 and may be changed in later versions of OpenRasta.
The text was updated successfully, but these errors were encountered:
Thanks for that!
i think we switched to optional by default for querystring values in 2.1 or 2.5, so it'd make sense that with emtpy values, we would initialise with the default for that datatype.
I think it'd make sense to allow empty string for nullables without causing an error
Given a handler like this:
registered with an URI like this:
OpenRasta will assign NULL to
x
if the URL parameter "x" is not present in HTTP GET.But if "x" is present, but empty as in "http://host/path?x=", OpenRasta will not detect "x" as empty - instead it fails to convert the empty string value of "x" to an integer and the result is that OpenRasta fails to match the method and yields the message "None of the operations had members that could be matches against the uri parameters: ..."
It can be argued that, yes, the empty string cannot be converted to integer - but you could also argue that it is a reasonable special case that makes your client implementation simpler (which IMHO is a good thing).
This is experienced in 2.5.2001 and may be changed in later versions of OpenRasta.
The text was updated successfully, but these errors were encountered: