Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-885

create fails when array fields are empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None

      targetGroups, targetUsers and actions are tested for being arrays but not for length. the insert to DB fails becasue it receives an empty insert query.

      Example request:

      POST /api/notifications/notifications HTTP/1.1
      Accept: application/json
      User-Agent: OpenAPI-Generator/1.0.0/java
      Content-Type: application/json; charset=utf-8
      Content-Length: 53
      Host: localhost:7007
      Connection: Keep-Alive
      Accept-Encoding: gzip{"origin":"origin","title":"title","targetGroups":[]} 

              ydayagi yaron dayagi
              ydayagi yaron dayagi
              Gary Harden Gary Harden
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: