My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2819: commentlink does not support non-http protocol identifiers
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by trevor.s...@gmail.com, Aug 7, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:
2.7, 2.9-rc1

What steps will reproduce the problem?
1. Add the following commentlink to project.config:
[commentlink "t3"]
  match = "(BUG CR#(\\d+))"
  link = "customproto://t3.host.com/$2"

2. Commit the project.config
3. Create change with log message containing text 'BUG CR#1234'
4. Browse to change screen

What is the expected output? What do you see instead?
I expect the change screen to replace 'BUG CR#1234' with a link to:
<a href="customproto://t3.host.com/1234">BUG CR#1234</a>

Changing 'customproto' to 'http' in the project.config file results in the expected behavior (except the URI protocol is not what is required for my application).

I see the same behavior on a production installation (Gerrit 2.7, via Collabnet TeamForge) and a personal, more up to date installation (Gerrit 2.9-rc1)
Sign in to add a comment

Powered by Google Project Hosting