{ "id": "168107", "key": "TIMOB-24777", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-06-06T13:49:46.000+0000", "created": "2017-06-06T02:06:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-08-06T17:52:07.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": "Reproduce:\r\n1. Run the attached codes in a Alloy project.\r\n2. Click those two buttons.\r\n3. Check the output.\r\n\r\nProblem:\r\nThe part of URL after # does not get included in the senting URL. The output always like\r\n{code}\r\n Received text: {\"args\":{},\"headers\":{\"Accept\":\"*/*\",\"Accept-Encoding\":\"gzip, deflate\",\"Accept-Language\":\"en-us\",\"Connection\":\"close\",\"Host\":\"httpbin.org\",\"User-Agent\":\"Appcelerator Titanium/6.1.0 (iPhone/10.3; iOS; en_US;)\",\"X-Requested-With\":\"XMLHttpRequest\",\"X-Titanium-Id\":\"c2bbbb9f-5bc7-4761-9111-bca83e6b6d8e\"},\"method\":\"GET\",\"origin\":\"114.253.205.80\",\"url\":\"http://httpbin.org/anything\"}\r\n{code}", "attachment": [ { "id": "62422", "filename": "index.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-06-06T02:06:54.000+0000", "size": 1286, "mimeType": "text/javascript" }, { "id": "62423", "filename": "index.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-06-06T02:06:44.000+0000", "size": 191, "mimeType": "text/xml" } ], "flagged": false, "summary": "iOS: HttpRequests escape URLs with # symbols in them", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 6.1.0", "comment": { "comments": [ { "id": "421085", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The test-case looks invalid for me. What would be expected? That the payload parameter {{url}} include the {{#allTheThings}} suffix? If so, the test-case is not correct, because opening [the URL|http://httpbin.org/anything#allTheThings] in the browser gives the same result as the app. \r\n\r\nI created [another test-case|http://hans-knoechel.de/TIMOB-24777.php#allTheThings] just to ensure, and it also does not print the suffix (both from browser and app). [Here|https://stackoverflow.com/a/940923/5537752] is the reason why:\r\n{quote}\r\nThe main problem is that the browser won't even send a request with a fragment part. The fragment part is resolved right there in the browser. So it's reachable through JavaScript.\r\n\r\nAnyway, you could parse a URL into bits, including the fragment part, using parse_url(), but it's obviously not your case.\r\n{quote}\r\n\r\nThis is not a Titanium issue, so either the backend should be fixed to use proper get-parameters like {{?option=allTheThings}} or preprocess the {{#}} suffix with Javascript (what it's usually used for).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-06T13:49:39.000+0000", "updated": "2017-06-06T13:49:39.000+0000" }, { "id": "440280", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as \"not our bug\". If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:52:07.000+0000", "updated": "2018-08-06T17:52:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }