{ "id": "123529", "key": "AC-1990", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-01-19T22:04:20.000+0000", "created": "2013-12-10T08:52:47.000+0000", "labels": [ "config", "node-acs" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-08T07:40:55.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": [], "description": "I had some filters defined in my app working well until I created a new one with an uppercase letter. This new filter is not executed at all.\r\n\r\nExample:\r\n{code}\r\n{\r\n \"routes\":\r\n [\r\n {\"path\": \"/\", \"callback\": \"application#index\"},\r\n {\"path\": \"/login\", \"method\":\"post\", \"callback\": \"useraccess#login\"},\r\n {\"path\": \"/logout\", \"callback\": \"useraccess#logout\"},\r\n {\"path\": \"/admin\", \"callback\": \"application#home\"},\r\n {\"path\": \"/messages\", \"callback\": \"messages#list\"},\r\n {\"path\": \"/changePwd\", \"callback\": \"users#changePassword\"}\r\n ],\r\n \"filters\":\r\n [\r\n {\"path\": \"/admin\", \"callback\": \"session_filter#validateAdmin\"},\r\n {\"path\": \"/admin/*\", \"callback\": \"session_filter#validateAdmin\"},\r\n {\"path\": \"/logout\", \"callback\": \"session_filter#validateSession\"},\r\n {\"path\": \"/changePwd\", \"callback\": \"session_filter#validateSession\"},\r\n {\"path\": \"/messages\", \"callback\": \"session_filter#validateSession\"},\r\n {\"path\": \"/messages/*\", \"callback\": \"session_filter#validateSession\"}\r\n ],\r\n}\r\n{code}\r\n\r\nWith that code, only the filter *{\"path\": \"/changePwd\", \"callback\": \"session_filter#validateSession\"}* will not be executed.\r\n\r\nIf I change it for *{\"path\": \"/changepwd\", \"callback\": \"session_filter#validateSession\"}* then it works (even leaving the route with the uppercase).\r\n\r\nThis stuck me for a lot of hours until I notice that uppercase letter, making a lot of different test this the validate function instead with the config.json.\r\n\r\nIn the docs there is no reference to this, so I suppose it is an annoying bug.", "attachment": [], "flagged": false, "summary": "ACS: Filters not executing with uppercase routes", "creator": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "subtasks": [], "reporter": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "environment": "Windows 7 64 bits\r\nTitanium 3.1.3GA", "comment": { "comments": [ { "id": "288740", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI tested this with my sample code. I can’t reproduce this issue. It’s working as expected. I did not notice the case sensitive nature of the filters. If you have different test case that reproduces the issue, please post your sample here. For more information please visit: http://docs.appcelerator.com/cloud/latest/#!/guide/node\r\n\r\nh5. Test Environment\r\nMac OS X 10.8.5\r\nTi SDK 3.2.0.GA\r\n\r\n\r\nh5. Test Code\r\n\r\n\r\nlink: https://github.com/csemrm/NodeACSTest\r\n\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-18T17:01:20.000+0000", "updated": "2014-01-19T01:06:51.000+0000" }, { "id": "288760", "author": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "body": "Hi Mostafizur.\n\nThis error only works in Ti 3.1.3GA, I've tested again the code in 3.1.3 and the error is still there. I suppose it is fixed in 3.2.0GA.\nThank you for your time.", "updateAuthor": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "created": "2014-01-19T11:10:11.000+0000", "updated": "2014-01-19T11:10:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }