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

Importing CSV with item that has a hyphen in name causes import failure

    XMLWordPrintable

    Details

    • Previous Issue Keys:
      GIT2-3799
    • Previous GIT issue:

      Description

      Steps to replicate:

      1) Create Gradebook Item called "Week 2: January 22 - 29" and make it worth 10 points
      2) Use Export functionality
      3) Use Import functionality

      The failure will produce generic error in UI and no error in logs: "The file you uploaded was not formatted correctly."

      The problem is that the regex is very strict:

      final static Pattern ASSIGNMENT_WITH_POINTS_PATTERN = Pattern.compile("(\\w+ \\[[0-9]+(\\.[0-9][0-9]?)?
      ])");

      This regex is only allowing a-zA-Z0-9 so any special character like hyphen or colon causes import failure

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration