#12983: BUrl issues with certain URL strings
------------------------------+------------------------------
Reporter: humdinger | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Network Kit | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
------------------------------+------------------------------
This is hrev50563.
The app "Weather" keeps crashing when changing the location for the
forecast, see attached report.
The crash happens in
[https://github.com/humdingerb/Weather/blob/master/Source/SelectionWindow.cpp#L131
SelectionWindow::_FindId()].
{{{
BUrlRequest* request =
BUrlProtocolRoster::MakeRequest(BUrl(urlString.String()),
&listener);
}}}
The {{{ BUrl(urlString.String()) }}} doesn't appear to result in a valid
BUrl, its UrlString() returns empty.
{{{ urlString.String() }}} returns a url of the format:
{{{
https://query.yahooapis.com/v1/public/yql?q=select+woeid+from+geo.places(1)+where+text+="Munich,+Germany"&format=json
}}}
Looks like BUrl rejects the string. I did work in the past, so I did a
binary search and found out that the regression happened between hrev50357
and hrev50448.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12983>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.