{ "id": "85673", "key": "TIMOB-7504", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-13T17:48:35.000+0000", "created": "2012-01-29T06:39:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-13T17:48:35.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nIn the following snippet, {{autoEncodeUrl}} is not set to false as expected.\r\n\r\nh2. Test Case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar socket = Ti.Network.createHTTPClient({\r\n\tautoEncodeUrl: false\r\n});\r\n\r\nsocket.onload = function() {\r\n\talert(this.location); // You'll see the encoded URL here\r\n\tTi.API.info('this.location: ' + this.location);\r\n};\r\n\r\nsocket.open(\"GET\", \"http://www.bosscube.com/flash/clock.swf?param1=¶m2=%\");\r\nsocket.send();\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=Logcat}\r\n 846 TiApplication I (main) [353,353] Titanium 1.8.1 (2012/01/27 17:31 a24502a)\r\n 846 TiFastDev D (main) [100,453] Enabling Fastdev on port 53208\r\n 846 TiFastDev D (main) [10,463] sent tokens successfully\r\n 846 TiFastDev D (main) [1,464] Fastdev session handshake succesful.\r\n 846 TiApplication I (main) [8,472] Titanium Javascript runtime: v8\r\n 846 TiApplication W (main) [49,521] activity stack is emtpy, unable to get current activity\r\n 846 TiRootActivity I (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n 846 TiApplication W (main) [127,127] activity stack is emtpy, unable to get current activity\r\n 846 TiApplication W (main) [0,127] activity stack is emtpy, unable to get current activity\r\n 846 TiApplication W (main) [3,130] activity stack is emtpy, unable to get current activity\r\n 60 NotificationService W Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@45155df0 in package com.appcelerator.testing10\r\n 60 ActivityManager W setProcessForeground called on unknown pid: 817\r\n 846 TiApplication E (KrollRuntimeThread) [975,1105] APP PROXY: ti.modules.titanium.app.AppModule@44f0cf60\r\n 846 TiAssetHelper D Fetching \"app.js\" with Fastdev...\r\n 846 dalvikvm-heap I Grow heap (frag case) to 2.932MB for 68928-byte allocation\r\n 846 TiHttpClient D (KrollRuntimeThread) [426,1531] Setting ready state to 1\r\n 846 TiRootActivity I (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.testing10.Testing10Activity@44eba558\r\n 60 ActivityManager I Displayed activity com.appcelerator.testing10/.Testing10Activity: 3374 ms (total 3374 ms)\r\n 846 TiHttpClient D (TiHttpClient-1) [1089,1089] Setting ready state to 2\r\n 846 TiHttpClient D (TiHttpClient-1) [1,1090] Setting ready state to 3\r\n 846 TiHttpClient D (TiHttpClient-1) [159,1249] Setting ready state to 4\r\n 846 ALERT I (KrollRuntimeThread) [4,1253] http://www.bosscube.com/flash/clock.swf?param1=¶m2=%EF%BF%BD%EF%BF%BD\r\n 846 TiAPI I this.location: http://www.bosscube.com/flash/clock.swf?param1=¶m2=0.000000E+00FBFBD1.269065E-317FBFBD\r\n{code}\r\n\r\nh2. Workaround\r\n\r\nSet {{autoEncodeUrl}} to false after creation.\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar socket = Ti.Network.createHTTPClient();\r\n\r\nsocket.autoEncodeUrl = false;\r\n\r\nsocket.onload = function() {\r\n alert(this.location); // URL is now unencoded.\r\n};\r\n\r\nsocket.open(\"GET\", \"http://www.bosscube.com/flash/clock.swf?param1= ¶m2=%\");\r\nsocket.send();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Network.createHTTPClient - properties not initialized at creation", "creator": { "name": "bosscube", "key": "bosscube", "displayName": "Justin Szczurowski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bosscube", "key": "bosscube", "displayName": "Justin Szczurowski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Mobile 1.8.1, 1.9.0 v20120128124634\r\n* Android 2.2\r\n* v8\r\n* emulator\r\n\r\n", "comment": { "comments": [ { "id": "181028", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this ticket.\r\n\r\nIn order for me to escalate it to the core team, please would you complete the environment field?\r\n\r\nAlso, a console log of the test case in action would be appreciated.\r\n\r\nPlease review the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] when raising tickets, and always start with the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template] to ensure they follow the recommended format.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-30T03:49:40.000+0000", "updated": "2012-01-30T03:49:40.000+0000" }, { "id": "421878", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed, lack of information and lack of progress. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-13T17:48:35.000+0000", "updated": "2017-06-13T17:48:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }