[Bug] mysql资产Web终端粘贴sql语句出现重复粘贴现象。

Open
#18,273 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
database

Research direction

Start by reproducing the repeated paste in a MySQL asset's web terminal using the supplied ALTER TABLE statement; the issue does not name source files or tests. Trace how paste input reaches the terminal and how it is sent to the MySQL session. Done means a single paste executes or appears only once; add a regression test if the relevant test entry point is discoverable.

Written by the indexing model from the issue text.

Description

🐛 Bug 🔔 Pending processing
Product Version

长期支持(LTS)

Product Edition
  • Community Edition
  • Enterprise Edition
  • Enterprise Trial Edition
Installation Method
  • Online Installation (One-click command installation)
  • Offline Package Installation
  • All-in-One
  • 1Panel
  • Kubernetes
  • Source Code
Environment Information

服务端:Linux manager-server 6.1.0-56-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.192-2 (2026-11-16) x86_64 GNU/Linux
Jumpserver:v4.10.22
离线包方式安装。
客户端:windows 11 chrome版本 157.0.8103.52(正式版本) (64 位)

🐛 Bug Description

mysql资产Web终端粘贴sql语句出现重复粘贴现象。
粘贴样例sql:ALTER TABLE qord_main.goods_special_snapshot MODIFY COLUMN special_detail varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '规格详细(json,服务人员等级、购买规则、费用构成(护士要用))';

ScreenShot_2026-12-02_141259_051
Recurrence Steps

1、打开mysql资产web终端
2、连接mysql实例进入指定实例Web终端窗口
3、粘贴之前复制的要执行的sql语句,重复粘贴问题即可发生。
注:如单次未复现可尝试多次粘贴,本地已在多台机器复现此问题。

Expected Behavior

No response

Additional Information

No response

Attempted Solutions

No response

Dominant language
Python
Stars
32.1k
Forks
5.8k
Avg merge
17h 14m
Merged PRs (30d)
217

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jumpserver/jumpserver

All issues in jumpserver/jumpserver

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.