Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 17075 invoked from network); 3 Dec 2010 18:02:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 18:02:48 -0000 Received: (qmail 81336 invoked by uid 500); 3 Dec 2010 18:02:42 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 81237 invoked by uid 500); 3 Dec 2010 18:02:41 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 81224 invoked by uid 99); 3 Dec 2010 18:02:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 18:02:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 18:02:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB3I2Hac029489 for ; Fri, 3 Dec 2010 18:02:17 GMT Message-ID: <7567293.97231291399337855.JavaMail.jira@thor> Date: Fri, 3 Dec 2010 13:02:17 -0500 (EST) From: "Fuad Efendi (JIRA)" To: dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (SOLR-2262) 404 on In-Reply-To: <25502056.94971291393511121.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966603#action_12966603 ] Fuad Efendi edited comment on SOLR-2262 at 12/3/10 1:01 PM: ------------------------------------------------------------ I tracked this problem down to {code} SolrDispatchFilter.doFilter... ... String path = req.getServletPath(); if( req.getPathInfo() != null ) { // this lets you handle /update/commit when /update is a servlet path += req.getPathInfo(); } {code} My only guess is that _Tomcat 7 has a bug_ in {code} HttpServletRequest.getPathInfo() {code} According to Java 6 EE API, {code} getPathInfo() ... Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string and will start with a "/" character. {code} was (Author: funtick): I tracked this problem down to {code} SolrDispatchFilter.doFilter... ... String path = req.getServletPath(); if( req.getPathInfo() != null ) { // this lets you handle /update/commit when /update is a servlet path += req.getPathInfo(); } {code} My only guess is that _Tomcat 7 has a bug_ in {code} HttpServletRequest.getPathInfo() {code} According to Java 6 EE API, {code} getPathInfo() ... Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string and will start with a "/" character. {code} > 404 on > ------- > > Key: SOLR-2262 > URL: https://issues.apache.org/jira/browse/SOLR-2262 > Project: Solr > Issue Type: Bug > Affects Versions: 1.4.1 > Environment: Tomcat/7.0.4 > Reporter: Sean Timm > Priority: Trivial > > Config and schema links from the admin page do not work with Tomcat 7. Apparently Tomcat 7 doesn't like the extra slash in the URL: file/? and returns a 404. Removing the extra / resolves the problem. > Does not work: > http://localhost:8080/solr/admin/file/?file=schema.xml > Works: > http://localhost:8080/solr/admin/file?file=schema.xml > I stumbled across a blog post that provides a bit more detail. http://androidyou.blogspot.com/2010/09/tomcat-7-with-solr-14-http-status-404.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org