Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 26119 invoked from network); 13 Oct 2007 00:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Oct 2007 00:03:41 -0000 Received: (qmail 54695 invoked by uid 500); 13 Oct 2007 00:03:29 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 54670 invoked by uid 500); 13 Oct 2007 00:03:29 -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 54661 invoked by uid 99); 13 Oct 2007 00:03:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 17:03:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Oct 2007 00:03:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E66A271420A for ; Fri, 12 Oct 2007 17:02:50 -0700 (PDT) Message-ID: <27891829.1192233770941.JavaMail.jira@brutus> Date: Fri, 12 Oct 2007 17:02:50 -0700 (PDT) From: "James M Snell (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Commented: (ABDERA-70) Link in entry disappears after adding entry to a feed In-Reply-To: <24443383.1191496011051.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-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534446 ] James M Snell commented on ABDERA-70: ------------------------------------- I've made some changes that address this. I'm not going to close the issue yet as I'm not sure if we're going to want to stick with this particular solution long term > Link in entry disappears after adding entry to a feed > ----------------------------------------------------- > > Key: ABDERA-70 > URL: https://issues.apache.org/jira/browse/ABDERA-70 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.3.0 > Reporter: Ugo Cei > > The following code demonstrates the problem: > Abdera abdera = new Abdera(); > Factory factory = abdera.getFactory(); > Feed feed = factory.newFeed(); > feed.setTitle("Test"); > feed.setId("http://example.com/feed"); > Parser parser = abdera.getParser(); > Document doc = parser.parse(this.getClass().getResourceAsStream("/entry.xml")); > Entry entry = doc.getRoot(); > Link link = factory.newLink(); > link.setHref(entry.getId().toString()); > link.setRel(Link.REL_EDIT); > entry.addLink(link); > assertNotNull("Link is null", entry.getLink(Link.REL_EDIT)); > feed.addEntry(entry); > assertNotNull("Link is null", entry.getLink(Link.REL_EDIT)); > for (Entry e : feed.getEntries()) { > assertNotNull("Link is null", e.getLink(Link.REL_EDIT)); > } > Note that this happens only when the entry is read and parsed from a file, not when it is created in memory. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.