Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-466

REST Web Service ./events/custom/delete_events should not delete all events if the "ids" parameter is empty

    XMLWordPrintable

Details

    Description

      Current Situation

      The web service ./events/custom/delete_events deletes all events if the parameter ids which is an array is empty in the request body.
      The web service expects numbers in the ids array.
      If there are strings in this array that cannot be converted to a number, they are discarded, so that an empty array can unintentionally be created and all events can be deleted.

      Desired Behavior

      If the ids array is empty then no event will be deleted.

      Attachments

        1. screenshot-1.png
          100 kB
          Mahendra Patidar

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Mahendra Patidar Mahendra Patidar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: