Xyrio / RSSOwlnix

RSSOwlnix is a fork of RSSOwl a powerful application to organize, search and read your RSS, RDF & Atom news feeds in a comfortable way. Highlights are saved searches, notifications, filters, fast fulltext search and a flexible, clean user interface.
Eclipse Public License 1.0
237 stars 22 forks source link

Supporting special characters in URL? #24

Open wk2001 opened 6 years ago

wk2001 commented 6 years ago

It seems that RSS-URLs from Jira do not work, e.g. I cannot get the following URL and get a 400 Bad Request error:

java.lang.IllegalArgumentException: Node path "https:\2f\2fjira.com\2fsr\2fjira.issueviews:searchrequest-rss\2ftemp\2fSearchRequest.xml?jqlQuery=assignee+%3D+currentUser()+AND+resolution+%3D+Unresolved+and+status+not+in+(Done)+ORDER+BY+updatedDate+DESC&tempMax=1000" is not valid.

This works in other RSS readers.

Other URL not working: https://jira.com/sr/jira.issueviews:searchrequest-rss/temp/SearchRequest.xml?jqlQuery=project+in+%28XYZ%29+and+updated+%3E%3D+-14d+ORDER+BY+updated+DESC&tempMax=1000

Simple URLs like https://jira.com/activity?maxResults=90&streams=key+IS+XYZ&os_authType=basic&title=XYZ-Stream are working fine.

Do you have a workaround or an idea how to fix it?

Xyrio commented 6 years ago

i cant find an error due to the url in current rssowlnix so far.

wk2001 commented 6 years ago

I tried the original version 2.2.1 first, where I've seen the problems with the above RSS-feeds. After that I found your fork (thank you for the further development btw!) and installed 2.5.5-beta. I copied the configuration from the old version, where probably the above IllegalArgumentException came from.

When I newly add the feed I don't get the exception anymore but only this (exporting the log):

--- Summary of Feeds that are not Loading -----------------------------------------------

Error loading 'XYZ 14d'
Problem: Server returned HTTP Status 400 (Bad Request)
Link: https://jira.com/sr/jira.issueviews:searchrequest-rss/temp/SearchRequest.xml?jqlQuery=project+in+%28XYZ%29+and+updated+%3E%3D+-14d+ORDER+BY+updated+DESC&tempMax=1000

This link is working in the browser and other feed reader. Also other feeds from the same domain are working in RSSOwlnix.

There are no entries in /.metadata/.log regarding this failure.

The link above comes directly from Jira (7.3.9), which offers an export to a rss-feed for special queries.

Thanks & regards

Xyrio commented 6 years ago

add a line with -Drssowl.http.debug=true at the end of rssowlnix.ini then rename/delete the existing logs first then start and add the feed as it were new and paste the log contents here.

the header infos around lines containing << HTTP/1.1 400 are the most helpful ones. basically what is sent to the server that causes the 400. how does the bad request look like. >> is sent by rssowlnix to the server and << is what is received from the server. in particular the line containing >> GET has the request.

you can remove the feed content completely just maybe mark it as and change the links but try to change links the same way, so that what was the same before would still be the same afterwards within the log.

ps: menu: help / export logfile... schould provide the right log too.

Xyrio commented 4 years ago

as a workaround: since 2.8.0 one can use shell:// protocol to call external scripts that provide the rss content.