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

Delivery date without seconds results in cryptic error message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.3, 2.7.x
    • Labels:
      None
    • Environment:
      Tested on Sakai 2.6 and on trunk
    • Previous Issue Keys:
      SAK-17004, SAM-790

      Description

      To replicate:

      1) Create an assessment
      2) Go to Settings
      3) Under Delivery Dates, use the popup calendar to set dates for Available, Due, and Retract
      4) Modify the Due Date to remove the seconds portion of the time (e.g.: 09/30/2009 01:54 PM)

      The error message:

      Error setting property 'dueDateString' in bean of type org.sakaiproject.tool.assessment.ui.bean.author.AssessmentSettingsBean: java.lang.ArrayIndexOutOfBoundsException: 2

      To fix, the code should check for missing seconds in the array and set to "00" if missing. Or, the correct error message should be used:

      The date you have entered for Due Date is not valid. Please make sure you have entered an existing date in the mm/dd/yyyy hh:mm:ss AM/PM format.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jthapa Jasmine Thapa (Inactive)
                Reporter:
                ottenhoff Sam Ottenhoff
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code