0

spring security: bad redirect after login.zul

asked 2009-03-20 14:32:00 +0800

ld gravatar image ld
15

Hi!
I've just added spring security (2.0.4) to my ZK app (3.6.0). But after the login, I'm redirected to /zkau/web/js/zk/zk.js.dsp instead of /index.zul. I have used the login.zul page from the "zkspringsec1" tutorial.

Here're the http requests seen:
1349.324470 127.0.0.1 -> 127.0.0.1 HTTP GET /backcoverage/login.zul HTTP/1.1
1349.331870 127.0.0.1 -> 127.0.0.1 HTTP HTTP/1.1 200 OK (text/html)
1349.370019 127.0.0.1 -> 127.0.0.1 TCP 40457 > http-alt Seq=6693 Ack=14186 Win=49344 Len=0 TSV=178714464 TSER=178714454
1355.311865 127.0.0.1 -> 127.0.0.1 HTTP POST /backcoverage/j_spring_security_check HTTP/1.1 (application/x-www-form-urlencoded)
1355.313571 127.0.0.1 -> 127.0.0.1 HTTP HTTP/1.1 302 Moved Temporarily
1355.313594 127.0.0.1 -> 127.0.0.1 TCP 40457 > http-alt Seq=7364 Ack=14451 Win=49344 Len=0 TSV=178715950 TSER=178715950
1355.321256 127.0.0.1 -> 127.0.0.1 HTTP GET /backcoverage/zkau/web/js/zk/zk.js.dsp HTTP/1.1

Any ideas ?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-03-20 14:56:39 +0800

YamilBracho gravatar image YamilBracho
1722 2

Check the tag form-login in your spring security xml

link publish delete flag offensive edit

answered 2009-03-20 15:19:52 +0800

ld gravatar image ld
15

I've just found the problem: <intercept-url pattern="/**" access="IS_AUTHENTICATED_REMEMBERED" /> so all ZK calls where authenticated (also /zkau queries).

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-03-20 14:32:00 +0800

Seen: 880 times

Last updated: Mar 20 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More