VEuPathDB / service-dataset-access

Apache License 2.0
0 stars 2 forks source link

400 when trying to PATCH the approvalStatus of an end user. #33

Closed Foxcapades closed 3 years ago

Foxcapades commented 3 years ago

My guess is that in line 76 of the PatchUtil, enforceType should be receiving the value of the patch, as opposed to the patch itself.

javax.ws.rs.BadRequestException: Expected a value of type "string", got "EndUserPatchImpl"
        at org.veupathdb.service.access.service.user.PatchUtil.enforceType(PatchUtil.java:43) ~[service.jar:1.0.0]
        at org.veupathdb.service.access.service.user.PatchUtil.enumVal(PatchUtil.java:76) ~[service.jar:1.0.0]
        at org.veupathdb.service.access.service.user.EndUserPatchService.applyModPatch(EndUserPatchService.java:141) ~[service.jar:1.0.0]
        at org.veupathdb.service.access.service.user.EndUserPatchService.modPatch(EndUserPatchService.java:159) ~[service.jar:1.0.0]