<%@page import="java.io.PrintWriter"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="org.unicode.cldr.test.CheckCLDR.CheckStatus.Subtype"%> <%@page import="org.unicode.cldr.web.SubtypeToURLMap"%> <%@page import="java.util.TreeSet"%> <%@page import="java.net.URL"%> <%@page import="org.unicode.cldr.web.HttpStatusCache" %> <%@page import="org.unicode.cldr.util.CLDRConfig" %> <%@page import="org.unicode.cldr.util.StackTracker" %> <%@page import="org.unicode.cldr.util.CLDRURLS" %> <% final String BASE = request.getContextPath() + request.getServletPath(); // allow ?flush=true - redirect if(request.getParameter("flush") != null) { final String recheck = request.getParameter("flush"); %> <% if(recheck.startsWith("MAP")) { try { %>

Reloading URL map...

<% SubtypeToURLMap map = SubtypeToURLMap.reload(); if(map == null) { out.println("FAILED. Check for errors."); } else { out.println("SUCCESS!"); } } catch(Throwable t) { %> πŸ”„ Try Again | Cancel (cache may work)

Reload FAILED with stack:

<%
				t.printStackTrace(new PrintWriter(out));
				out.println("
"); return; // do not auto refresh. } } else if(recheck.startsWith("http")) { %>

Flushing <%= recheck %> from cache..

<% HttpStatusCache.flush(new URL(recheck)); } else { %>

Flushing cache..

<% HttpStatusCache.flush(null); } %>

(redirect in a couple seconds)

reloading.. <% return; } %> All Errors

All error subtypes

CLDR_SUBTYPE_URL <%= CLDRURLS.toHTML(SubtypeToURLMap.getDefaultUrl()) %>
πŸ”„ Reload Map <% SubtypeToURLMap map = SubtypeToURLMap.getInstance(); if( map==null ) { out.println("Could not load map."); return; } else { out.println("Map OK! (may be cached)
"); } %>

Instructions: This shows the status of the subtype to URL mapping data. Each line here shows the CLDR error subtypes.
Code - this is the code
url - this is the URL specified in the subtypeMapping.txt file
Status - this shows whether the URL was fetched successfully. (200 indicates success.) Click the 'reload' πŸ”„ button to re-check the URL.

πŸ”„Recheck all URLs
<%= SubtypeToURLMap.COMMENT + " " + SubtypeToURLMap.BEGIN_MARKER %>
<% for(final String u : map.getUrls()) { Integer checkStatus; checkStatus = HttpStatusCache.check(new URL(u)); %>
#------------------
<%= u %>
<% if(! HttpStatusCache.isGoodStatus(checkStatus)) { %> # URL failed to fetch: <%= checkStatus %> πŸ”„
<% } else { %> <% } for(final Subtype s : map.getSubtypesForUrl(u)) { %>
<%= s.name() %>,
<% } } if(map.getUnhandledTypes().isEmpty()) { %>
#------------------

# All types handled!

<% } else { %>

#------------------

# Missing these subtypes:

<% for(final Subtype sub : map.getUnhandledTypes()) { %>
# <%= sub.name() %>,
<% } } %>
<%= SubtypeToURLMap.COMMENT + " " + SubtypeToURLMap.END_MARKER %>