Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 81093 invoked from network); 18 Sep 2008 17:57:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2008 17:57:05 -0000 Received: (qmail 11439 invoked by uid 500); 18 Sep 2008 17:57:02 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 11414 invoked by uid 500); 18 Sep 2008 17:57:02 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 11403 invoked by uid 99); 18 Sep 2008 17:57:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 10:57:02 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 17:56:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9434B234C1E5 for ; Thu, 18 Sep 2008 10:56:44 -0700 (PDT) Message-ID: <1458617767.1221760604606.JavaMail.jira@brutus> Date: Thu, 18 Sep 2008 10:56:44 -0700 (PDT) From: "Amit Surana (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Updated: (ABDERA-199) [core] AtomDate does not check for Date Constructs having T & Z separations between Date and Time In-Reply-To: <1453171244.1220961344443.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amit Surana updated ABDERA-199: ------------------------------- Attachment: patch.txt David, Please find an updated patch. Let me know if any more test cases break. I checked with all possible examples even with invalid date. So if I had missed out any case do let me know. cheers, /Amit > [core] AtomDate does not check for Date Constructs having T & Z separations between Date and Time > --------------------------------------------------------------------------------------------------- > > Key: ABDERA-199 > URL: https://issues.apache.org/jira/browse/ABDERA-199 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.4.0 > Reporter: Amit Surana > Priority: Minor > Attachments: patch.txt, patch.txt > > > In RFC4287: Date Consturcts Section, its mentioned that - A Date construct is an element whose content MUST conform to the "date-time" production in [RFC3339]. In addition, an uppercase *"T" character MUST* be used to separate date and time, and an uppercase *"Z" character MUST* be present in the absence of a numeric time zone offset. > But in the org.apache.abdera.model.AtomDate Implementation, When the Date is passed as String, I saw that the PATTERN does not check if the Date Format entered has T or Z. > I Tested the Pattern in a sample program. > I gave certain WRONG Inputs like -> "2008-09-08A20:00:00B+05:30" or "2008-09-08X23:30:00Y", etc > Instead of getting InvalidDateFormat Exception, I got the output as some Irrelevant date. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.