Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fetcher] allowDoctype not used for cache #234

Closed
mishako opened this issue Feb 9, 2016 · 1 comment
Closed

[fetcher] allowDoctype not used for cache #234

mishako opened this issue Feb 9, 2016 · 1 comment
Milestone

Comments

@mishako
Copy link
Member

mishako commented Feb 9, 2016

Issue by arosenheinrich
Sunday Aug 30, 2015 at 10:47 GMT
Originally opened as https://github.com/rometools/rome-fetcher/issues/19


I encountered the following problem using release 1.5.1: when trying to fetch a feed using Doctype I can not fetch it out of the box anymore because this is restricted by default. Setting system property rome.allowDoctype:true should enable it again. But this only seems to work when using a fetcher without cache:

    URL url = new URL("http://www.immobilienmanager.de/?id=640&type=100");
    //FeedFetcherCache feedInfoCache = HashMapFeedInfoCache.getInstance();
    //FeedFetcher feedFetcher = new HttpURLFeedFetcher(feedInfoCache);
    FeedFetcher feedFetcher = new HttpURLFeedFetcher();
    SyndFeed feed = feedFetcher.retrieveFeed(url);
    System.out.println(feed.getEntries().size());

When I use feedFetcher with feedInfoCache in my example it aint working. Seems like caches do not evaluate the rome.allowDoctype property.

@PatrickGotthard
Copy link
Member

Hi @arosenheinrich,

you shouldn't be able to fetch feeds with a doctype declaration regardless whether you use a cache or not. You were only able to allow doctype declarations directly on a SyndFeedInput instance. The (system) property you mentioned above doesn't exist? In the next ROME release you should be able to allow doctype declarations using rome-fetcher.

Regards,
Patrick

mishako added a commit that referenced this issue Mar 3, 2016
#234 Implemented possibility to allow doctype declarations using fetcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants