/zkau ???

james
255 2

Sometimes when I log in using Spring Security i get redirected to /zkau. It happens everytime after i restart the server, and then seldomly after that. Would this be more of a ZK problem, or Spring problem, really just a mixture of the two? Does anyone know why this may be happening or what may be causing it, and even better, what I could do to fix it?

Thanks in advance for any help i can get.
-James

delete retag edit

8 Replies

V
33

Hi, james!
When destroy desktop, web browser sends this event, but Session already destroyed and Spring Security remembers this error request to url "/zkau".
Decision: turn off in Spring Security remember the last error request.

james
255 2

Thank you V.
Would you mind pointing in the direction of how to turn off the 'remember last error request' functionality in Spring Security?
Only thing I have really been able to find is about the "remember me" functionality.
Meanwhile I'll continue my search, and again thank you.
-James

V
33

<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter">
<property name="createSessionAllowed" value="false"/>
</bean>

james
255 2

When I add that line of code, i get the following error

[ERROR,ContextLoader,http-8080-1] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exceptionTranslationFilter' defined in ServletContext resource [/WEB-INF/applicationContext-security.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: authenticationEntryPoint must be specified


"authenticationEntryPoint must be specified", it is specified...
This problem only occurs when I add that bean, take it out and no problems.

-James

james
255 2

Okay, so I guess all I had to do was add "<property name="authenticationEntryPoint" ref="authenticationProcessingFilterEntryPoint"/>"

So now it is as follows:

<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter">
<property name="createSessionAllowed" value="false"/>
<property name="authenticationEntryPoint" ref="authenticationProcessingFilterEntryPoint"/>
</bean>

But it goes to /zkau everytime i log in. I get successfully logged in though. So when i log in, i go to /zkau i can type the address of a file/page that is restricted and access it just fine. log out, log in and go right to the /zkau page again. So that ended up not really fixing it.
Does anyone have any other ideas?

V
33

Sorry, that means your problem is something else ...

May be filter-mapping in web.xml ?
I like this:

<filter-mapping>
<filter-name>securityFilterChain</filter-name>
<url-pattern>*.html</url-pattern>
<url-pattern>/zkau</url-pattern>
<url-pattern>*.dsp</url-pattern>
<url-pattern>*.zul</url-pattern>
</filter-mapping>


james
255 2

I'm not sure what everything does and how it all works... I'm still fairly new to a lot of this stuff (zk, java, spring)
But here is the info that I think pertains to this
excerpt from web.xml

    <filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<servlet>
<description>ZK loader for evaluating ZK pages</description>
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
<init-param>
<param-name>update-uri</param-name>
<param-value>/zkau</param-value>
</init-param>
</servlet>
<servlet-mapping>
<url-pattern>*.zul</url-pattern>
</servlet-mapping>
<servlet-mapping>
<url-pattern>*.zhtml</url-pattern>
</servlet-mapping>
<servlet>
<description>The asynchronous update engine for ZK</description>
<servlet-name>auEngine</servlet-name>
</servlet>
<servlet>
<description>The servlet loads the DSP pages.</description>
<servlet-class>org.zkoss.web.servlet.dsp.InterpreterServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>auEngine</servlet-name>
<url-pattern>/zkau/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<url-pattern>*.dsp</url-pattern>
</servlet-mapping>

It seems like the 2 parts that have zkau need to be there anyway. I've tried taking them out and it doesn't work that way. I guess the auEngine is like the rendering engine for the zk components. nothing else even points to or mentions zkau in my web.xml file.
I'm not sure if this gives the information you may need to help me figure this out

Also, I've tried adding the lines that you have (all 4 just for safety) and it didn't seem to change anything

    <filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>/zkau</url-pattern>
<url-pattern>*.dsp</url-pattern>
<url-pattern>*.zul</url-pattern>
</filter-mapping>

I appreciate your continued help V.
There doesn't seem to be much of anything on this subject, or at least not that I have been able to find.
So thank you very much.

Can you see anything that may be incorrect or possibly causing this problem?
Or is there some other information that might be beneficial to you?

james
255 2

Has anyone else experienced this problem? ... being redirected to /zkau
How might I be able to fix this problem?

Thank you for any help that may be given.
-James

[hide preview]