QTI export and import with special characters not producing valid XML

Description

Exports from 11.4 intermittently do not Import again into 11.4, nor do they import into Sakai 12. Attached are quizzes proven to either not import or to import.

This site contains other imported tests from the Notre Dame DEV Sakai 11.4 site, specifically 01 Psychology thru 04 Psychology, which were imported from Content Packages. "05 Psychology" does not import, not as 11.4 exported QTI, nor as 11.4 Content Package.
Visibly it is no different from the others. It contains 10 multiple choice, single select questions. Each question has a single point assigned to it. No other settings have been applied.
01-04 were imported on 12/6. I am attempting 05 today, 12/7 (in case server-side settings were changed?).

I have attached exportAssessment(2).zip which was imported into the QA2 site. (From 11.4 into 12 correctly).

I have also attached both QTI exports and content package exports (from 11.4), none of which will import into the QA2 site.

Attachments

9

Activity

Show:

Julian Janetschek January 20, 2021 at 7:26 AM

The problematic character at line 7408 seems to be the Non-printing ASCII Character: end of medium (EM); Unicode 0x19

Sam Ottenhoff September 9, 2019 at 5:22 PM

I took a look at the first XML file uploaded here (05Psychology) and note that it is not valid XML:

If someone can consistently reproduce an export from Sakai not being able to import, it sounds like there is an issue with special character encoding. That would be a distinct issue from QTI support from other systems.

Matthew Jones April 17, 2018 at 10:35 AM

Supporting QTI is a lot of effort and the QTI we have is outdated.

There is a QTI library for version 2.1 but that looks like it's no longer supported either unfortunately.

https://github.com/davemckain/qtiworks

We'd really want to separate out the QTI code from Samigo into a library like this, and maybe even look into using this library (even though version 2.2 is out and this is outdated as well)

I don't see any other libraries out there.

Laura Gekeler February 3, 2018 at 2:31 PM

Not every time. Attached to this ticket is a QTI .xml file that does not import into 12.

Benjamin Rappleyea February 2, 2018 at 8:48 AM

We had a similar issue locally,  discovered that if you extract the files and import the exportedAssessment.xml it works.  have you found this works in your instances too?

Details

Priority

Affects versions

Components

Assignee

Reporter

Environment

https://qa2-us.nightly.sakaiproject.org/portal/site/32d94119-75b9-467f-9203-b039da3cac85

Created December 8, 2017 at 11:14 AM
Updated January 20, 2021 at 7:26 AM