Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ACC64D60D for ; Fri, 16 Nov 2012 11:02:14 +0000 (UTC) Received: (qmail 8840 invoked by uid 500); 16 Nov 2012 11:02:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 8797 invoked by uid 500); 16 Nov 2012 11:02:13 -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 8769 invoked by uid 99); 16 Nov 2012 11:02:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 11:02:12 +0000 Date: Fri, 16 Nov 2012 11:02:11 +0000 (UTC) From: "Igor Dobritskiy (JIRA)" To: dev@lucene.apache.org Message-ID: <1117671500.123226.1353063732434.JavaMail.jiratomcat@arcas> In-Reply-To: <1216662265.80879.1352302632966.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (SOLR-4047) dataimporter.functions.encodeUrl throughs Unable to encode expression: field.name with value: null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Igor Dobritskiy updated SOLR-4047: ---------------------------------- Priority: Critical (was: Major) > dataimporter.functions.encodeUrl throughs Unable to encode expression: field.name with value: null > -------------------------------------------------------------------------------------------------- > > Key: SOLR-4047 > URL: https://issues.apache.org/jira/browse/SOLR-4047 > Project: Solr > Issue Type: Bug > Components: contrib - DataImportHandler > Affects Versions: 4.0 > Environment: Windows 7 > Reporter: Igor Dobritskiy > Priority: Critical > > For some reason dataimporter.functions.encoude URL stopped work after update to solr 4.0 from 3.5. > Here is the error > {code} > Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to encode expression: attach.name with value: null Processing Document # 1 > {code} > Here is the data import config snippet: > {code} > ... > query="select name from accounts where account_id = '${attach.account_id}'"> > dataSource="bin" > format="text" > url="http://example.com/data/${account.name}/attaches/${attach.item_id}/${dataimporter.functions.encodeUrl(attach.name)}"> > > > > ... > {code} > When I'm changing it to *not* use dataimporter.functions.encodeUrl it works but I need to url encode file names as they have special chars in theirs names. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org