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

Stacktrace when exporting a random-draw-assessment that includes a calculated question which has an image uploaded through CK Editor

    Details

    • 11 status:
      Resolved
    • Previous Issue Keys:
      SAM-3059
    • Test Plan:
      Hide

      Steps to reproduce the issue:

      1. Create a calculated question that includes an image uploaded through CK Editor within a pool.
      2. Create a random-draw-assessment using the pool from step 1.
      3. Try to export the assessment (Content Packaging mode). No stacktrace is shown and the assessment is downloaded.

      Show
      Steps to reproduce the issue: 1. Create a calculated question that includes an image uploaded through CK Editor within a pool. 2. Create a random-draw-assessment using the pool from step 1. 3. Try to export the assessment (Content Packaging mode). No stacktrace is shown and the assessment is downloaded.

      Description

      Steps to reproduce the issue:

      1. Create a calculated question that includes an image uploaded through CK Editor within a pool.
      2. Create a random-draw-assessment using the pool from step 1.
      3. Try to export the assessment (Content Packaging mode). This stacktrace is shown:

      java.lang.NullPointerException
      	org.sakaiproject.tool.assessment.services.assessment.AssessmentService.copyContentHostingAttachments(AssessmentService.java:1109)
      	org.sakaiproject.tool.assessment.services.assessment.AssessmentService.copyStringAttachment(AssessmentService.java:1336)
      	org.sakaiproject.tool.assessment.facade.QuestionPoolFacadeQueries.getItemFacade(QuestionPoolFacadeQueries.java:1334)
      	org.sakaiproject.tool.assessment.facade.QuestionPoolFacadeQueries.copyItemFacade2(QuestionPoolFacadeQueries.java:1308)
      	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  raulsv Raúl Sánchez Vegas
                  Reporter:
                  raulsv Raúl Sánchez Vegas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code