abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: [jira] Reopened: (ABDERA-27) used setContentAsXhtml but content body is empty
Date Wed, 13 Dec 2006 15:48:57 GMT

 * Branch created
 * Test case and fix checked in (trunk and 0.2.1)
 * Change to 0.2.0 rolled back
 * I've got zips for 0.2.1 ready to go

Should we go now (my preference) or wait to see if we get more bugs?
This is a critical bug since creating entries with XHTML content will
not work properly.

- James

Garrett Rooney (JIRA) wrote:
>      [ http://issues.apache.org/jira/browse/ABDERA-27?page=all ]
> 
> Garrett Rooney reopened ABDERA-27:
> ----------------------------------
> 
>       Assignee: Garrett Rooney
>              
> Reopening so we remember to write a test case for this.  I'll get to it if nobody else
does.
> 
>> 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
>>         Assigned To: Garrett Rooney
>>
>> 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?
> 

Mime
View raw message