Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RSS News Portlet Can't Resolve URL
Hi,
I am using the RSS news portlet with this URL. (I have removed the company name):
https://jira.intra.com/jira/plugins/servlet/streams?key=HADOOP
The portlet does not display the news feed and displays this message: https://jira.intra.com/jira/plugins/servlet/streams?key=HADOOP cannot be found.
However, this URL does resolve in my web browser to an RSS feed. Also, a similar Jira news feed URL did resolve. What did I miss?
thanks,
Paul
I am using the RSS news portlet with this URL. (I have removed the company name):
https://jira.intra.com/jira/plugins/servlet/streams?key=HADOOP
The portlet does not display the news feed and displays this message: https://jira.intra.com/jira/plugins/servlet/streams?key=HADOOP cannot be found.
However, this URL does resolve in my web browser to an RSS feed. Also, a similar Jira news feed URL did resolve. What did I miss?
thanks,
Paul
Thiago Leão Moreira, modified 14 Years ago.
Liferay Legend
Posts: 1449
Join Date: 10/10/07
Recent Posts
Hey Paul,
I have tried to access those urls and none was accessible. Make sure that the box that is running Liferay has access to those urls as well.
I have tried to access those urls and none was accessible. Make sure that the box that is running Liferay has access to those urls as well.
Thanks for the reply. The URLs are internal - I removed the company name for privacy reasons. Nonetheless, they are accessible internally - so, I am not sure what is wrong.
Paul
Paul
I have successfully done RSS portlet see this thread
And I have different problem.
Could you post here your rss or xml file?
And I have different problem.
Could you post here your rss or xml file?
Yeah,
I found this problem using Weblogic as application server some time ago .
I was using RSS portlet and trying to connect to a server which returned "text/html" as content-type in the header but the XML returned used UTF-8 as encoding (<?xml version="1.0" encoding="UTF-8"?>), in this case server should be returned "text/html;charset=UTF-8".
If you could use a RSS validator you could be able to check if you are in this situation (you can check this manually if you can't use the validator for that URL), for example the following URL validates RSS feeds:
http://feedvalidator.org/
In these cases the validator returns:
Feeds should not be served with the "text/html" media type
Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"
Good luck!!
I found this problem using Weblogic as application server some time ago .
I was using RSS portlet and trying to connect to a server which returned "text/html" as content-type in the header but the XML returned used UTF-8 as encoding (<?xml version="1.0" encoding="UTF-8"?>), in this case server should be returned "text/html;charset=UTF-8".
If you could use a RSS validator you could be able to check if you are in this situation (you can check this manually if you can't use the validator for that URL), for example the following URL validates RSS feeds:
http://feedvalidator.org/
In these cases the validator returns:
Feeds should not be served with the "text/html" media type
Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"
Good luck!!
I have a better understanding of my RSS issue. I am using an internal RSS News feed from Jira:
https://jira.intra.mycompany.com/jira/plugins/servlet/streams?key=HADOOP
Notice that the protocol is https. I used curl to access the URL and got this message:
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
My conclusion is the Jira web server is using a self-signed cert that cannot be verified. I think this is the reason that the RSS Portlet cannot 'find' the news feed even though it resolves in my web browser. I probably created an certificate exception in Firefox and forgot about it.
So, besides creating a new Jira cert, what options do I have? Can the RSS Portlet be configured to turn off certificate verification?
Also, please tell me how I can get the source code for the Default Liferay RSS Portlet? I'd be happy to get this working and submit a patch.
https://jira.intra.mycompany.com/jira/plugins/servlet/streams?key=HADOOP
Notice that the protocol is https. I used curl to access the URL and got this message:
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
My conclusion is the Jira web server is using a self-signed cert that cannot be verified. I think this is the reason that the RSS Portlet cannot 'find' the news feed even though it resolves in my web browser. I probably created an certificate exception in Firefox and forgot about it.
So, besides creating a new Jira cert, what options do I have? Can the RSS Portlet be configured to turn off certificate verification?
Also, please tell me how I can get the source code for the Default Liferay RSS Portlet? I'd be happy to get this working and submit a patch.
If the self-signed certificate is your problem, you can add it to your java keystore, here is some information.
Julien Bonjean:
If the self-signed certificate is your problem, you can add it to your java keystore, here is some information.
Thanks for the suggestion. I enabled SSL for the Tomcat web server, verified the tomcat certificate and confirmed that I had imported the cert from the remote web server into Tomcat's local keystore. I restart Tomcat and tried to access the RSS feed again. The RSS Portlet still says that it cannot find the feed. I can access the feed on the Liferay server machine using curl -k [RSS URL].
Any ideas why the portlet cannot find the feed?
Did you check the logs ? Without more information, it will be difficult to know what happen. If nothing is in the log, you will have to run Liferay with Eclipse and debug the code to check what goes wrong (or debug remotely).
I checked the logs and there are no error messages. I will try your debugging suggestion. Thanks.
The source for the RSS portlet is in the svn:
http://www.liferay.com/community/wiki/-/wiki/Main/SVN
http://www.liferay.com/community/wiki/-/wiki/Main/SVN
Community
Company
Feedback