Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42289

Archiving assignments leads to a stacktrace with could not serialize to a xml valid to import

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.6, 19.2, 20.0
    • Fix Version/s: 12.8 [Tentative], 19.4, 20.0
    • Component/s: Assignments
    • Labels:
      None
    • 19 status:
      Verified
    • 12 status:
      Resolved
    • Property addition/change required:
      Yes
    • Test Plan:
      Hide
      1. Create an assignment at any site.
      2. Archive the whole site -> In the generated file "assignment.xml" there are no assignments.
      3. Import the file "assignment.xml" to the same site of step 1.
      4. Go to assignments in that site and refresh the tool -> There is 1 assignment, the original one, and there is no imported assignment.
      Show
      Create an assignment at any site. Archive the whole site -> In the generated file "assignment.xml" there are no assignments. Import the file "assignment.xml" to the same site of step 1. Go to assignments in that site and refresh the tool -> There is 1 assignment, the original one, and there is no imported assignment.

      Description

      The following stack trace appears when attempting to archive assignment data:

      03-Sep-2019 21:34:27.280 WARN [http-nio-8080-exec-9] org.sakaiproject.serialization.BasicSerializableRepository.toXML Could not serialize to xml
      com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: org.sakaiproject.assignment.api.model.Assignment["submissions"]->org.hibernate.collection.internal.PersistentSet[0]->org.sakaiproject.assignment.api.model.AssignmentSubmission["assignment"]->org.sakaiproject.assignment.api.model.Assignment["sub
              at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:285)
              at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFields(XmlBeanSerializerBase.java:221) 

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  jesusmmp Jesus Maria Mendez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration