[
https://issues.apache.org/jira/browse/ROL-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Glen Mazza closed ROL-1823.
---------------------------
Resolution: Cannot Reproduce
Item from 2009. I cannot see much difference between the proposed denied.jsp
and the one we already have. Today normally you'll be taken to the login
screen upon session timeout.
> denied.jsp is broken (on session timeout)
> -----------------------------------------
>
> Key: ROL-1823
> URL: https://issues.apache.org/jira/browse/ROL-1823
> Project: Apache Roller
> Issue Type: Bug
> Affects Versions: 4.0.1
> Environment: Ubuntu 8.10; Rackspace Cloud
> Reporter: Morton Thule
> Assignee: Roller Unassigned
> Priority: Minor
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> When session is inactive for several minutes, the denied.jsp is presented.
> However, the messages are not decoded. Specifically:
> ???error.permissionDenied.title???
> ???error.permissionDenied.prompt???
> * ???error.permissionDenied.reason0???
> * ???error.permissionDenied.reason1???
> * ???error.permissionDenied.reason2???
> * ???error.permissionDenied.reason3???
> I was able to fix this issue by enhancing denied.jsp in my installation. I
> appears that this .jsp lacks the structure needed to render correctly. My
> fix: I modified /roller/roller-ui/errors/denied.jsp, using
> /roller/roller-ui/errors/404.jsp as a basis. Here's what worked for me:
> <%--
> Licensed to the Apache Software Foundation (ASF) under one or more
> contributor license agreements. The ASF licenses this file to You
> under the Apache License, Version 2.0 (the "License"); you may not
> use this file except in compliance with the License.
> You may obtain a copy of the License at
> http://www.apache.org/licenses/LICENSE-2.0
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License. For additional information regarding
> copyright in this work, please see the NOTICE file in the top level
> directory of this distribution.
> --%>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
> <%@ page isErrorPage="true" %>
> <fmt:setBundle basename="ApplicationResources" />
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title><fmt:message key="error.permissionDenied.title" /></title>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
> <link rel="stylesheet" type="text/css" media="all" href='<c:url
> value="/roller-ui/styles/roller.css"/>' />
> </head>
> <body>
>
> <h2><fmt:message key="error.permissionDenied.title" /></h2>
> <fmt:message key="error.permissionDenied.prompt" />
> <ul>
> <li><fmt:message key="error.permissionDenied.reason0" /></li>
> <li><fmt:message key="error.permissionDenied.reason1" /></li>
> <li><fmt:message key="error.permissionDenied.reason2" /></li>
> <li><fmt:message key="error.permissionDenied.reason3" /></li>
> <li><fmt:message key="error.permissionDenied.reason4" /></li>
> </ul>
>
> <br />
> <br />
> </body>
> </html>
> ***
> Please note -- I added a .reason4. I also tweaked
> /roller/WEB-INF/classes/ApplicationResources.properties, adding:
> error.permissionDenied.reason4=Your session has timed out. \
> To resolve this problem and continue working, click your browser's refresh
> button.
> ***
> Note: This issue is somewhat similar to:
> https://issues.apache.org/jira/browse/ROL-1809
--
This message was sent by Atlassian JIRA
(v6.2#6252)