Bitbucket UI fails to decode HTML entities in Repository Hook rejection messages

XMLWordPrintable

    • 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&#39 ;t.

      Steps to Reproduce

      1. Install Bitbucket Data Center 10.2.2 or 10.2.3.
      2. 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)
      3. Attempt to edit a file directly in the Bitbucket UI and save it, triggering the hook rejection.
      4. The commit is rejected and the following message is displayed on the UI - *commit message doesn&#39 ;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

              Assignee:
              Unassigned
              Reporter:
              Tejaswini P
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: