{ "id": "168658", "key": "TIMOB-24907", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-30T06:13:42.000+0000", "created": "2017-06-28T19:19:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-07-27T13:43:38.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "A high number of jenkins runs have recently failed due to the same test, across both 8.1 and 10\r\n\r\n- Investigate the failures (try and find out when it started if possible)\r\n- Isolate the cause\r\n- Fix if an SDK problem, revisit the test if a test problem (as this seems to be new probably the former)\r\n\r\n*Do not skip the test*\r\n\r\n\r\n\r\nhttps://github.com/appcelerator/titanium_mobile_windows/blob/9009ed6467bbba7098d8efceb57ff45ad2e14a03/Examples/NMocha/src/Assets/ti.blob.test.js#L68\r\n\r\nhttps://jenkins.appcelerator.org/blue/organizations/jenkins/titanium-sdk%2Ftitanium_mobile_windows/detail/PR-1008/15/tests", "attachment": [], "flagged": false, "summary": "Windows: Investigate Ti.Blob mimetype failures on jenkins", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 917, "state": "closed", "name": "2017 Sprint 13 SDK", "startDate": "2017-06-18T16:14:35.902Z", "endDate": "2017-07-02T16:14:00.000Z", "completeDate": "2017-07-06T23:53:22.101Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "423135", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Test code\r\n\r\n{code}\r\nvar blob = Ti.Filesystem.getFile('app.js').read();\r\nconsole.log(blob.mimeType)\r\nconsole.log(blob.mimeType.length)\r\nconsole.log(blob.mimeType)\r\nconsole.log(blob);\r\n{code}\r\n\r\nOn Windows 10 emulator (same on device just minfiied JS)\r\n{code}\r\n[INFO] text/javascript\r\n[INFO] 15\r\n[INFO] text/javascript\r\n[INFO] var blob = Ti.Filesystem.getFile('app.js').read();\r\n[INFO] console.log(blob.mimeType)\r\n[INFO] console.log(blob.mimeType.length)\r\n[INFO] console.log(blob.mimeType)\r\n[INFO] console.log(blob);\r\n{code}\r\n\r\nOn Windows 10 local\r\n\r\n{code}\r\n[INFO]\r\n[INFO] 0\r\n[INFO]\r\n[INFO] var blob = Ti.Filesystem.getFile('app.js').read();\r\n[INFO] console.log(blob.mimeType)\r\n[INFO] console.log(blob.mimeType.length)\r\n[INFO] console.log(blob.mimeType)\r\n[INFO] console.log(blob);\r\n{code}\r\n\r\nDebugging through VS shows that ContentType here https://github.com/appcelerator/titanium_mobile_windows/blob/9009ed6467bbba7098d8efceb57ff45ad2e14a03/Source/Titanium/src/Blob.cpp#L66 is returning null", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-29T12:50:30.000+0000", "updated": "2017-06-29T12:50:30.000+0000" }, { "id": "423136", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "If I use an image I get the mimetype as expected, I propose that we do this rather than using app.js\r\n\r\n{code}\r\nblob = Ti.Filesystem.getFile('Logo.png').read();\r\nconsole.log(blob.mimeType)\r\nconsole.log(blob.mimeType.length)\r\nconsole.log(blob.mimeType)\r\n[INFO] image/png\r\n[INFO] 9\r\n[INFO] image/png\r\n[INFO] \r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-29T12:52:52.000+0000", "updated": "2017-06-29T12:52:52.000+0000" }, { "id": "423139", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master https://github.com/appcelerator/titanium_mobile_windows/pull/1029", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-29T13:37:04.000+0000", "updated": "2017-06-29T13:37:04.000+0000" }, { "id": "423872", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "6.1.2 backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1038", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T02:17:58.000+0000", "updated": "2017-07-11T02:17:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }