Skip to content

RSS Feed returns wrong URL to commit #1268

Open
@mliebelt

Description

@mliebelt

We are using GitBlit 1.8.0 and are using the RSS Feeds for getting information. We have noticed, that when we search for a part of a message (a ticket ID), we get in response the commits that are matching (which is great), but the link part of the XML structure is not correct.

Here is the data (with example server in it):

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>sebc/jira-gitblit-integration-plugin.git (HEAD)</title>
    <link>https://my.server.com/gitblit/summary/?r=sebc%2Fjira-gitblit-integration-plugin.git</link>
    <description>...</description>
    <image>...</image>
    <item>
      <title>SBC-500 My Changes</title>
      <link>https://my.server.com/gitblit/commit/?r=sebc!jira-gitblit-integration-plugin.git&amp;h=170f9e0dc3b35517480db5f11ad441010b968a60</link>
      ...

As you can see, the link in the last line of the response is not the same as expected:

So the '!' should be replaced by a '/' if you have a hierarchy of projects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions