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

POST a group with INVALID Group type causes NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2, 1.7.0, 1.6.1
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1

      Description

      Using Rest API , POST a group with Invalid GROUP TYPE throws a NPE
      java.lang.NullPointerException
      at org.onosproject.rest.resources.GroupsWebResource.createGroup(GroupsWebResource.java:150)

      Since the Group Type is not valid the methon decode in (GroupCodec.java) logs a warning and return NULL .
      This is accessed by the Group WebResource causing a NPE and returning a 500 response.

        Attachments

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

          Activity

            People

            Assignee:
            varunsha Varun Sharma
            Reporter:
            varunsha Varun Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: