[TIMOB-1474] Incorrectly adding percent escapes to URL with a custom port number
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2011-04-15T02:53:50.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | ios, network, url |
| Reporter | Andre Navarro |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:53:49.000+0000 |
| Updated | 2017-03-09T21:27:42.000+0000 |
Description
This is on iOS.
say I have a url 'http://localhost:3000/login', it'll get escaped wrongly and fail:
[ERROR] Error loading: , Error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x7c4c830 {NSErrorFailingURLStringKey=https://localhost%3a3000/login, NSErrorFailingURLKey=https://localhost%3a3000/login, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x7c4e470 "A server with the specified hostname could not be found."}
I removed the : from the usage of CFURLCreateStringByAddingPercentEscapes in TiUtils.m and NetworkModule.m temporarily for my purposes, though I suppose it does need to be escaped, just not in that part of the URL.
See this https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/1461"> ticket. I think it is already fixed in latest git.
Dupe of #1461.
Closing ticket as duplicate.