Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.6.3, 3.7.0
-
None
Description
Summary
When using context path (eg: "/fecru"), the repository watch notification email "create a review" link use both value in "Site URL" (eg: http://localhost:8060/fecru) and context path to be an incorrect URL eg: http://localhost:8060/fecru//fecru/cru/create?csid=###
Other links in watch notification is correct except for this "create a review" link
Steps to Reproduce
- Set a Site URL including a context path (e.g. http://localhost:8060/fecru)
- Set a Web context (e.g. /fecru)
- Enable the Email notification
- Make a change for a repository you are watching
Expected Results
All the links in the received email are correct and point to a valid page for FishEye/Crucible.
Actual Results
The "create a review" link is incorrect and contains a duplicated context path:
http://localhost:8060/fecru//fecru/cru/create?csid=<revision_id>
Workaround
The link can be changed by hardcoding the correct Site URL (including the context path) in the email template.
- Locate the <FishEye home directory>/fisheye/html/changeset-mail.ftl file
- Change this line (this is line 25 for version 3.8.1):
[@a href="${siteurl}/${csd.createReviewUrl}"]create a review[/@a]
To the following where <hardcoded_value> is the url of your instance. Note that there / should be removed.
[@a href="<hardcoded_value>${csd.createReviewUrl}"]create a review[/@a]
Attachments
Issue Links
- mentioned in
-
Page Loading...