Open
Description
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):
- Request: https://my.server.com/gitblit/feed/sebc/jira-gitblit-integration-plugin.git?s=SBC-500
- Response:
<?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&h=170f9e0dc3b35517480db5f11ad441010b968a60</link>
...
As you can see, the link in the last line of the response is not the same as expected:
- Wrong URL: https://my.server.com/gitblit/commit/?r=sebc!jira-gitblit-integration-plugin.git&h=170f9e0dc3b35517480db5f11ad441010b968a60
- Correct URL: https://my.server.com/gitblit/commit/?r=sebc/jira-gitblit-integration-plugin.git&h=170f9e0dc3b35517480db5f11ad441010b968a60
So the '!' should be replaced by a '/' if you have a hierarchy of projects.