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

Logs show stack trace on Chat room with empty dates

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 12.5, 19.0, 20.0 [Tentative]
    • Fix Version/s: 12.6, 19.0, 20.0 [Tentative]
    • Component/s: Chat
    • Labels:
      None
    • 19 status:
      Resolved
    • 12 status:
      Resolved
    • Test Plan:
      1. Create or edit a room with empty open/close date
      2. See the server logs, it throws an error.

      Description

      If you try to create or edit a room with empty open/close date, it throws this error on the logs:

      See attached log excerpt. Users don't notice anything, though.

      ERROR [http-nio-20013-exec-10] org.sakaiproject.util.DateFormatterUtil.parseISODate Text '' could not be parsed at index 0
      java.time.format.DateTimeParseException: Text '' could not be parsed at index 0
      	at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
      	at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
      	at java.time.LocalDateTime.parse(LocalDateTime.java:492)
      	at org.sakaiproject.util.DateFormatterUtil.parseISODate(DateFormatterUtil.java:76)
      	at org.sakaiproject.chat2.tool.ChatTool.processActionEditRoomSave(ChatTool.java:548)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                farreri Miguel Pellicer
                Reporter:
                bergarvi Bernardo Garcia Vila
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code