Skip to content

RANGER-5607 issue in put plugins/services/id#984

Open
abhiishek26 wants to merge 2 commits into
apache:masterfrom
abhiishek26:fix_put_services_id
Open

RANGER-5607 issue in put plugins/services/id#984
abhiishek26 wants to merge 2 commits into
apache:masterfrom
abhiishek26:fix_put_services_id

Conversation

@abhiishek26
Copy link
Copy Markdown

What changes were proposed in this pull request?

the api put plugins/services/{id} implemented in ServiceREST updateService. do not appropriately throws error when the service name field is left blank in the payload or mismatch between ids passed through payload and request url .
I compared this with the put apis present in ServiceREST and other modules there appropriate id mismatch or name absent errors are handled .
I have made changes in the implementation to properly handle those scenarios .

How was this patch tested?

All the unit tests were passed locally and the bulild (mvn clean install , mvn clean test ) successfully passed

2 unit tests have been implemented to simulate id mismatch and servicename absent in payload scenarios

@abhiishek26 abhiishek26 reopened this May 27, 2026
@abhiishek26 abhiishek26 marked this pull request as ready for review May 27, 2026 14:42
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

Successfully merging this pull request may close these issues.

1 participant