diff --git a/changelog/unreleased/SOLR-18319-404-simplify.yml b/changelog/unreleased/SOLR-18319-404-simplify.yml new file mode 100644 index 000000000000..a705474cbf6e --- /dev/null +++ b/changelog/unreleased/SOLR-18319-404-simplify.yml @@ -0,0 +1,8 @@ +title: > + Solr's 404 page is less generic. We now log 404s in Solr's log. +type: changed +authors: + - name: David Smiley +links: + - name: SOLR-18319 + url: https://issues.apache.org/jira/browse/SOLR-18319 diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java index de25af4a9e9c..3d80367921f4 100644 --- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java +++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java @@ -318,9 +318,8 @@ protected void init() throws Exception { } } - String msg = "no handler, collection, or core for " + path; - sendError(404, msg); - log.info(msg); // not "error" since Solr isn't necessarily at fault + sendError(404, "no handler, collection, or core for " + path); + log.info("path={} status=404", path); // not "error" since Solr isn't necessarily at fault action = RETURN; } diff --git a/solr/webapp/web/WEB-INF/web.xml b/solr/webapp/web/WEB-INF/web.xml index 04f949e2f6b0..136cb6d4bd40 100644 --- a/solr/webapp/web/WEB-INF/web.xml +++ b/solr/webapp/web/WEB-INF/web.xml @@ -167,9 +167,4 @@ /zookeeper --> - - - 404 - /error404.html - diff --git a/solr/webapp/web/error404.html b/solr/webapp/web/error404.html deleted file mode 100644 index 3d15bd697608..000000000000 --- a/solr/webapp/web/error404.html +++ /dev/null @@ -1,21 +0,0 @@ - -

- Searching for Solr?
- You must type the correct path.
- Solr will respond. -