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

SAMIGO / Export of original t/s not importing with apostrophe sign in test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1.0
    • Labels:
      None
    • Environment:
      WIN XP SP2 IE SP2
       Oncourse - 2.0.9g(r1979) - Sakai (r1979) - Server "wsa403"

      Description

      This is what I found that import is not failing due to large number of questions but because of a apostrophe ' sign in the XML document.

      Test1.xml has 'company's' in it, all 50 questions were successfully imported when I removed apostrophe sign.

      The root cause of this is following exception which is basically unable to get a good xml document.

      Invalid byte 1 of 1-byte UTF-8 sequence.
      java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
      ERROR: Invalid byte 1 of 1-byte UTF-8 sequence. (2005-10-11 14:36:55,728 http-8080-Processor25_org.sakaiproject.tool.assessment.qti.util.XmlUtil)
      java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
      at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
      at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
      at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
      at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      At org.sakaiproject.tool.assessment.qti.util.XmlUtil line no 336.

      Triggered at documentBuilder.parse(inputStream);

        Gliffy Diagrams

          Zeplin

            Attachments

            1. test1.xml
              15 kB
              Derek Ramsey

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                drramsey Derek Ramsey
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration