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

Invited user gets error 500 #195

Closed
gkiko opened this Issue Jul 2, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@gkiko
Collaborator

gkiko commented Jul 2, 2016

Steps to reproduce:

  1. log in as admin and send invitation
  2. open invitation link
  3. fill input fields so that they don't match or their length < 6

Result:

ERROR org.grails.web.errors.GrailsExceptionResolver - CannotRedirectException occurred when processing request: [POST] /invite/setPassword - parameters:
password: asd
passwordRepeat: asd
uuid: a06ed72b-efe7-4ff8-b994-23d90779814d
Cannot issue a redirect(..) here. A previous call to redirect(..) has already redirected the response.. Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
    at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: grails.web.mapping.mvc.exceptions.CannotRedirectException: Cannot issue a redirect(..) here. A previous call to redirect(..) has already redirected the response.
    at grails.web.mapping.ResponseRedirector.redirect(ResponseRedirector.groovy:66)
    at grails.artefact.controller.support.ResponseRedirector$Trait$Helper.redirect(ResponseRedirector.groovy:120)
    at grails.artefact.Controller$Trait$Helper.redirect(Controller.groovy:241)
    at streama.InviteController.setPassword(InviteController.groovy:24)
    ... 6 common frames omitted

and user gets {"message":"Internal server error","error":500}

dularion added a commit that referenced this issue Jul 2, 2016

@robsonolivesa

This comment has been minimized.

Show comment
Hide comment
@robsonolivesa

robsonolivesa Jul 3, 2016

I am get this error (Internal Server Error 500) after run java -Dgrails.env=prod -jar streama-1.0.4.war. Is the same error?

robsonolivesa commented Jul 3, 2016

I am get this error (Internal Server Error 500) after run java -Dgrails.env=prod -jar streama-1.0.4.war. Is the same error?

@dularion

This comment has been minimized.

Show comment
Hide comment
@dularion

dularion Jul 3, 2016

Member

Possibly.. Can you post the stacktrace? If it's long use paste bin plz

Member

dularion commented Jul 3, 2016

Possibly.. Can you post the stacktrace? If it's long use paste bin plz

@gkiko

This comment has been minimized.

Show comment
Hide comment
@gkiko

gkiko Jul 3, 2016

Collaborator

Do same steps cause the error?

Collaborator

gkiko commented Jul 3, 2016

Do same steps cause the error?

@robsonolivesa

This comment has been minimized.

Show comment
Hide comment
@robsonolivesa

robsonolivesa Jul 4, 2016

http://pastebin.com/s3s1FLt7

the steps are in the paste. Thanks

robsonolivesa commented Jul 4, 2016

http://pastebin.com/s3s1FLt7

the steps are in the paste. Thanks

@dularion

This comment has been minimized.

Show comment
Hide comment
@dularion

dularion Jul 4, 2016

Member

This is a different issue. I had the same issue when running it from a different folder than where the .war file resides. But from your pastebin I can see that you do run it from the same directory.
Which Java version are you using?
Please use the other issue for continued communication on this

Member

dularion commented Jul 4, 2016

This is a different issue. I had the same issue when running it from a different folder than where the .war file resides. But from your pastebin I can see that you do run it from the same directory.
Which Java version are you using?
Please use the other issue for continued communication on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment