Syllabus: Unable to remove attachment

Description

I tested 21x, 20x, 19x, 12x and 19x is the only version affected.

After adding an attachment to the Syllabus, then clicking to edit and remove the attachment, the confirmation displays, I click Delete, and back on the edit page the attachment is still there.

Error in server logs:

05-Mar-2020 19:35:48.350 ERROR [http-nio-20019-exec-28] org.sakaiproject.tool.syllabus.SyllabusTool.processRemoveAttach org.sakaiproject.tool.syllabus.SyllabusTool@1cd4e144.processRemoveAttach() - java.lang.IllegalArgumentException: Removing a detached instance org.sakaiproject.component.app.syllabus.SyllabusAttachmentImpl#24

Attachments

1

Activity

Show:

Matthew Jones March 8, 2020 at 6:35 PM

Sure, I just merged the fix to 19.x (was only a 1 line fix) so could be verified there after that is updated (probably tomorrow)

Andrea Schmidt March 8, 2020 at 6:27 PM

was merged, so the updated UI is there and the duplicate attachments are not displaying. The only problem now is that the attachment can't be removed. I'll update SAK-42838.

Matthew Jones March 8, 2020 at 5:11 PM

Looks like a duplicate of and that isn't merged to 19.x

Duplicate

Details

Priority

Affects versions

Components

Assignee

Reporter

Environment

19x: https://qa19-mysql.nightly.sakaiproject.org/, build: da9c719e Win10: Chrome
Created March 5, 2020 at 6:19 PM
Updated March 8, 2020 at 6:35 PM
Resolved March 8, 2020 at 5:11 PM