{ "id": "131268", "key": "ALOY-1042", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-28T16:33:59.000+0000", "created": "2014-06-04T23:33:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.3.0", "qe-manualtest" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15759", "description": "Alloy 1.3.1", "name": "Alloy 1.3.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2014-08-28T21:10:57.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h5. Problem description\r\nImages included into Themes/Assets could not be correctly displayed when switching between different OS using the same theme.\r\n\r\nAlso reproducible with 1.3.1.GA so is not a regression.\r\n\r\n(Note: using 1.4.0-beta , regression bug ALOY-1035 is present).\r\n\r\nh5. Steps to reproduce\r\nSample code for ALOY-577 can be used: https://github.com/appcelerator/alloy/tree/1_4_X/test/apps/testing/ALOY-577\r\n\r\n1. Import sample code in a new empty project and make sure no 'build' or 'resources' folder are present.\r\n\r\n2. Build/run for MobileWeb\r\nResult: App is built and runs fine. The \"themes//assets\" image is applied correctly. See screenshot1.png)\r\n\r\n3. Build/run for Android\r\nResult: App is built and runs. However, \"themes//assets image\" is not applied and the image included in the app/assets is used (see screenshot2.png)\r\nExpected result: the image included in the \"themes//assets\" should be used.\r\n\r\n4. Clean the project and run on Android\r\nResult: app runs and \"themes//assets\" image is now displayed correctly. See screenshot3.png\r\n\r\n5. Edit config.json and change the theme (in the example , from 'red' to 'blue'). Build/run on Android.\r\nResult: app runs and \"themes//assets\" image is displayed correctly. See screenshot4.png\r\n\r\n6. Build/run on MobileWeb\r\nResult: the theme style is applied correctly (so the background color is blue), however the image displayed is the wrong one, still displaying the one relative to the previously used theme ('red'). See screenshot5.png\r\n\r\nh5. Additional note\r\nFrom the testing, it seems that the bug is reproducible when the images are also present in the \"app/assets\" folder.\r\n\r\n7. Remove 'red.png' and 'blue.png' images from \"app/assets\" folder and repeat steps from 1 to 6.\r\nResult: in this case the \"app/themes//assets\" images are always displayed correctly. ", "attachment": [ { "id": "50778", "filename": "CorrectAssetMobileWeb.png", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T11:28:41.000+0000", "size": 105434, "mimeType": "image/png" }, { "id": "48625", "filename": "screenshot1.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T23:33:07.000+0000", "size": 68771, "mimeType": "image/png" }, { "id": "48631", "filename": "screenshot2.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T23:43:25.000+0000", "size": 94618, "mimeType": "image/png" }, { "id": "48632", "filename": "screenshot3.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T23:43:25.000+0000", "size": 102864, "mimeType": "image/png" }, { "id": "48633", "filename": "screenshot4.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T23:43:25.000+0000", "size": 81611, "mimeType": "image/png" }, { "id": "48634", "filename": "screenshot5.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T23:43:25.000+0000", "size": 40419, "mimeType": "image/png" }, { "id": "50777", "filename": "WrongAssetMobileWeb.png", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T11:28:41.000+0000", "size": 80710, "mimeType": "image/png" } ], "flagged": false, "summary": "Themes/Assets images not always correctly applied when using same theme for multiple platforms", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.3.0.v20140603152512 and 3.2.3.GA\r\nAlloy 1.4.0-alpha4 (from current 1_4_X branch) and 1.3.1.GA\r\nAppcelerator Studio 3.3.0.201405271647\r\nCLI 3.3.0-beta2 and 3.2.3.GA", "closedSprints": [ { "id": 142, "state": "closed", "name": "2014 Sprint 12 Alloy", "startDate": "2014-06-09T16:00:25.715Z", "endDate": "2014-06-23T16:00:00.000Z", "completeDate": "2014-06-23T14:35:50.386Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "308213", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/441\r\nTest app: https://github.com/appcelerator/alloy/tree/1_4_X/test/apps/testing/ALOY-577\r\n\r\nFunctional Test:\r\n\r\n 1. Follow the steps mentioned above\r\n 2. Verify theme asset images are displayed correctly\r\n\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-06-10T07:34:31.000+0000", "updated": "2014-06-10T07:34:31.000+0000" }, { "id": "308475", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Tested and merged the PR. \r\n\r\nOne note, I had to modify the ALOY-577 sample app to remove the leading slash from the image paths in order for the app to work on MobileWeb. With the slash present, the resulting web page was looking to http://localhost/red.png for the red image, for example.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-11T16:07:52.000+0000", "updated": "2014-06-11T16:07:52.000+0000" }, { "id": "320322", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening the issue just for confirmation:\r\nTested with environment:\r\nAppcelerator Studio: 3.4.0.201408251831\r\nSdk:3.4.0.v20140825141714\r\nalloy:1.5.0-dev\r\ntitanium:3.4.0-dev\r\ntitanium-code-processor:1.1.1\r\nacs:1.0.16\r\nnpm:1.3.2\r\nOS:Maverick(10.9.4)\r\nxcode: Xcode6Beta6\r\nDevice:Nexus7(v4.3)\r\n\r\nFollowed above steps:\r\n\r\n1. Import sample code in a new empty project and make sure no 'build' or 'resources' folder are present.\r\n\r\n2. Build/run for MobileWeb\r\nResult: App is built and runs fine. Getting screenshot1.png as expected.\r\n \r\n3. Build/run for Android\r\nResult: App is built and runs. Getting screenshot 3.png as expected.\r\n\r\n\r\n4. Clean the project and run on Android\r\nResult: App is built and runs. Getting screenshot 3.png as expected.\r\n\r\n\r\n5. Edit config.json and change the theme (in the example , from 'red' to 'blue'). Build/run on Android.\r\nResult: App is built and runs. Getting screenshot 4.png as expected.\r\n\r\n6. Build/run on MobileWeb\r\nResult: App is built and runs. Getting WrongAssetMobileWeb.png which is not expected.\r\nBut on cleaning and building the app gain on mobileWeb. Getting CorrectAssetMobileWeb.png as expected which is correct.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T11:27:55.000+0000", "updated": "2014-08-26T11:29:20.000+0000" }, { "id": "320545", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "master: https://github.com/appcelerator/alloy/pull/530\r\n1_5_X: https://github.com/appcelerator/alloy/pull/531\r\n\r\n[~skypanther] Could you take a look? Thank you! ", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-27T08:57:42.000+0000", "updated": "2014-08-27T08:57:42.000+0000" }, { "id": "320823", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Works now in my testing. PRs merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-28T16:33:59.000+0000", "updated": "2014-08-28T16:33:59.000+0000" }, { "id": "320877", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.4.0.201408270900\r\nTitanium SDK build: 3.4.0.v20140827165712 \r\nTitanium CLI, build: 3.4.0-dev\r\nAlloy: 1.5.0-dev\r\nAndroid Simulator 4.4.2\r\nAndroid Device S5 (4.4.2)\r\nMobileweb in Chrome 36.0.1985.135 on Samsung Galaxy S5\r\n\r\nFollowed the steps in the description;\r\n\r\n1. Imported sample code into a new empty project and made sure no 'build' or 'resources' folder were present.\r\n\r\n2. Build/run for MobileWeb \r\nResult: App is built and runs fine. Getting screenshot1.png as expected.\r\n\r\n3. Build/run for Android \r\nResult: App is built and runs. Getting screenshot 3.png as expected.\r\n\r\n4. Clean the project and run on Android \r\nResult: App is built and runs. Getting screenshot 3.png as expected.\r\n\r\n5. Edit config.json and change the theme (in the example , from 'red' to 'blue'). Build/run on Android. \r\nResult: App is built and runs. Getting screenshot 4.png as expected.\r\n\r\n6. Build/run on MobileWeb \r\nResult: App is built and runs. Getting CorrectAssetMobileWeb.png as expected.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-08-28T21:10:16.000+0000", "updated": "2014-08-28T21:10:16.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }