Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-15272

Panic 500 shows zero value for time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: plt
    • Labels:
      None

      Description

      When Evergreen panics, it returns a request aborted JSON message. This message returns an ErrorResponse, which in turn embeds a struct with time.Time tagged with omitempty.

      The intent is to not show the time.Time. However, omitempty does not work on structs. This causes the message to look like this:

      {
      "status": 500,
      "message": "request aborted",
      "metadata": {
      "time": "0001-01-01T00:00:00Z"
      }
      }
      

      Time should be populated or omitted.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-evg Backlog - Evergreen Team
            Reporter:
            brian.samek Brian Samek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: