-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 10.2.2, 10.2.3
-
Component/s: UI
-
None
-
1
-
Severity 3 - Minor
Issue Summary
When a repository hook (such as the "Yet Another Commit Checker" / YACC plugin) vetoes an action (e.g., a file edit via the UI), the rejection message displayed in the Bitbucket UI incorrectly renders HTML entities. For example, an apostrophe in the word "doesn't" is displayed as doesn' ;t.
Steps to Reproduce
- Install Bitbucket Data Center 10.2.2 or 10.2.3.
- Enable a repository hook (e.g., YACC) that validates commit messages. ('Commit Message Regex' that requires that commit messages match this regular expression. for a repository)
- Attempt to edit a file directly in the Bitbucket UI and save it, triggering the hook rejection.
- The commit is rejected and the following message is displayed on the UI - *commit message doesn' ;t match regex: *
Expected Results
The UI should display the message as "commit message doesn't match regex:"
Actual Results
The UI displays - 'commit message doesn't match regex:'
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available