{ "id": "62019", "key": "TIMOB-1387", "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": [ { "id": "11362", "description": "Mobile 1.8.0 M09", "name": "Sprint 2011-30", "archived": true, "released": true, "releaseDate": "2011-08-01" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:51:09.000+0000", "created": "2011-04-15T02:51:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:53:20.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}

Here some code. Worked fine since yesterday.

\r\n

@@@xhrBOCall.onerror = BO_Call_error; xhrBOCall.onload =\r\nBO_Call_success;
\r\nxhrBOCall.validateSecureCertificate = false;
\r\nxhrBOCall.open(strHttpMethod,strURL);
\r\n(xhrBOCall); xhrBOCall.send(dataToSend);

\r\n
\r\n\r\nIt returns error:\r\nDomain=ASIHTTPRequestErrorDomain Code=1...\r\nwhich I can't copy because since today Ti.API.info not working...\r\nI use SDK4.0.1 for iPhone.\r\n
{html}", "attachment": [ { "id": "17978", "filename": "app.js", "author": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:04.000+0000", "size": 1185, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "XHR with self signed certificate not working since yesterday", "creator": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125539", "author": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

logging probably the same as #1380

{html}", "updateAuthor": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:05.000+0000", "updated": "2011-04-15T02:51:05.000+0000" }, { "id": "125540", "author": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've the same issue. Getting the following error on iOS:

\n

{\"source\":{},\"type\":\"error\",\"error\":\"Error\nDomain=ASIHTTPRequestErrorDomain Code=1 \\\"A connection failure\noccurred: SSL problem (possibly a bad/expired/self-signed\ncertificate)\\\" UserInfo=0xf01f1d0 {NSUnderlyingError=0xf009780\n\\\"The operation couldn’t be completed. (OSStatus error\n-9807.)\\\", NSLocalizedDescription=A connection failure occurred:\nSSL problem (possibly a bad/expired/self-signed\ncertificate)}\"}

\n

Used the same code as Marko:
\nxhr.validateSecureCertificate = false;\nxhr.setTimeout(200000);\nxhr.open(\"GET\",url); xhr.send({});

\n

This error occurs on iOS simulator and on iOS devices. It works\non Android.

{html}", "updateAuthor": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:05.000+0000", "updated": "2011-04-15T02:51:05.000+0000" }, { "id": "125541", "author": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I tested it using the latest (nightly) build

{html}", "updateAuthor": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:05.000+0000", "updated": "2011-04-15T02:51:05.000+0000" }, { "id": "125542", "author": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

attached a simple example to reproduce this error.

\n

@jhaynie can you have a look at this issue?

{html}", "updateAuthor": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:06.000+0000", "updated": "2011-04-15T02:51:06.000+0000" }, { "id": "125543", "author": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@Marco it works when setting it directly as a param on XHR\ncreation:

\n

var xhr =\nTitanium.Network.createHTTPClient({validatesSecureCertificate:\nfalse});

\n

Maybe it helps you. Nevertheless it should be fixed or mentioned\nin documentation that this property has to be set on creation. I\nthink it is also not disabled in Simulator as described in\ndocs.

{html}", "updateAuthor": { "name": "jicksteen", "key": "jicksteen", "displayName": "Jick Steen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:06.000+0000", "updated": "2011-04-15T02:51:06.000+0000" }, { "id": "125544", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Provided app.js demonstrates the problem. Persists, slating for\n1.7.0.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:51:06.000+0000", "updated": "2011-04-15T02:51:06.000+0000" }, { "id": "160541", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Validated that this issue is already resolved. Probably fixed in 1.7.2 but marking official fix-version as 1.8.0.\n\nTested iPhone 4.3.3 sim (Lion)/iPod 4GT iOS 4.3.3.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-25T16:48:47.000+0000", "updated": "2011-07-25T16:48:47.000+0000" }, { "id": "164008", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110819142548\niPhone 4.3.4\niPad2 4.3.2\nMotorola Xoom 3.2\nNexus One 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T10:13:34.000+0000", "updated": "2011-08-25T10:13:34.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }