Missing URI-encode of `%BUGID%` part by call of issue tracker URL
We have two different issue ID formats:
-
\#000001
- our issue/bug id -
CUA#002
,CUB#003
- customer issue (defect) id;
For the first format I can extract the number (without #
char),
for the second - I cannot do that, so the URL to the issue looks like server/bt/issue/CUA#002
(and the browser "trims" URI and uses 002
as anchor inside the resulting page of server/bt/issue/CUA
).
What steps will reproduce the problem?
- Configure issue tracker bugtraq.url like
server/bt/issue/%BUGID%
and bugtraq.logregex like this:
((?:[A-Z]{3})?\#\d+)
((?:[A-Z]{3}\#)?\d+)
- Test it, e. g. click the link in the message containing
CUA#002
What is the expected output?
Properly encoded part of URI (replaces %BUGID%
) like server/bt/issue/CUA%23002
What do you see instead?
The un-encoded URI part, so URL like server/bt/issue/CUA#002
What version of TortoiseGit and Git are you using? On what operating system?
Preview 2.7.1.0 20181021-7f2d0004 / Windows 7