Feeds service for ATOM and RSS is broken

Steps to reproduce

The feeds service was broken in and commented out to give service unavailable:

https://bitbucket.org/opencast-community/matterhorn/diff/modules/matterhorn-search-service-impl/src/main/java/org/opencastproject/feed/impl/FeedServlet.java?diff2=ac27d0fdaa94&at=t/MH-10923-filter-track-by-tag

Steps to reproduce:

1. Access any feed URL e.g. /feeds/atom/1.0/latest

Actual Results:

503 Service unavailable

Expected Results:

Feed should be returned.
Workaround (if any):

Activity

Show:
Greg Logan
August 23, 2016, 7:28 PM

Good catch, thanks guys. I'm not all that familiar with how feeds work aside from some very basic testing, but I've gone through and tested the four classes above and things should work now! New PR filed at https://bitbucket.org/opencast-community/matterhorn/pull-requests/1142.

Stephen Marquard
August 19, 2016, 5:58 PM

For QA, there are 4 implementation classes that need testing:

feed.class=org.opencastproject.feed.impl.AggregationFeedService
feed.class=org.opencastproject.feed.impl.CustomFeedService
feed.class=org.opencastproject.feed.impl.LatestFeedService (working)
feed.class=org.opencastproject.feed.impl.SeriesFeedService (not working)

Stephen Marquard
August 19, 2016, 5:42 PM

May be a long-standing issue, but this logging is a bit misleading:

2016-08-19 19:38:05,668 | INFO | (FeedServiceImpl:226) - Registering 'http://mediadev.uct.ac.za/series' feed

as that isn't actually a valid URL.

Corné Oosthuizen
August 19, 2016, 12:28 PM
Edited

Hi Greg,

Thank you very much for fixing this service.

This url returns correctly http://localhost:8080/feeds/atom/1.0/latest, which shows the latest published videos (all part of the same series).
[ Attached Image ]

This fails:
../feeds/atom/1.0/series/a7f0fd04-92da-4e7e-a235-9f44569cbbac

2016-08-19 14:13:26,381 | WARN | (JAXRSUtils:374) - .No operation matching request path /atom/1.0/series/a7f0fd04-92da-4e7e-a235-9f44569cbbac is found, HTTP Method : GET, ContentType : /, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8,.
2016-08-19 14:13:26,382 | WARN | (WebApplicationExceptionMapper:52) - WebApplicationException has been caught : no cause is available

...

2016-08-19 14:19:45,827 | WARN | (WebApplicationExceptionMapper:52) - WebApplicationException has been caught : no cause is available
2016-08-19 14:19:48,657 | WARN | (JAXRSUtils:374) - .No operation matching request path /alphabetical/a is found, HTTP Method : GET, ContentType : /, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8,.

Kind regards,
Corné

Former user
August 9, 2016, 4:00 PM

This may be relevant
Opencast develop has <karaf.version>3.0.6</karaf.version>
see accepted answer at http://stackoverflow.com/questions/30593547/serving-static-files-with-jetty-in-karaf-outside-of-bundle
https://ops4j1.jira.com/browse/PAXWEB-660

Fixed and reviewed

Assignee

Greg Logan

Reporter

Stephen Marquard

Severity

Non Functioning