[ 
https://issues.apache.org/jira/browse/OODT-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13632405#comment-13632405
 ] 

Rishi Verma commented on OODT-596:
----------------------------------

Excerpt of conversation from another project thread (where the fix was first 
applied).

---
...
(C. Mattmann) 
Hey Reesh, curious how you fixed this. Page expired is merely an object 
invalidated message, so it's not an error.
How did you fix it? We should file an issue at Apache OODT for this.
...

(R. Verma) 
Hey Chris,
It's kind of a brute force method, but I'm forcing the client page to reload 
the page anytime the user navigates to a page. The problem is, when the user 
hits the back button, they are navigated to a cached version of the page 
locally instead of requesting the page from the server. So when they hit a new 
link from the previous page, Wicket has already lost the session information 
and so you get that Page Expired message. We want the user to always get the 
page from the server, so I am forcing each page view to be strictly non-cached.
This solution is described in the following blog post: 
http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
I was trying to come up with a more fundamental fix, but at this time, this is 
the best I could find.
Thanks!
rishi
---
                
> Fix opsui webapp's wicket 'Page Expired' error 
> -----------------------------------------------
>
>                 Key: OODT-596
>                 URL: https://issues.apache.org/jira/browse/OODT-596
>             Project: OODT
>          Issue Type: Bug
>          Components: opsui
>    Affects Versions: 0.5
>            Reporter: Rishi Verma
>            Assignee: Rishi Verma
>             Fix For: 0.6
>
>
> The opsui web-application suffers from a Wicket issue where hitting the 
> "back" button on the browser window can cause the current session to become 
> invalid. Thus, the webapp consistently yields a 'Page Expired' error.
> Reproducible steps:
> 1. Open up opsui
> 2. Click any link on the main page
> 3. Click any sub-link on the following page
> 4. Hit the browser's back button
> 5. Click a DIFFERENT link
> 6. You will see a 'Page Expired' error

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to