Potential Bug in GitLab Community Edition - “Copy to Clipboard” Button in Wiki Repositories

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

Describe your question in as much detail as possible:

We have encountered a potential bug in GitLab Community Edition version v18.0.4 which is related to the “Copy to Clipboard” button functionality within wiki repositories.

When I click the button, the “copied” message appears as expected, but the clipboard content does not update with the intended value. This issue seems to be specific to wiki repositories, as the button functions correctly in source code repositories.

I wanted to bring this to your attention for further investigation. Thank you for your assistance! :slightly_smiling_face:

please find the screenshots attached for references!


Steps to reproduce

Which troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

Configuration

Add the observability configuration relevant to the question.

Versions

Please select whether options apply and add the version information.

  • [:check_mark:] Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

  • GitLab (Web: /help or self-managed system information sudo gitlab-rake gitlab:env:info):

Observability

  • OpenTelemetry SDK version:

Helpful resources

  1. Check the FAQ for helpful documentation, issues/bugs/feature proposals, and troubleshooting tips.
  2. Before opening a new topic, make sure to search for keywords in the forum search
  3. Check the GitLab project for existing issues. If you encounter a bug, please create a bug report issue.
  4. Review existing troubleshooting docs.

Thanks for taking the time to be thorough in your request, it really helps! :blush:

Suggest opening an issue here to report it, since Gitlab devs don’t read forum posts: Issues · GitLab.org / GitLab · GitLab

It also happens in Gitlab 18.2.0. When you open the issue, also link this forum post, at least they’ll see that 18.2.0 is also affected like 18.0.4.

Temporarily, instead of clicking the clickboard button, you can copy/paste the text to the left of the clipboard icon. Not ideal, but that does copy when you use CTRL-C once the text is selected.