Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-5602

deployments service returns 500 instead of 404, when the device is trying to update status for non-existent deployment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Labels:
    • Sprint:
      MEN Sprint 162
    • Story Points:
      1
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      The status returned by deployments should be 404 instead of 500;

      it's not because here we expect  app.ErrStorageNotFound,

      {{}}but the app layer returns  error from storage layer directly - see here,

      so it will be mongo.ErrStorageNotFound (here);

      The links are from deployments-enterprise, but it's the same for the OS version of the service.

        Attachments

          Activity

            People

            Assignee:
            tranchitella Fabio Tranchitella
            Reporter:
            kjaskiewicz Krzysztof Jaśkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support