Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-3598

Getting an invalid application version returns a missleading message.

    Details

      Description

      I have an application called zero-instance-app and when I query the versions I get the following result:

      curl http://localhost:8080/v2/apps/zero-instance-app/versions
      {"versions":["2015-02-11T18:39:10.049Z","2015-02-10T12:17:41.538Z"]}
      

      If perform a get against a valid application id but an invalid version I get:

      curl http://localhost:8080/v2/apps/zero-instance-app/versions/2010-02-10T12:17:41.538Z
      {"message":"App '/zero-instance-app' does not exist"}
      

      To me that message is misleading and should instead read something like:

      {"message":"Version '2010-02-10T12:17:41.538Z' does not exist for application '/zero-instance-app'"}
      

        Attachments

          Activity

            People

            • Assignee:
              jsancio José Armando García Sancio (Inactive)
              Reporter:
              jsancio José Armando García Sancio (Inactive)
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: