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

列表页面先点编辑,然后取消,再新增数据时,新增数据会携带编辑时的脏数据 #846

Open
dipwater opened this issue May 29, 2024 · 0 comments

Comments

@dipwater
Copy link

复现步骤:

  1. 打开用户管理页面。
  2. 点击用户名为“admin”这条数据的编辑按钮打开编辑用户窗口。
  3. 点击取消按钮关闭编辑用户窗口。
  4. 点击新增按钮,在新增用户窗口填写信息并点击确认按钮。
  5. 通过开发者工具抓包发现提交的数据中 createTime、pwdResetTime、updateTime均为“admin”这条记录的数据。虽然最终createTime、updateTime会在服务端被重置,但是 pwdResetTime 却会保留下来。此bug在所有CRUD界面都存在,会导致新增时业务数据被污染。

以下是新增用户数据包:
{ "id": null, "username": "222", "nickName": "222", "gender": "男", "email": "[email protected]", "enabled": "true", "roles": [ { "id": 2 } ], "jobs": [ { "id": 8 } ], "dept": { "id": 7 }, "phone": 13211112222, "avatarName": "avatar.jpeg", "avatarPath": "/home/eladmin/avatar/avatar.jpeg", "createTime": "2018-08-23 09:11:56", "pwdResetTime": "2020-05-03 16:38:31", "updateBy": "admin", "updateTime": "2020-09-05 10:43:31" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant