[ 
https://issues.apache.org/jira/browse/JSPWIKI-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex O'Ree updated JSPWIKI-1226:
--------------------------------
    Description: 
with the following input 
{noformat}
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
  <channel>
    <title>Department: Main</title>
    <link>/department</link>
    <description>Oh poor me, my owner has not set a channel description at all. 
Pity me.</description>
    <language>en-us</language>
    <generator>JSPWiki 3.0.0-git-04</generator>
    <item>
      <link>/department/Wiki.jsp?page=Main&amp;version=2</link>
      <title>Main, version 2</title>
      <description>Admin changed this page on Sat Nov 08 12:50:45 EST 
2025:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;table class="diff" border="0" 
cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;&lt;td class="diff"&gt;At line 2 added 2 
lines&lt;/td&gt;&lt;/tr&gt;&#xD;
&lt;tr&gt;&lt;td class="diffadd"&gt;&lt;/td&gt;&lt;/tr&gt;&#xD;
&lt;tr&gt;&lt;td class="diffadd"&gt;test2&lt;/td&gt;&lt;/tr&gt;&#xD;
&lt;/table&gt;</description>
      <pubDate>Sat, 08 Nov 2025 17:50:45 GMT</pubDate>
    </item>
    <item>
      <link>/department/Wiki.jsp?page=Main&amp;version=1</link>
      <title>Main, version 1</title>
      <description>Admin created this page on Sat Nov 08 12:44:51 EST 
2025:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;test
&lt;/p&gt;&lt;p&gt;test2
&lt;/p&gt;</description>
      <pubDate>Sat, 08 Nov 2025 17:44:51 GMT</pubDate>
    </item>
  </channel>
</rss>
{noformat}
getting the following validation errors

 
{noformat}
This feed does not validate.



line 6, column 21: link must be a full and valid URL: /department [help]    
<link>/department</link>
                     ^
line 11, column 56: link must be a full and valid URL: 
/department/Wiki.jsp?page=Main&version=2 (2 occurrences) [help]      
<link>/department/Wiki.jsp?page=Main&amp;version=2</link>
                                                        ^

In addition, interoperability with the widest range of feed readers 
could be improved by implementing the following recommendations.




line 19, column 4: item should contain a guid element (2 occurrences) [help]    
</item>
    ^
line 28, column 2: Missing atom:link with rel="self" [help]  </channel>
  ^
{noformat}

> rss.jsp produces slightly invalid output
> ----------------------------------------
>
>                 Key: JSPWIKI-1226
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1226
>             Project: JSPWiki
>          Issue Type: Bug
>            Reporter: Alex O'Ree
>            Priority: Minor
>
> with the following input 
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
>   <channel>
>     <title>Department: Main</title>
>     <link>/department</link>
>     <description>Oh poor me, my owner has not set a channel description at 
> all. Pity me.</description>
>     <language>en-us</language>
>     <generator>JSPWiki 3.0.0-git-04</generator>
>     <item>
>       <link>/department/Wiki.jsp?page=Main&amp;version=2</link>
>       <title>Main, version 2</title>
>       <description>Admin changed this page on Sat Nov 08 12:50:45 EST 
> 2025:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;table class="diff" border="0" 
> cellspacing="0" cellpadding="0"&gt;
> &lt;tr&gt;&lt;td class="diff"&gt;At line 2 added 2 
> lines&lt;/td&gt;&lt;/tr&gt;&#xD;
> &lt;tr&gt;&lt;td class="diffadd"&gt;&lt;/td&gt;&lt;/tr&gt;&#xD;
> &lt;tr&gt;&lt;td class="diffadd"&gt;test2&lt;/td&gt;&lt;/tr&gt;&#xD;
> &lt;/table&gt;</description>
>       <pubDate>Sat, 08 Nov 2025 17:50:45 GMT</pubDate>
>     </item>
>     <item>
>       <link>/department/Wiki.jsp?page=Main&amp;version=1</link>
>       <title>Main, version 1</title>
>       <description>Admin created this page on Sat Nov 08 12:44:51 EST 
> 2025:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;test
> &lt;/p&gt;&lt;p&gt;test2
> &lt;/p&gt;</description>
>       <pubDate>Sat, 08 Nov 2025 17:44:51 GMT</pubDate>
>     </item>
>   </channel>
> </rss>
> {noformat}
> getting the following validation errors
>  
> {noformat}
> This feed does not validate.
> line 6, column 21: link must be a full and valid URL: /department [help]    
> <link>/department</link>
>                      ^
> line 11, column 56: link must be a full and valid URL: 
> /department/Wiki.jsp?page=Main&version=2 (2 occurrences) [help]      
> <link>/department/Wiki.jsp?page=Main&amp;version=2</link>
>                                                         ^
> In addition, interoperability with the widest range of feed readers 
> could be improved by implementing the following recommendations.
> line 19, column 4: item should contain a guid element (2 occurrences) [help]  
>   </item>
>     ^
> line 28, column 2: Missing atom:link with rel="self" [help]  </channel>
>   ^
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to