Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-73243] quote replacement string in symbol tooltips #9347

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Jun 3, 2024

when the tooltip or html tooltip for a symbol contained the $ sign, then adding the tooltip failed with Illegal group reference.

a way to reproduce is with the Badge plugin. Add this to a pipeline

addInfoBadge(text: '$Info')

and the build history widget will fail.

See JENKINS-73243.

Testing done

Added unit test that ensures tooltips are properly quoted.
Without the fix the test fails.
Also manual testing

Proposed changelog entries

  • Quote replacement string in symbol tooltips.

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

N/A?

Before the changes are marked as ready-for-merge:

Maintainer checklist

when the tooltip or html tooltip for a symbol contained the $ sign,
then adding the tooltip failed with `Illegal group reference`.

e.g.

```
<l:icon src="symbol-add" tooltip="$test"/>
```

Added unit test that ensures tooltips are properly quoted
@MarkEWaite MarkEWaite added the bug For changelog: Minor bug. Will be listed after features label Jun 3, 2024
@MarkEWaite MarkEWaite self-assigned this Jun 3, 2024
@MarkEWaite
Copy link
Contributor

MarkEWaite commented Jun 3, 2024

My interactive testing also confirms the issue is fixed by this change. JENKINS-73243 is now marked as lts-candidate because the bug is also visible in Jenkins 2.440.3 and 2.426.3.

Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I left some optional feedback

@NotMyFault NotMyFault added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Jun 4, 2024
@timja timja merged commit 5978ebe into jenkinsci:master Jun 6, 2024
17 checks passed
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants