Test Center does not successfully import QTI file

Description

Tested in CTDev using CTools 2.9P. Steps to reproduce:

  • Create assessment with several questions in CTDev.

  • Export this file as a qti file

  • attempt to import into another site.

The user can browse to the file and select 'Upload' or 'Import', but nothing occurs. These actions generate the following log message:

2014-10-02 10:40:15,144 [ajp-apr-127.0.0.1-8009-exec-7] WARN org.sakaiproject.util.Xml - readDocument failed on file: /tmp/importQTI/Testing_101_001_F14_allAssessments/imsmanifest.xml with exception: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 165; Attribute "xmlns" was already specified for element "manifest".

Activity

Beth Kirschner October 28, 2014 at 12:18 PM

Etudes reports:
...that was a bug (attribute changes related to Java 7). It has been fixed in the latest Mneme 2.1.36 that we released last week. You can get it here: http://etudes.org/help/developers/mneme/download/

Pushyami Gundala October 9, 2014 at 9:37 AM

I tried to comment the redundant xmlns element but it seems to make no difference and could not able to import the QTI to Sakai. Strange thing is i didn't see the exception in my local instance even before commenting the redundant information.

public Element createManifest(Document doc)
{
Element root = doc.createElementNS("http://www.imsglobal.org/xsd/imscp_v1p1", "manifest");
root.setAttribute("xmlns:imsqti", "http://www.imsglobal.org/xsd/imsqti_v2p1");
root.setAttribute("xmlns:imsmd", "http://www.imsglobal.org/xsd/imsmd_v1p2");
//root.setAttribute("xmlns", "http://www.imsglobal.org/xsd/imscp_v1p1");
root.setAttribute("identifier", "Manifest-" + getUUID());
return root;
}

Beth Kirschner October 2, 2014 at 12:08 PM

The QTI export file miserably fails validation (http://validator.imsglobal.org/) in this and other respects. Funny how Test Center can't import it's own export though. If this one problem with the duplicate xmlns attribute fixes the problem, it might be easy to fix – otherwise it's a black whole we might not want to make a high priority.

Details

Assignee

Reporter

Components

Priority

Created October 2, 2014 at 9:54 AM
Updated December 10, 2014 at 11:40 AM