Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

[BUG] 前后端题库编辑数据流问题 #15

Description

@CreeperAWA

问题描述

在题库管理页面,选择题组移动后无法删除,上传题目更改并刷新页面后该题目在两个分区出现,删除其中的一个都会使另一个分区中的题目被一并删除

重现步骤

  1. 进入 题库 页面
  2. 点击 批量 按钮
  3. 勾选题目(我勾选了两道不在同一分区的题目)
  4. 移动题目到另一分区,成功
  5. 此时之前两道题目所在的两个分区均为空,但无法删除,提示 org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) for entity [indi.etern.checkIn.entities.linkUtils.impl.ToQuestionGroupLink with id '019c55f3-822d-7c37-99fd-48d8b369f12a']
  6. 上传题目更改,然后刷新页面
  7. 被移动的题目同时出现在了以前所在的分区和新移动过去的分区,任意选择一个分区中的进行删除,该题目会在所有分区都被删除
Image Image

预期行为

题目正常被移动,空分区可以删除

实际行为

题目在移动前后的分区均出现,且分区无法删除

环境信息

  • 设备: HUAWEI MateBook16s,Windows 11
  • 浏览器: Chromium: 144.0.7559.133
  • 版本: 2.2.7 stable

附加材料

  • 控制台报错(这里我对两个分区都操作了一遍):
index-BlJxzXBE.js:29 websocket error 
{type: 'error', messageId: '019c56f3-13c5-7af8-ac56-eaf60e74ffbd', data: "org.hibernate.ObjectDeletedException: deleted obje…k with id '019c560f-d1e4-7a58-9085-81876da588bd']"}
data
: 
"org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) for entity [indi.etern.checkIn.entities.linkUtils.impl.ToQuestionGroupLink with id '019c560f-d1e4-7a58-9085-81876da588bd']"
messageId
: 
"019c56f3-13c5-7af8-ac56-eaf60e74ffbd"
type
: 
"error"
[[Prototype]]
: 
Object
questions/:1 Uncaught (in promise) 
{type: 'error', messageId: '019c56f3-13c5-7af8-ac56-eaf60e74ffbd', data: "org.hibernate.ObjectDeletedException: deleted obje…k with id '019c560f-d1e4-7a58-9085-81876da588bd']"}
data
: 
"org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) for entity [indi.etern.checkIn.entities.linkUtils.impl.ToQuestionGroupLink with id '019c560f-d1e4-7a58-9085-81876da588bd']"
messageId
: 
"019c56f3-13c5-7af8-ac56-eaf60e74ffbd"
type
: 
"error"
[[Prototype]]
: 
Object
index-BlJxzXBE.js:29 websocket error 
{type: 'error', messageId: '019c56f3-2070-7446-b980-557473476490', data: "org.hibernate.ObjectDeletedException: deleted obje…k with id '019c55f3-822d-7c37-99fd-48d8b369f12a']"}
data
: 
"org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) for entity [indi.etern.checkIn.entities.linkUtils.impl.ToQuestionGroupLink with id '019c55f3-822d-7c37-99fd-48d8b369f12a']"
messageId
: 
"019c56f3-2070-7446-b980-557473476490"
type
: 
"error"
[[Prototype]]
: 
Object
questions/:1 Uncaught (in promise) 
{type: 'error', messageId: '019c56f3-2070-7446-b980-557473476490', data: "org.hibernate.ObjectDeletedException: deleted obje…k with id '019c55f3-822d-7c37-99fd-48d8b369f12a']"}
data
: 
"org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations) for entity [indi.etern.checkIn.entities.linkUtils.impl.ToQuestionGroupLink with id '019c55f3-822d-7c37-99fd-48d8b369f12a']"
messageId
: 
"019c56f3-2070-7446-b980-557473476490"
type
: 
"error"
[[Prototype]]
: 
Object
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions