Bug 340463

Summary: Wrong article url for github feed in akregator
Product: [Applications] akregator Reporter: Dmitry Roshchin <dmitry>
Component: feed parserAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: osterfeld
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Dmitry Roshchin 2014-10-29 14:27:56 UTC
Github provides atom feed for released tarballs, but akregator returns wrong article url.
For example:
feed - https://github.com/xianyi/OpenBLAS/releases.atom
correct url - https://github.com/xianyi/OpenBLAS/releases/tag/v0.2.12
akregator url - file:///xianyi/OpenBLAS/releases/tag/v0.2.12

KDE 4.14.1

Reproducible: Always
Comment 1 Christophe Marin 2014-10-29 19:53:41 UTC
Sounds like a github bug. The atom file contains:

  <entry>
    <id>tag:github.com,2008:Repository/1286805/v0.2.12</id>
    <updated>2014-10-13T02:12:48-07:00</updated>
    <link rel="alternate" type="text/html" href="/xianyi/OpenBLAS/releases/tag/v0.2.12"/>
    <title>OpenBLAS 0.2.12 version</title>
    <content type="html">

[...]

  </entry>
Comment 2 Christophe Marin 2014-10-29 21:12:56 UTC
To be more precise. A relative url in 'link rel' is valid, but then the 'feed' tag at the beginning of the atom file shall contain 'xml:base="https://github.com"'

ie:
instead of:
 <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US">

There should be:
 <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US" xml:base="https://github.com">
Comment 3 Frank Osterfeld 2015-10-18 09:25:18 UTC
As Christophe said, this is a feed problem