You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2015/06/30 20:04:10 UTC

svn commit: r1688494 - in /manifoldcf/trunk/framework: crawler-ui/src/main/webapp/ ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/

Author: kwright
Date: Tue Jun 30 18:04:10 2015
New Revision: 1688494

URL: http://svn.apache.org/r1688494
Log:
Add an 'unauthorized' jsp page

Added:
    manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp   (with props)
Modified:
    manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
    manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
    manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties

Added: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp?rev=1688494&view=auto
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp (added)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp Tue Jun 30 18:04:10 2015
@@ -0,0 +1,64 @@
+<%@ include file="adminHeaders.jsp" %>
+
+<%
+
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* 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.
+*/
+%>
+
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
+  <title>
+    <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"error.Unauthorized")%>
+  </title>
+
+</head>
+
+<body class="standardbody">
+
+    <table class="page">
+      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" flush="true"/></td></tr>
+      <tr><td class="navigation"><jsp:include page="navigation.jsp" flush="true"/></td>
+       <td class="window">
+          <p class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"error.Unauthorized")%></p>
+
+<%
+  // These have to be fetched from request rather than variableContext since error
+  // forwards screw up the multipart wrapper
+  String target = variableContext.getParameter("target");
+%>
+          <table class="displaytable">
+            <tr><td class="message"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"error.UnauthorizedAccess")%></td></tr>
+            <tr><td class="separator"><hr/></td></tr>
+            <tr><td class="message"><a href='<%=org.apache.manifoldcf.core.util.URLEncoder.encode(target)%>' alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"error.Return")%>">OK</a></td></tr>
+          </table>
+
+       </td>
+      </tr>
+    </table>
+
+</body>
+
+</html>

Propchange: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/unauthorized.jsp
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties?rev=1688494&r1=1688493&r2=1688494&view=diff
==============================================================================
--- manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties (original)
+++ manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_en_US.properties Tue Jun 30 18:04:10 2015
@@ -847,6 +847,8 @@ resultreport.ResultCodeMatchMustBeAValid
 error.ApacheManifoldCFError=Apache ManifoldCF: Error
 error.Error=Error!
 error.Return=Return
+error.Unauthorized=Apache ManifoldCF: Unauthorized activity
+error.UnauthorizedAccess=You do not have permissions to perform this activity
 
 viewjob.ApacheManifoldCFViewJob=Apache ManifoldCF: View Job
 viewjob.ViewAJob=View a Job

Modified: manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties?rev=1688494&r1=1688493&r2=1688494&view=diff
==============================================================================
--- manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties (original)
+++ manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_ja_JP.properties Tue Jun 30 18:04:10 2015
@@ -848,6 +848,8 @@ resultreport.ResultCodeMatchMustBeAValid
 error.ApacheManifoldCFError=Apache ManifoldCF:エラー
 error.Error=エラー
 error.Return=戻る
+error.Unauthorized=Apache ManifoldCF: Unauthorized activity
+error.UnauthorizedAccess=You do not have permissions to perform this activity
 
 viewjob.ApacheManifoldCFViewJob=Apache ManifoldCF:ジョブ情報
 viewjob.ViewAJob=ジョブ情報

Modified: manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties?rev=1688494&r1=1688493&r2=1688494&view=diff
==============================================================================
--- manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties (original)
+++ manifoldcf/trunk/framework/ui-core/src/main/native2ascii/org/apache/manifoldcf/ui/i18n/common_zh_CN.properties Tue Jun 30 18:04:10 2015
@@ -848,6 +848,8 @@ resultreport.ResultCodeMatchMustBeAValid
 error.ApacheManifoldCFError=Apache ManifoldCF: 错误
 error.Error=错误
 error.Return=返回
+error.Unauthorized=Apache ManifoldCF: Unauthorized activity
+error.UnauthorizedAccess=You do not have permissions to perform this activity
 
 viewjob.ApacheManifoldCFViewJob=Apache ManifoldCF: 作业信息
 viewjob.ViewAJob=作业信息