Expand my Community achievements bar.

SOLVED

Some problem in importing the XML feeds on to the blog by using the feed importer

Avatar

Level 2

Hi Team,

I have used the below mentioned link for the feed importer option which is available

https://dev.day.com/docs/en/cq/current/administering/social_communities/blogs.html;

At the bottom line, after the specified interval of time the imported data(xml data) should appear on the blog. But after incorporating the changes, I couldn't notify any sort of imported data after specified amount of time. My logs are as follows

22.01.2014 14:41:45.219 *INFO* [pool-6-thread-5] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Importing data from rss:http://localhost:4502/content/dam/gsk/rssFeeds.xml to /content/geometrixx/gsk-blog as admin by com.adobe.cq.social.blog.impl.importer.FeedImporter@73f6fb
22.01.2014 14:41:45.220 *INFO* [pool-6-thread-5] com.adobe.cq.social.blog.impl.importer.FeedImporter fetching feed 'http://localhost:4502/content/dam/gsk/rssFeeds.xml'
22.01.2014 14:41:45.221 *INFO* [127.0.0.1 [1390381905221] GET /content/dam/gsk/rssFeeds.xml HTTP/1.1] org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
22.01.2014 14:41:45.222 *INFO* [pool-6-thread-5] org.apache.commons.httpclient.auth.AuthChallengeProcessor basic authentication scheme selected
22.01.2014 14:41:45.222 *INFO* [pool-6-thread-5] org.apache.commons.httpclient.HttpMethodDirector No credentials available for BASIC 'Sling (Development)'@localhost:4502
22.01.2014 14:41:45.222 *WARN* [pool-6-thread-5] com.adobe.cq.social.blog.impl.importer.FeedImporter Could not fetch feed 'http://localhost:4502/content/dam/gsk/rssFeeds.xml'. The requested resource could not be found. HTTP Response code was:401

22.01.2014 14:41:48.958 *INFO* [jackrabbit-pool-1] org.apache.jackrabbit.core.query.lucene.IndexMerger merged 108 documents in 70 ms into _1j0w.
22.01.2014 14:41:56.687 *WARN* [0:0:0:0:0:0:0:1 [1390381916677] GET /etc/clientcontext/default/content/jcr:content/stores.init.js HTTP/1.1] com.adobe.cq.commerce.common.AbstractJcrCommerceSession Unable to extract locale from page /content/geometrixx/gsk-blog, falling back to default locale en_US.

Can you folks help me out what could be down for obtaining the imported xml feeds in the blog/page ??????

1 Accepted Solution

Avatar

Correct answer by
Employee

If the URL you are importing requires authentication (which is likely the case if you are accessing an author server), then you need to provide the username and password in the URL, i.e. http://username:password@localhost:4502/content/dam/gsk/rssFeeds.xml 

View solution in original post

4 Replies

Avatar

Level 2

One thing notable in the logs is the first line you show:

 Importing data from rss:http://localhost:4502/content/dam/gsk/rssFeeds.xml to /content/geometrixx/gsk-blog as admin

by com.adobe.cq.social.blog.impl.importer.FeedImporter@73f6fb

 

/content/dam is ACL controlled in CRX and authorization is failing to find the xml (you placed?) there.

Another point is you placed the gsk-blog directly under /content/geometrixx/.  It is recommended to locate it under /content/geometrixx/en/

If you want to experiment, why not try with the Geometrixx demo blog (http://localhost:4502/content/geometrixx/en/blog.html) and  an external RSS feed.

Try using http://www.kqed.org/quest/blog/feed/

[img]FeedImporterSample.png[/img]

I just tried that and it worked.

I hope that helps.

Avatar

Level 10

I have passed this on to the doc team. I am hoping to get an answer for this question. 

Avatar

Correct answer by
Employee

If the URL you are importing requires authentication (which is likely the case if you are accessing an author server), then you need to provide the username and password in the URL, i.e. http://username:password@localhost:4502/content/dam/gsk/rssFeeds.xml 

Avatar

Level 2

justin_at_adobe wrote...

If the URL you are importing requires authentication (which is likely the case if you are accessing an author server), then you need to provide the username and password in the URL, i.e. http://username:password@localhost:4502/content/dam/gsk/rssFeeds.xml 

 

Awesome mate.
Thanks a lot Justin !!!

Its working fine now after giving away the username & password.I could able to obtain the rssFeeds.xml in the respective blog :)