Bug 340463 - Wrong article url for github feed in akregator
Summary: Wrong article url for github feed in akregator
Status: RESOLVED NOT A BUG
Alias: None
Product: akregator
Classification: Applications
Component: feed parser (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 14:27 UTC by Dmitry Roshchin
Modified: 2015-10-18 09:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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