Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changelog/unreleased/SOLR-18319-404-simplify.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 2 additions & 3 deletions solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
5 changes: 0 additions & 5 deletions solr/webapp/web/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,4 @@
<url-pattern>/zookeeper</url-pattern>
</servlet-mapping>
-->

<error-page>
<error-code>404</error-code>
<location>/error404.html</location>
</error-page>
</web-app>
21 changes: 0 additions & 21 deletions solr/webapp/web/error404.html

This file was deleted.

Loading