OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

PUT method for service APIs give 405 Method not allowed exception

Open darth-coder00 opened this issue 5 years ago • 7 comments

darth-coder00 avatar Nov 26 '21 15:11 darth-coder00

@darth-coder00, can you add more details on how to reproduce this? Currently there are java tests that cover this.

sureshms avatar Nov 26 '21 20:11 sureshms

@sureshms We can reproduce by going to services page and try to edit any of the service

image image image

Response: {"responseMessage":"An exception with message [HTTP 405 Method Not Allowed] was thrown while processing request."}

ShaileshParmar11 avatar Dec 07 '21 10:12 ShaileshParmar11

This is likely because of backward incompatible change from https://github.com/open-metadata/OpenMetadata/issues/1349

I called out your attention @darth-coder00 and @Sachin-chaurasiya in that issue. Did we make a corresponding change? You no longer need to pass UUID in the PUT request for service related APIs. This is consistent with PUT APIs for all the other entities.

sureshms avatar Dec 07 '21 15:12 sureshms

Also @parthp2107, should this issue be caught by selenium tests? cc @harshach

sureshms avatar Dec 07 '21 15:12 sureshms

Also @parthp2107, should this issue be caught by selenium tests? cc @harshach

@sureshms , this was caught by selenium tests and was informed to @darth-coder00 so he created the issue for the same.

parthp2107 avatar Dec 07 '21 15:12 parthp2107

@sureshms we will make the required changes and also sync up with @parthp2107 to cover this thing in selenium test if not covered.

Sachin-chaurasiya avatar Dec 07 '21 15:12 Sachin-chaurasiya

@sureshms will make the required changes and also sync up with @parthp2107 to cover this thing in selenium test.

@Sachin-chaurasiya , this is already covered in selenium and because of it, we came across this issue. Right now, I've commented that part since the changes are pending. Once the changes are done, will uncomment the test.

parthp2107 avatar Dec 07 '21 15:12 parthp2107