Open tucker01 opened 4 years ago
This is a bug for sure. Thank you for reporting it.
I was trying to reproduce via the pure sample but cannot. I used PUT
on the /api/v1/greeting
endpoint:
Maybe we can look offline to see what else might be going on?
OK sounds good. What version of the Commons Jar are you at?
I built commons from source. I'll retry my test with the last published commons jar.
OK we're at 'org.zowe:zowe-rest-api-commons-spring:0.4.2'
org.zowe:zowe-rest-api-commons-spring:0.5.1
seems to give the proper payload as well. Can you try on this version?
Thanks,
We should create a bug template that asks for a version and full specification of the request.
This issue has not been updated in a long time.
Maybe I'm missing something, but I removed any custom exception handlers in favor of what is being done in the commons jar:
https://github.com/zowe/sample-spring-boot-api-service/blob/master/zowe-rest-api-commons-spring/src/main/java/org/zowe/commons/spring/CustomRestExceptionHandler.java
For "403" I get the following response:
For "405" I get no payload response? For us, its really not a big deal to have a message in the response body, the HTTP status is enough, but just wanted to check if this is expected behavior?