cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with RSS

vicky
Champ in-the-making
Champ in-the-making
Hello!
Plis I want your help. I´m using Alfresco and I have some problems after I activate the RSS.

1. When I acces whit whatever user I can´t see RSS because it show me a menssage, WHERE say
An invalid character was found in text content. Error processing resource 'http://server3:8080/alfresco/guestTemplate/works

         <pubDate>mi

2. Some ocations I can't see the RSS because, because it present a message where say:

State HTTP 403
Report of state
The access to the resource specified () has been prohibited.

Apache Tomcat/5.5.20



I wish  You will help me

Thanks…
8 REPLIES 8

simon
Champ in-the-making
Champ in-the-making
Vicky,

I'm not sure but as far as I know you can not use RSS with authentication at this point so you need to add guest to the space where you need the RSS feed. Maybe this explains one of your problems?

It's the reason we can't use the RSS templates at this point, all documents are restricted.  Smiley Sad

schneika
Champ in-the-making
Champ in-the-making
1. Perhaps some trouble with the internationalization special charakters?
We have the same trouble with Spezial Language Charakters like ä ü ö and so one. No Solution, too…  Smiley Sad 
We use Alfresco V2.0 CE in german version.
Any Ideas?

vicky
Champ in-the-making
Champ in-the-making
Hello

I foud a solution to that. You have to change into the RSS code the lenguage because it contain english like default lenguage.  For example In my case I need to use Spanish and I changed that line

   <language>en-us</language>
into
<language>es-es</language>

schneika
Champ in-the-making
Champ in-the-making
I use the following template, but without success:

<?xml version="1.0"?>
<#setting url_escaping_charset='UTF-8'>
<rss version="2.0">
   <channel>
      <title>Corporate Identity QMS-Handbuch RSS</title>
      <copyright>Copyright © 2007 Corporate-Identity</copyright>
      <#assign hostname="http://spdms01-1:8080/alfresco">
      <#assign spaceref="${hostname}/navigate/browse/${space.nodeRef.storeRef.protocol}/${space.nodeRef.storeRef.identifier}/${space.nodeRef.id}">
      <#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz">
      <link>${spaceref}</link>
      <description>Aktualisierte Inhalte im '${space.name}'</description>
      <language>de-de</language>
      <lastBuildDate>${date?string(datetimeformat)}</lastBuildDate>
      <pubDate>${date?string(datetimeformat)}</pubDate>
      <ttl>120</ttl>
      <generator>Alfresco 2.0</generator>
      <image>
         <title>${space.name}</title>
         <width>32</width>
         <height>32</height>
         <link>${spaceref}</link>
         <url>${hostname}${space.icon32}</url>
      </image>
      <#assign weekms=1000*60*60*24*7>
      <#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child>
      <#if (dateCompare(child.properties["cm:modified"], date, weekms) == 1) || (dateCompare(child.properties["cm:created"], date, weekms) == 1)>
      <item>
         <title>${child.properties.name}</title>
         <link>${hostname}${child.url}</link>
         <description>
            ${"<a href='${hostname}${child.url}'>"?xml}${child.properties.name}${"</a>"?xml}
            <#if child.properties["cm:description"]?exists && child.properties["cm:description"] != "">
               ${child.properties["cm:description"]}
            </#if>
         </description>
         <pubDate>${child.properties["cm:modified"]?string(datetimeformat)}</pubDate>
         <guid isPermaLink="false">${hostname}${child.url}</guid>
      </item>
      </#if>
      </#list>
   </channel>
</rss>

The IE get a Feedcode-Error on German special characters.

kevinr
Star Contributor
Star Contributor
We fixed some issues with FreeMarker character set processing in the repository for 2.1. Can you try this German RSS feed with 2.1? If there's still a problem then please raise a JIRA issue and we'll take a look.

Thanks,

Kevin

schneika
Champ in-the-making
Champ in-the-making
No i have tried V2.1.0 CE Final without success.

This is my RSS-Template:

<?xml version="1.0" encoding="UTF-8"?>
<#setting url_escaping_charset="UTF-8">
<rss version="2.0">
   <channel>
      <title>QMS-Handbuch RSS-Feed</title>
      <copyright>Copyright © KGS 2007</copyright>
      <#assign hostname="http://spdms01-1:8080/alfresco">
      <#assign spaceref="${hostname}/navigate/browse/${space.nodeRef.storeRef.protocol}/${space.nodeRef.storeRef.identifier}/${space.nodeRef.id}">
      <#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz">
      <link>${spaceref}</link>
      <description>Aktualisierte Inhalte im '${space.name}'</description>
      <language>de-de</language>
      <lastBuildDate>${date?string(datetimeformat)}</lastBuildDate>
      <pubDate>${date?string(datetimeformat)}</pubDate>
      <ttl>120</ttl>
      <generator>Alfresco 2.1.1</generator>
      <image>
         <title>${space.name}</title>
         <width>32</width>
         <height>32</height>
         <link>${spaceref}</link>
         <url>${hostname}${space.icon32}</url>
      </image>
      <#assign weekms=1000*60*60*24*7>
      <#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child>
      <#if (dateCompare(child.properties["cm:modified"], date, weekms) == 1) || (dateCompare(child.properties["cm:created"], date, weekms) == 1)>
      <item>
         <title>${child.properties.name}</title>
         <link>${hostname}${child.url}</link>
         <description>
            ${"<a href='${hostname}${child.url}'>"?xml}${child.properties.name}${"</a>"?xml}
            <#if child.properties["cm:description"]?exists && child.properties["cm:description"] != "">
               ${child.properties["cm:description"]}
            </#if>
         </description>
         <pubDate>${child.properties["cm:modified"]?string(datetimeformat)}</pubDate>
         <guid isPermaLink="false">${hostname}${child.url}</guid>
      </item>
      </#if>
      </#list>
   </channel>
</rss>

This is my alfresco.sh, where i try to start the Tomcat-Java explicitly with UTF-8, is it correct?

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
ALF_HOME=/opt/Alfresco
cd "$ALF_HOME"
APPSERVER="$ALF_HOME"/tomcat
export JAVA_HOME="$ALF_HOME"/java
# Set any default JVM values
export JAVA_OPTS='-Xms512m -Xmx1024m -server -Dfile.encoding=UTF8'# Following only needed for Sun JVMs before to 1.5 update 8
export JAVA_OPTS="${JAVA_OPTS} -Dfile.encoding=UTF8 -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions"
#
if [ "$1" = "start" ]; then
  "$APPSERVER"/bin/startup.sh
  if [ -r ./virtual_start.sh ]; then
    sh ./virtual_start.sh
  fi
  if [ -r "$ALF_HOME"/start_oo.sh ]; then
    sh "$ALF_HOME"/start_oo.sh
  fi
elif [ "$1" = "stop" ]; then
  "$APPSERVER"/bin/shutdown.sh
  if [ -r ./virtual_start.sh ]; then
    sh ./virtual_stop.sh
  fi
  if [ -r "$ALF_HOME"/start_oo.sh ]; then
    killall soffice.bin
  fi
fi


The Feed cannot displayed.

   Feed-Error!

     Wrong Charakter in Content.
     Row: 183 Colum: 48

         <title>PB Muster am Beispiel Markteinf

The German Special-Charakters in Docuiment-Title cant be displayed!
The Content-Typ from the Feed-Header seems to be wrong, is not UTF-8:

http://localhost:8080/alfresco/guestTemplate/workspace/SpacesStore/b0bb598d-fe23-11db-a1d8-67c5081f7...

GET /alfresco/guestTemplate/workspace/SpacesStore/b0bb598d-fe23-11db-a1d8-67c5081f7bf4/workspace/SpacesStore/73a185eb-0791-11dc-83a7-a1f550e0d9b4/rss.xml?mimetype=text%2Fxml HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/alfresco/navigate/browse/workspace/SpacesStore/b0bb598d-fe23-11db-a1d8-67c5081...
Cookie: JSESSIONID=2D2DB4E8BDD0B8AB69F5D518A0853F88

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Wed, 22 Aug 2007 09:31:13 GMT

No i have no further ideas, how to configure an RSS-Feed for german-language-special-charakters, so that the IE 7.0 can display the Feed.

schneika
Champ in-the-making
Champ in-the-making
Are there further ideas?

schneika
Champ in-the-making
Champ in-the-making
Workaround: Instead of UTF-8 now i am using language charakter set in RSS-Header:

<?xml version="1.0" encoding="ISO-8859-1"?> 
<rss version="2.0">
   <channel>

Now everything seems ok with  the german Feed.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.