Project

General

Profile

Actions

Bug #10004

open

Not returning a proper error after sending a invalid payload

Added by Arshana Atapattu over 1 year ago. Updated 9 months ago.

Status:
New
Priority:
Low
Assignee:
-
Start date:
15/03/2023
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:

Description

Description

When sending a invalid payload it should return a 400 bad request error. But currently it return a proper response.
Since the actual payload is faulty the created objects attributes are null.
For returning response it creating a another object as "activity", hence its returning a proper response.

There should be a way to validate the receiving payload.

Also the disabled JMeter test cases should re-enabled after this issue is fixed.

The APIs of device operations need to be modified with the solution.
Ex API : https://repository.entgra.net/proprietary/emm-proprietary-plugins/src/commit/b286f1f4d1f0564fda926a58edc75635dd520850/components/platform-plugins/android-plugin/io.entgra.proprietary.platform.android.api/src/main/java/io/entgra/proprietary/platform/android/api/service/impl/DeviceManagementAdminAPIImpl.java#L1399

Result

Returning a proper response after sending a invalid payload.


Files

Screenshot from 2023-03-15 16-10-26.png (213 KB) Screenshot from 2023-03-15 16-10-26.png [1] Arshana Atapattu, 15/03/2023 11:09 AM
Actions

Also available in: Atom PDF