You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <de...@tuscany.apache.org> on 2009/05/29 05:32:45 UTC

[jira] Assigned: (TUSCANY-2939) Null entries returned from external Atom feeds

     [ https://issues.apache.org/jira/browse/TUSCANY-2939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende reassigned TUSCANY-2939:
----------------------------------------

    Assignee: Luciano Resende

> Null entries returned from external Atom feeds
> ----------------------------------------------
>
>                 Key: TUSCANY-2939
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2939
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA ATOM Binding Extension
>            Reporter: Brent Daniel
>            Assignee: Luciano Resende
>
> 	I'm trying to use a reference to an external feed with the org.apache.tuscany.sca.data.collection.Collection interface, but I'm running into problems. The new feed-aggregator tests display this issue. 
> The problems show up in AtomBindingUtil.entry(...)
>  if (itemClassType.getPhysical() == Item.class) {       	
>         String key = feedEntry.getId().toString();
>       ...     
> The code doesn't get into this block of code because the physical type is java.lang.Object ( this originates from the return type of Collection.get() which is Object -- this is set in the reference binding provider's createInvoker method) If I change the code to force it to go through this block, things work OK.
> In the 'else' block that the code goes through instead, the following lines will cause the method to always return a null entry:
>                if (feedEntry.getContentElement().getElements().size() == 0) {
>                         return null;
>                 }
> The <content> element of the returned feed is just some HTML, so there are no subelements.
> My assumption is that the first block of code is intended to handle this case, but I'm not sure how this code should correctly identify that we are using org.apache.tuscany.sca.data.collection.Item

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.