Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysterious exception using deadbolt.restrict tag #10

Open
tazmaniax opened this issue May 28, 2012 · 0 comments
Open

Mysterious exception using deadbolt.restrict tag #10

tazmaniax opened this issue May 28, 2012 · 0 comments

Comments

@tazmaniax
Copy link

I've got a mysterious exception with the deadbold.restrict tag. It seemed to work when I had an authenticated user that had the 'admin' role but once I had signed out the following exception occurs when I try to access that page. I wonder if this could be related to the fact that I'm using Faster Groovy Templates. The tag itself looks fine and the stack trace unfortunately doesn't allude to what is causing the redirect.

    #{deadbolt.restrict roles:[['admin']]}
    #{a @CRUD.index()}Admin#{/a}
    #{/deadbolt.restrict}

15:29:18,326 [play-thread-1] ERROR ~

@6afp74nce
Internal Server Error (500) for request GET /

Template execution error (In {module:deadbolt-1.5.3}/app/views/tags/deadbolt/restrict.html around line 1)
Execution error occured in template {module:deadbolt-1.5.3}/app/views/tags/deadbolt/restrict.html. Exception raised was Redirect : null.

play.exceptions.TemplateExecutionException
at play.modules.gtengineplugin.GTTemplate.renderGTTemplate(GTTemplate.java:111)
at play.modules.gtengineplugin.GTTemplate.internalGTRender(GTTemplate.java:75)
at play.modules.gtengineplugin.GTTemplate.internalRender(GTTemplate.java:54)
at play.modules.gtengineplugin.GTTemplate.render(GTTemplate.java:128)
at play.mvc.results.RenderTemplate.(RenderTemplate.java:24)
at play.mvc.Controller.renderTemplate(Controller.java:660)
at play.mvc.Controller.renderTemplate(Controller.java:640)
at play.mvc.Controller.render(Controller.java:695)
at controllers.Home.index(Home.java:62)
at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:548)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:502)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:478)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:473)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
at Invocation.HTTP Request(Play!)
Caused by: play.mvc.results.Redirect
at {module:deadbolt-1.5.3}/app/views/tags/deadbolt/restrict.html.(line:1)
at play.template2.GTJavaBase.internalRenderTemplate(GTJavaBase.java:124)
at play.modules.gtengineplugin.gt_integration.GTJavaBase1xImpl.internalRenderTemplate(GTJavaBase1xImpl.java:82)
at play.template2.GTJavaBase.invokeTagFile(GTJavaBase.java:252)
at /app/views/uis/SignOut.html.(line:13)
at play.template2.GTJavaBase.internalRenderTemplate(GTJavaBase.java:124)
at play.modules.gtengineplugin.gt_integration.GTJavaBase1xImpl.internalRenderTemplate(GTJavaBase1xImpl.java:82)
at play.template2.compile.GTInternalFastTags.tag_include(GTInternalFastTags.java:118)
at /app/views/Home/index.html.(line:62)
at play.template2.compile.GTInternalFastTags.tag_set(GTInternalFastTags.java:64)
at play.template2.GTJavaBase.internalRenderTemplate(GTJavaBase.java:124)
at play.modules.gtengineplugin.gt_integration.GTJavaBase1xImpl.internalRenderTemplate(GTJavaBase1xImpl.java:82)
at play.template2.GTJavaBase.renderTemplate(GTJavaBase.java:97)
at play.modules.gtengineplugin.GTTemplate.renderGTTemplate(GTTemplate.java:93)
... 14 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant