cancel
Showing results for 
Search instead for 
Did you mean: 

RSS problem

morphinof
Champ in-the-making
Champ in-the-making
Hi,

I have a weird problem with RSS links list when i click on a RSS suscribe link :

Everything is fine in the editorial version.
On the live version the website name is missing in the article title link for each articles :

Links looks like this : http://mydomain/news/news1.html instead of http://mydomain/wcmqs/news/news1.html

Do you have any idea to solve this ?

Thanks a lot.
13 REPLIES 13

bremmington
Champ on-the-rise
Champ on-the-rise
If you look at the properties on your live website node in the repository, what is the value of its "Web Context" property?

morphinof
Champ in-the-making
Champ in-the-making
Actualy it's the name of the website, the missing part of the generated links.

bremmington
Champ on-the-rise
Champ on-the-rise
That *is* the web context. What is the value of that property on your live website node?

bremmington
Champ on-the-rise
Champ on-the-rise
Sorry, perhaps I misunderstood your last post. Were you saying that the value of the web context property is "wcmqs"?

morphinof
Champ in-the-making
Champ in-the-making
It's "somefluFR" and it's the missing part in the links.

morphinof
Champ in-the-making
Champ in-the-making
No it was for the exemple with basic wcmqs package Smiley Happy

Here is the rss page : http://share.someflu.org/somefluFR/actualites/rss.xml

bremmington
Champ on-the-rise
Champ on-the-rise
I see what you mean, but I'm puzzled as to how that could be happening. Have you made any changes to the way in which the RSS feed is generated?

morphinof
Champ in-the-making
Champ in-the-making
Saddly i didn't change anything, if found that rss is not managed by wcmqs when i tried to fix this problem, i'm puzzled too because it works fine in editorial.

bremmington
Champ on-the-rise
Champ on-the-rise
Yes, very strange. The *only* thing I can think of is the value of the context property on the live website node. Perhaps if I describe how the RSS is being generated then that will prompt some ideas…

The request for "/any/path/at/all/rss.xml" is routed to a special Spring controller: "org.alfresco.wcm.client.controller.RssController". This simply returns a view name "rssfeed". This view is resolved to a java-backed Surf component (webscript) named "org.alfresco.wcm.client.webscript.RssWebScript".

This outputs the XML, and the relevant line for this topic is:
entry.setLink(urlUtils.getWebsiteDomain(webSite)+urlUtils.getUrl(asset));
and the relevant part of that is the call to urlUtils.getWebsiteDomain which looks like this:

    public String getWebsiteDomain(WebSite webSite)
    {
        return "http://'+webSite.getHostName()+(webSite.getHostPort() == 80 ? "" : ":"+webSite.getHostPort()+"/"+webSite.getContext());
    }
Apart from making a mental note to myself to move the protocol (http) into the repo too, this seems to be correct, and I can't see how it can be missing out the context part. Very perplexing.