You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "James M Snell (JIRA)" <ji...@apache.org> on 2006/12/13 05:55:22 UTC

[jira] Resolved: (ABDERA-27) used setContentAsXhtml but content body is empty

     [ http://issues.apache.org/jira/browse/ABDERA-27?page=all ]

James M Snell resolved ABDERA-27.
---------------------------------

    Resolution: Fixed

This was being caused by a NPE in the code responsible for parsing XHTML/XML content.  I've checked in a fix to the trunk and 0.2.0 branch. 

> used setContentAsXhtml but content body is empty
> ------------------------------------------------
>
>                 Key: ABDERA-27
>                 URL: http://issues.apache.org/jira/browse/ABDERA-27
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Abdera .2
>            Reporter: Nell Gawor
>
> I saw that  Abdera .2 was out, so I downloaded it.  I made a few tweaks, but the code that was working before is no longer working.  Specifically the code:
> Entry entry = new FOMFactory().newEntry();
> 		entry.setId("http://localhost:8080/shoes/3");
> 		entry.setTitle("wrestling");
> 		entry.addAuthor("shoeShop.com");
> 		entry.setUpdated(new Date());
> 		String context = "<p class=\"size\">10</p>" + 
> 		 "<p class=\"color\">black</p>";
> 		entry.setContentAsXhtml(context);
> results in an entry of:
> <entry xmlns="http://www.w3.org/2005/Atom"><id>http://localhost:8080/shoes/3</id><title type="text">wrestling</title><author><name>shoeShop.com</name></author><updated>2006-12-06T18:17:09.984Z</updated><content type="xhtml"/></entry>
> That is, the content body is empty... is this a bug, or has there been some less obvious change to the API?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira