Updated Branches: refs/heads/master 32e63db3c -> 639f229e1
serving css files withhout authenticating Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/d74440a7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/d74440a7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/d74440a7 Branch: refs/heads/master Commit: d74440a71f180a0f914211872ad93886e7b02ab6 Parents: 9e1f714 Author: Pradeep Fernando <[email protected]> Authored: Mon Feb 3 16:04:51 2014 +0530 Committer: Pradeep Fernando <[email protected]> Committed: Mon Feb 3 16:04:51 2014 +0530 ---------------------------------------------------------------------- .../console/controllers/router.jag | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/d74440a7/components/org.apache.stratos.manager.console/console/controllers/router.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/controllers/router.jag b/components/org.apache.stratos.manager.console/console/controllers/router.jag index baa7832..04a4153 100755 --- a/components/org.apache.stratos.manager.console/console/controllers/router.jag +++ b/components/org.apache.stratos.manager.console/console/controllers/router.jag @@ -11,6 +11,15 @@ var file = require('/modules/file.js'); var sm=securityModule.cached(); + // + var matcher=new URIMatcher(request.getRequestURI()); + + // we stream css and other theme related resources found under themes directory. + if (matcher.match('/{context}/themes/{+file}')) { + elements = matcher.elements(); + file.send('/themes/' + elements.file); + return; + } //This will short circuit the handling of the requests var passed=sm.check(session); @@ -45,14 +54,7 @@ } - var matcher=new URIMatcher(request.getRequestURI()); - // we stream css and other theme related resources found under themes directory. - if (matcher.match('/{context}/themes/{+file}')) { - elements = matcher.elements(); - file.send('/themes/' + elements.file); - return; - } var patterns=['/{context}','/{context}/','/{context}/{+suffix}']; if(isMatchingPattern(patterns,matcher)){
