8. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/11/2017 8:05:37 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

8.1 Files compared

# Location File Last Modified
1 MHV_CIF_2017.4.0.0.zip\MHV_CIF_2017.4.0.0\MHV_CIF_2017.4.0.0\ap_redesign\mhv_source\mhv_admin_portal\mhv-admin-portal-ui\mhv-admin-portal-web\WebContent\gov\va\med\mhv\portal\content\notice adminNotice.jsp Wed Jul 5 17:42:26 2017 UTC
2 MHV_CIF_2017.4.0.0.zip\MHV_CIF_2017.4.0.0\MHV_CIF_2017.4.0.0\ap_redesign\mhv_source\mhv_admin_portal\mhv-admin-portal-ui\mhv-admin-portal-web\WebContent\gov\va\med\mhv\portal\content\notice adminNotice.jsp Thu Sep 7 18:51:05 2017 UTC

8.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 132
Changed 1 2
Inserted 0 0
Removed 0 0

8.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

8.4 Active regular expressions

No regular expressions were active.

8.5 Comparison detail

  1   <%@ page i mport="jav a.io.IOExc eption"%>
  2   <%@ page i mport="jav a.net.URL" %>
  3   <%@ page i mport="jav a.io.Input Stream"%>
  4   <%@ page i mport="org .apache.co mmons.lang .StringUti ls"%>
  5  
  6   <%@ page l anguage="j ava" conte ntType="te xt/html;ch arset=UTF- 8"%>
  7   <%@taglib  uri="http: //beehive. apache.org /netui/tag s-html-1.0 " prefix=" netui"%>
  8   <%@taglib  uri="http: //beehive. apache.org /netui/tag s-databind ing-1.0" p refix="net ui-data"%>
  9   <%@taglib  uri="http: //beehive. apache.org /netui/tag s-template -1.0" pref ix="netui- template"% >
  10   <%@ taglib  uri="http ://java.su n.com/jsp/ jstl/core"  prefix="c " %>
  11   <%@ taglib  uri="/WEB -INF/esapi .tld" pref ix="esapi"  %>
  12  
  13   <%
  14       String  noticePag eRootDir =  new Strin gBuffer("h ttp://").a ppend(requ est.getSer verName())
  15                                               .append("/ ")
  16                                               .append("n oticeconte nt")
  17                                               .append("/ ").toStrin g();
  18           
  19           St ring defau ltNoticeFi le = notic ePageRootD ir + "noti ce.html";
  20           
  21           // out.printl n("URL: "  + defaultN oticeFile) ;
  22           
  23           St ring pageT oDisplay =  "";
  24           pa geToDispla y = displa yPage(defa ultNoticeF ile);
  25           
  26       if (pa geToDispla y != null)  {
  27           if  (StringUt ils.equals (StringUti ls.isBlank ((String)r equest.get Session(). getAttribu te("HAS_RO LES")) ? " yes":(Stri ng)request .getSessio n().getAtt ribute("HA S_ROLES"),  "no")) {
  28                    out. println("< div id=\"m hv-informa tional-box \">");
  29                    out. println("\ t<div id=\ "mhv-error -message-i nformation al\">" + " You are no t authoriz ed to acce ss the MHV  Administr ative Port al. To req uest acces s, please  contact yo ur MHV Coo rdinator."  + "</div> ");
  30                    out. println("< /div>");
  31           }
  32   %>
  33           <n etui:conte nt value=" <%=pageToD isplay%>"/ >
  34   <% 
  35           }
  36       else { %>
  37                
  38            R equested n otice file  <strong>< %=defaultN oticeFile% ></strong>  could not  processed .
  39       <% }
  40  
  41       %>
  42   <%!
  43  
  44       public  String di splayPage( String pag etoDisplay ) throws I OException {
  45                     //      St ring defau ltNoticeFi le = "http ://adminde va.myhealt h. DNS     /noticecon tent/notic e.html";
  46           St ringBuffer  buffer =  null;
  47           In putStream  in = null;
  48           tr y {
  49                    //re ad and dow nload the  page text
  50                    URL  url = new  URL(pageto Display);
  51                    in =  url.openS tream();           
  52                    byte [] data =  new byte[1 024];
  53                    int  length = - 1;
  54                    buff er = new S tringBuffe r();
  55                    whil e ((length  = in.read (data)) !=  -1) {
  56                             buffer .append(ne w String(d ata, 0, le ngth));
  57                    }
  58           }c atch (Exce ption e) {
  59                    thro w new Runt imeExcepti on("Reques ted notice  page "+pa getoDispla y+ " could  not be pr ocessed.",  e);
  60           }  finally {            
  61                    if ( in != null ) in.close ();              
  62           }
  63           
  64        
  65        retur n (buffer  != null) ?  buffer.to String() :  null;
  66       }
  67   %>