{ "id": "62106", "key": "TIMOB-1474", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T02:53:50.000+0000", "created": "2011-04-15T02:53:49.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "ios", "network", "url" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:27:42.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

This is on iOS.

\n

say I have a url 'http://localhost:3000/login',\nit'll get escaped wrongly and fail:

\n

[ERROR] Error loading: , Error: Error\nDomain=NSURLErrorDomain Code=-1003 \"A server with the specified\nhostname could not be found.\" UserInfo=0x7c4c830\n{NSErrorFailingURLStringKey=https://localhost%3a3000/login,\nNSErrorFailingURLKey=https://localhost%3a3000/login,\nNSLocalizedDescription=A server with the specified hostname could\nnot be found., NSUnderlyingError=0x7c4e470 \"A server with the\nspecified hostname could not be found.\"}

\n

I removed the : from the usage of\nCFURLCreateStringByAddingPercentEscapes in TiUtils.m and\nNetworkModule.m temporarily for my purposes, though I suppose it\ndoes need to be escaped, just not in that part of the URL.

{html}", "attachment": [], "flagged": false, "summary": "Incorrectly adding percent escapes to URL with a custom port number", "creator": { "name": "andrenavarro", "key": "andrenavarro", "displayName": "Andre Navarro", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andrenavarro", "key": "andrenavarro", "displayName": "Andre Navarro", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125798", "author": { "name": "lukasz", "key": "lukasz", "displayName": "Lukasz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

See this \nticket. I think it is already fixed in latest git.

{html}", "updateAuthor": { "name": "lukasz", "key": "lukasz", "displayName": "Lukasz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:49.000+0000", "updated": "2011-04-15T02:53:49.000+0000" }, { "id": "125799", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Dupe of #1461.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:50.000+0000", "updated": "2011-04-15T02:53:50.000+0000" }, { "id": "410573", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:27:42.000+0000", "updated": "2017-03-09T21:27:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }