Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-5396

Issue with Applications REST API- GET /applications/{name}- Causing NPE with wrong/non-existent App Id

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.6.1, 1.8.0, 1.7.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      onos-1.7, master

    • Story Points:
      2

      Description

      1. Get an Application through GET /applications/

      {name}

      RWST API.
      2. Given Wrong App Id which is not exist.
      3. Throw NPE:
      2016-09-28 07:25:41,837 | WARN | qtp1333711959-61 | ServerErrorMapper | 126 - org.onosproject.onlab-rest - 1.7.1.SNAPSHOT | Unhandled REST exception
      java.lang.NullPointerException: Application ID cannot be null

      Expected Behaviour:

      Should throw Proper Exception like "App Id Not Found" at Response body.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jayasree Jayasree Ghosh
            Reporter:
            jayasree Jayasree Ghosh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: