You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Mark Fortner <ph...@gmail.com> on 2007/03/20 21:52:21 UTC

Invalid Planet RSS Aggregation Generated

I created a Planet RSS aggregation group, and successfully added several
subscriptions.  However, when I try to view the RSS using the following
URL,  http://localhost:8080/roller/planetrss?group=Status

I get invalid XML.  It turns out that the "Read More" links that get
generated are invalid.  They contain a spurious character at the start of
the "href" attribute.

[&lt;a href="�http://localhost:8080/roller/mfortner/entry/20070320"&gt;Read
More&lt;/a&gt;]

I can save this file, remove the characters, and the RSS parses properly.

Can someone take a look at the code that's generating the feed and fix this?

I looked at the RSS-related issues in JIRA but didn't see a duplicate
of this issue.

Regards,

Mark Fortner

Re: Invalid Planet RSS Aggregation Generated

Posted by Dave <sn...@gmail.com>.
On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
> I also used the following URL (
> http://localhost:8080/roller/bross/feed/entries/rss) which generated a feed
> that contained an atom:summary tag in it.  If I comment out the tag and
> redisplay it in Sage/FireFox, then things are parsed properly.

All of the feed readers (including Firefox itself) I've tested ignore
that <atom:summary> element in the RSS feeds, so that's an unfortunate
bug in Sage.

Possible work-arounds:
- Use the Atom feed instead
- Use a different feed reader
- Hack the feeds.vm template to remove the <atom:summary> element from RSS feeds

- Dave

Re: Invalid Planet RSS Aggregation Generated

Posted by Mark Fortner <ph...@gmail.com>.
I also used the following URL (
http://localhost:8080/roller/bross/feed/entries/rss) which generated a feed
that contained an atom:summary tag in it.  If I comment out the tag and
redisplay it in Sage/FireFox, then things are parsed properly.

Mark

On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
>
> I'm using the latest download available from the site ( version 3.0 ).
> I don't think I'm using the Read More plugin.  Is there a way I can double
> check?
>
> Mark
>
> On 3/20/07, Dave <sn...@gmail.com> wrote:
> >
> > What version of Roller are you using?
> >
> > Are you using the Read More plugin?
> >
> > - Dave
> >
> >
> >
> > On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
> > > I created a Planet RSS aggregation group, and successfully added
> > several
> > > subscriptions.  However, when I try to view the RSS using the
> > following
> > > URL,  http://localhost:8080/roller/planetrss?group=Status
> > >
> > > I get invalid XML.  It turns out that the "Read More" links that get
> > > generated are invalid.  They contain a spurious character at the start
> > of
> > > the "href" attribute.
> > >
> > > [&lt;a
> > href="�http://localhost:8080/roller/mfortner/entry/20070320"&gt;Read
> > > More&lt;/a&gt;]
> > >
> > > I can save this file, remove the characters, and the RSS parses
> > properly.
> > >
> > > Can someone take a look at the code that's generating the feed and fix
> > this?
> > >
> > > I looked at the RSS-related issues in JIRA but didn't see a duplicate
> > > of this issue.
> > >
> > > Regards,
> > >
> > > Mark Fortner
> > >
> >
>
>

Re: Invalid Planet RSS Aggregation Generated

Posted by Mark Fortner <ph...@gmail.com>.
After looking into this further, it turns out that the strange character is
actually introduced using the editors.  I can manually remove the character
using the View Source checkbox, but after saving it, and the character
returns.  I've tried viewing the character with UTF-8, and a variety of
other character sets, but I can't seem to turn it into anything viewable.

I added CDATA blocks to the planetrss.vm file and that seems to take care of
the problem.

One last area of confusion is the planetrss groups.  In my mind, you create
a list of subscriptions (basically the URLs for all of the RSS feeds that
you want to group together.  You should then be able to associate any
combination of subscriptions with any group.)    For example, if I want to
group Joe and Charlie's Status feeds into a single aggregation group (called
Development_Group_Status) then I should be able to do that by simply adding
their RSS URLs to that group.  But this doesn't seem to be the case.

Several times, I've found myself wondering how a subscriber came to appear
in a group that I created.  Even though I know, I never added that person to
the group.

Are there any plans on changing the UI to make it easier to add
subscriptions to groups.  Perhaps using list boxes and arrow buttons to move
subscribers to/from a group.

Mark

On 3/21/07, Dave <sn...@gmail.com> wrote:
>
> On 3/21/07, Mark Fortner < phidias51@gmail.com> wrote:
> > Is there any way to get plantrss to return the entire description
> instead of
> > just a partial description?  We'd like to be able to use Roller to "roll
> up"
> > status reports from different groups within our company.
>
> Yes. You can edit the WEB-INF/velocity/templates/planet/planetrss.vm file.
>
> Make a back-up first. Refer to docs for Apache Velocity and the Roller
> Template Guide for details on the template language, model objects and
> macros available.
>
> - Dave
>

Re: Invalid Planet RSS Aggregation Generated

Posted by Dave <sn...@gmail.com>.
On 3/21/07, Mark Fortner <ph...@gmail.com> wrote:
> Is there any way to get plantrss to return the entire description instead of
> just a partial description?  We'd like to be able to use Roller to "roll up"
> status reports from different groups within our company.

Yes. You can edit the WEB-INF/velocity/templates/planet/planetrss.vm file.

Make a back-up first. Refer to docs for Apache Velocity and the Roller
Template Guide for details on the template language, model objects and
macros available.

- Dave

Re: Invalid Planet RSS Aggregation Generated

Posted by Mark Fortner <ph...@gmail.com>.
Is there any way to get plantrss to return the entire description instead of
just a partial description?  We'd like to be able to use Roller to "roll up"
status reports from different groups within our company.

Mark

On 3/21/07, Dave <sn...@gmail.com> wrote:
>
> On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
> > I'm using the latest download available from the site ( version 3.0 ).
> > I don't think I'm using the Read More plugin.  Is there a way I can
> double
> > check?
>
> Never mind that question about Read More, I was confused. The planet
> feeds include partial content and a [Read More] link but do not use
> the Read More plugin.
>
> I can't explain how that "?" character got in your feed URL and I
> cannot duplicate it with my Roller 3.0 installation.
>
> - Dave
>

Re: Invalid Planet RSS Aggregation Generated

Posted by Dave <sn...@gmail.com>.
On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
> I'm using the latest download available from the site ( version 3.0 ).
> I don't think I'm using the Read More plugin.  Is there a way I can double
> check?

Never mind that question about Read More, I was confused. The planet
feeds include partial content and a [Read More] link but do not use
the Read More plugin.

I can't explain how that "?" character got in your feed URL and I
cannot duplicate it with my Roller 3.0 installation.

- Dave

Re: Invalid Planet RSS Aggregation Generated

Posted by Mark Fortner <ph...@gmail.com>.
I'm using the latest download available from the site ( version 3.0 ).
I don't think I'm using the Read More plugin.  Is there a way I can double
check?

Mark

On 3/20/07, Dave <sn...@gmail.com> wrote:
>
> What version of Roller are you using?
>
> Are you using the Read More plugin?
>
> - Dave
>
>
>
> On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
> > I created a Planet RSS aggregation group, and successfully added several
> > subscriptions.  However, when I try to view the RSS using the following
> > URL,  http://localhost:8080/roller/planetrss?group=Status
> >
> > I get invalid XML.  It turns out that the "Read More" links that get
> > generated are invalid.  They contain a spurious character at the start
> of
> > the "href" attribute.
> >
> > [&lt;a
> href="�http://localhost:8080/roller/mfortner/entry/20070320"&gt;Read
> > More&lt;/a&gt;]
> >
> > I can save this file, remove the characters, and the RSS parses
> properly.
> >
> > Can someone take a look at the code that's generating the feed and fix
> this?
> >
> > I looked at the RSS-related issues in JIRA but didn't see a duplicate
> > of this issue.
> >
> > Regards,
> >
> > Mark Fortner
> >
>

Re: Invalid Planet RSS Aggregation Generated

Posted by Dave <sn...@gmail.com>.
What version of Roller are you using?

Are you using the Read More plugin?

- Dave



On 3/20/07, Mark Fortner <ph...@gmail.com> wrote:
> I created a Planet RSS aggregation group, and successfully added several
> subscriptions.  However, when I try to view the RSS using the following
> URL,  http://localhost:8080/roller/planetrss?group=Status
>
> I get invalid XML.  It turns out that the "Read More" links that get
> generated are invalid.  They contain a spurious character at the start of
> the "href" attribute.
>
> [&lt;a href="�http://localhost:8080/roller/mfortner/entry/20070320"&gt;Read
> More&lt;/a&gt;]
>
> I can save this file, remove the characters, and the RSS parses properly.
>
> Can someone take a look at the code that's generating the feed and fix this?
>
> I looked at the RSS-related issues in JIRA but didn't see a duplicate
> of this issue.
>
> Regards,
>
> Mark Fortner
>