Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9E7A5200BB2 for ; Sat, 29 Oct 2016 18:11:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9D2CB160AF4; Sat, 29 Oct 2016 16:11:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 18031160AE3 for ; Sat, 29 Oct 2016 18:11:03 +0200 (CEST) Received: (qmail 71600 invoked by uid 500); 29 Oct 2016 16:10:58 -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 71586 invoked by uid 99); 29 Oct 2016 16:10:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2016 16:10:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 533302C001E for ; Sat, 29 Oct 2016 16:10:58 +0000 (UTC) Date: Sat, 29 Oct 2016 16:10:58 +0000 (UTC) From: "Erick Erickson (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SOLR-9701) NPE in export handler when "fl" parameter is omitted. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 29 Oct 2016 16:11:04 -0000 Erick Erickson created SOLR-9701: ------------------------------------ Summary: NPE in export handler when "fl" parameter is omitted. Key: SOLR-9701 URL: https://issues.apache.org/jira/browse/SOLR-9701 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: trunk, 6.4 Reporter: Erick Erickson Assignee: Erick Erickson Priority: Minor This started when a user reported that if you do not specify any parameters for the export handler, you get an NPE. I tracked it down to not specifying an "fl" parameter. But in general I rearranged the error reporting in SortingResponseWriter.write so that immediately upon detecting a problem, the exception gets written to the output stream and then return immediately rather than save it up for the end. Preliminary version of the patch attached; it fixes the immediate problem. Still to see is if it breaks any tests since the first error detected will be returned to the user rather than the last. I'll fix any tests that are sensitive to this and check in sometime this weekend. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org