Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Approving device using the API PATCH partnermanagement/v1/partners/DeviceDetail fails #191

Open
almontasser opened this issue Jan 25, 2021 · 2 comments

Comments

@almontasser
Copy link

When sending the request to the API endpoint,
PATCH partnermanagement/v1/partners/DeviceDetail it fails with this error:

{
  "id": null,
  "version": null,
  "responsetime": "2021-01-25T13:04:45.119Z",
  "metadata": null,
  "response": null,
  "errors": {
    "errorCode": null,
    "message": "Null value was assigned to a property [class io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted] of primitive type setter of io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property [class io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted] of primitive type setter of io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted"
  }
}
@NagarjunaKuchi
Copy link
Contributor

In mosip_regdevice database, DeviceDetail table, isDeleted flag may be having null value. Due to this above issue occurs.
IsDeleted column should have data either true or false.

@almontasser
Copy link
Author

The problem is the API does not have isDeleted property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants