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

    • 19 status:
      Verified
    • 12 status:
      Resolved
    • 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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code