RSS Binding is failing to detect whether the Java component implementation 
supports RSS feeds
---------------------------------------------------------------------------------------------

                 Key: TUSCANY-3113
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3113
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA RSS Binding Extension
    Affects Versions: Java-SCA-1.5
         Environment: SVN revision 786928
Linux
            Reporter: Mark Combellack
            Assignee: Mark Combellack
             Fix For: Java-SCA-Next


As part of the RSS Binding, the RSSBindingListenerServlet class in the 
binding-rss-rome package checks to see whether the Java component 
implementation that it has been applied to supports RSS feeds. To do this, it 
looks for the get() method (lines 94 to 121) [1] and if it is present it sets 
supportsFeedEntries to true.

The target interface for an RSS feed component is the 
org.apache.tuscany.sca.binding.rss.collection.Collection [2] but unfortunately, 
this does not have a get() method so the above check done by the 
RSSBindingListenerServlet class will never find a get() method.

As a result, the RSS binding decides that the component implementation does not 
support RSS feeds when it actually does.


[1] 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingListenerServlet.java?annotate=786961&sortby=date&pathrev=786961#l94
[2] 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/collection/Collection.java?annotate=713805&sortby=date&pathrev=713805

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

Reply via email to