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 79AC8200BC6 for ; Sun, 20 Nov 2016 17:32:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 783F6160AFE; Sun, 20 Nov 2016 16:32:46 +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 C075E160B07 for ; Sun, 20 Nov 2016 17:32:45 +0100 (CET) Received: (qmail 7641 invoked by uid 500); 20 Nov 2016 16:32:45 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 7398 invoked by uid 99); 20 Nov 2016 16:32:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2016 16:32:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 990C21A067E; Sun, 20 Nov 2016 16:32:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id CrDqlwMWi9CD; Sun, 20 Nov 2016 16:32:41 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E36275F36F; Sun, 20 Nov 2016 16:32:40 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id g23so110116691wme.1; Sun, 20 Nov 2016 08:32:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RN4vfYzdkA5UIFWcpIuAfEdWzVkf0pIL76Du5wHI9jA=; b=Gg/qowsNDm8amAzfHqI6aZXWqDc6lQShw8S2yJ70ZqRDjOPYJI62C5k1nngH3+fUMP 23xfqSHRyxKzJTRVU1GrhjX6oREjBnc1T4npab1OLynIDy4AASSAFS9AuffKsvmoxCM2 BndG75wlza+rTZFB6YMQNaiRBZk5uUJW3M4QNcTMk119IFLBXKkdddl09D9k5DsulgD4 4vSSFoeV1opy4OMUn3I5UuDw+MYnCw/Mf0IPQags252vhZO/qfFOIAai/D59GgXdkLqE 1j7SBIAI/u7MA1Pexu4AqOk/8bpkbYGpn7on3FKZPGBuWZuaPs/zT2Y29Bt9cnPJ4+sH qVIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RN4vfYzdkA5UIFWcpIuAfEdWzVkf0pIL76Du5wHI9jA=; b=C9bpI+pO4Eag7L5qEPocymtQiJhwY9I2+HkHZCeGUuMvdnB/V4QeXF4R3+i+CUDcP4 OKIrX3xNP5VX0V/Y5IvdxZ3hgkxnrPsxnGJ/amQgCOiW+2NNocggGO/4nTu42tmGCrhS xlMCVsht05gTMewjASHLR89TdcJojqhbENAXXellsNKJ9XCtnQq48YHfOw38g3tvDnnb Hg3pfmtFhCwWpK/AacU7PfuDYi17kXdeJMYyBsG5Sn/poKNLNPGu2SDRY7jaxH80hKQ7 IgcOhur7jugZZ1BHxIaXSRPWnRF/WKmc+xz4qJClaBhjEU6EDwKsuxipDuJsx1BV0LAX tt2Q== X-Gm-Message-State: AKaTC01yQZG8fi/llhLwO5usFfZ2ZDA7r6T6QXbkUgPE7vWR1glCbSXDCzuEbGyucakoA4bHB7UePhgBxy5a9g== X-Received: by 10.46.1.74 with SMTP id 71mr5157667ljb.8.1479659559624; Sun, 20 Nov 2016 08:32:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.38.134 with HTTP; Sun, 20 Nov 2016 08:32:39 -0800 (PST) In-Reply-To: References: From: Cihad Guzel Date: Sun, 20 Nov 2016 19:32:39 +0300 Message-ID: Subject: Re: Invalid date format for modified_date To: user@manifoldcf.apache.org Cc: dev Content-Type: multipart/alternative; boundary=001a1142c87a70a5130541be166e archived-at: Sun, 20 Nov 2016 16:32:46 -0000 --001a1142c87a70a5130541be166e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Karl, I have created a pull request on github. You can see the problem from here: https://github.com/apache/manifoldcf/pull/10/commits/6a71a44ead5507c00302cb= 3a0a6a96d2bd2a02ce 2016-11-20 19:25 GMT+03:00 Karl Wright : > The code for formatting a date is here: > > >>>>>> > public static String formatISO8601Date(Date dateValue) > { > java.text.DateFormat df =3D new java.text.SimpleDateFormat("yyyy-MM-d= d'T'HH:mm:ss.SSS'Z'", > Locale.ROOT); > df.setTimeZone(TimeZone.getTimeZone("GMT")); > return df.format(dateValue); > } > > <<<<<< > > The code that fills in the modified_date attribute in the Solr connector > is here: > > >>>>>> > if ( modifiedDateAttributeName !=3D null ) > { > Date date =3D document.getModifiedDate(); > if ( date !=3D null ) > { > outputDoc.addField( modifiedDateAttributeName, > DateParser.formatISO8601Date( date ) ); > } > } > <<<<<< > > I can't see any way that a number could be prepended to this. > > Karl > > > On Sun, Nov 20, 2016 at 11:08 AM, Cihad Guzel wrote: > >> Hi, >> >> I use SharedDrive and Solr connector. I run my job and I have seen >> invalid date format in modified_date field in my Solr index. Otherwise = the >> size metadata is mising in solr index. The invalid metadata as >> follow: "modified_date": "102400 2016-11-17T13:21:22.163Z" >> >> "102400" is unnecessary value and it should not be added in >> modified_date. I found the problem and edited it. I will create a pull >> request on github. >> >> -- >> Kind Regards >> Cihad G=C3=BCzel >> > > --=20 Te=C5=9Fekk=C3=BCrler Cihad G=C3=BCzel --001a1142c87a70a5130541be166e--