You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Nell Gawor (JIRA)" <ji...@apache.org> on 2006/12/11 15:22:22 UTC
[jira] Created: (ABDERA-27) used setContentAsXhtml but content body
is empty
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
Re: [jira] Created: (ABDERA-27) used setContentAsXhtml but content
body is empty
Posted by James M Snell <ja...@gmail.com>.
I just checked in the fix for this.
Nell Gawor (JIRA) wrote:
> 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?
>
[jira] Resolved: (ABDERA-27) used setContentAsXhtml but content
body is empty
Posted by "Garrett Rooney (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/ABDERA-27?page=all ]
Garrett Rooney resolved ABDERA-27.
----------------------------------
Resolution: Fixed
James committed a test.
> 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?
--
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
[jira] Closed: (ABDERA-27) used setContentAsXhtml but content body
is empty
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James M Snell closed ABDERA-27.
-------------------------------
> used setContentAsXhtml but content body is empty
> ------------------------------------------------
>
> Key: ABDERA-27
> URL: https://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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: 0.2.1-incubating zips
Posted by James M Snell <ja...@gmail.com>.
I'm not particularly concerned with the docs. If others are, I can
update 'em.
- James
Garrett Rooney wrote:
> On 12/13/06, James M Snell <ja...@gmail.com> wrote:
>> I've uploaded the 0.2.1-incubating zips to
>> http://people.apache.org/~jmsnell. The only change is the fix to
>> ABDERA-27 and the test case.
>>
>> Here's my +1 for release. Please way in. :-)
>
> +1 from me. I do notice that the docs still read as 0.2, but I'm not
> sure that really matters, since none of the APIs have changed.
>
> -garrett
>
Re: 0.2.1-incubating zips
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 12/13/06, James M Snell <ja...@gmail.com> wrote:
> I've uploaded the 0.2.1-incubating zips to
> http://people.apache.org/~jmsnell. The only change is the fix to
> ABDERA-27 and the test case.
>
> Here's my +1 for release. Please way in. :-)
+1 from me. I do notice that the docs still read as 0.2, but I'm not
sure that really matters, since none of the APIs have changed.
-garrett
0.2.1-incubating zips
Posted by James M Snell <ja...@gmail.com>.
I've uploaded the 0.2.1-incubating zips to
http://people.apache.org/~jmsnell. The only change is the fix to
ABDERA-27 and the test case.
Here's my +1 for release. Please way in. :-)
- James
Garrett Rooney wrote:
> On 12/13/06, James M Snell <ja...@gmail.com> wrote:
>>
>> * 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.
>
> I'd suggest posting the zips, any release vote takes some time anyway,
> so if problems are found in the next few days we'll still be able to
> catch them.
>
> -garrett
>
Re: [jira] Reopened: (ABDERA-27) used setContentAsXhtml but content body is empty
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 12/13/06, James M Snell <ja...@gmail.com> wrote:
>
> * 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.
I'd suggest posting the zips, any release vote takes some time anyway,
so if problems are found in the next few days we'll still be able to
catch them.
-garrett
Re: [jira] Reopened: (ABDERA-27) used setContentAsXhtml but content
body is empty
Posted by James M Snell <ja...@gmail.com>.
* 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?
>
[jira] Reopened: (ABDERA-27) used setContentAsXhtml but content
body is empty
Posted by "Garrett Rooney (JIRA)" <ji...@apache.org>.
[ 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?
--
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
[jira] Resolved: (ABDERA-27) used setContentAsXhtml but content
body is empty
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ 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