Repository navigation
Return null to caller for 204 http no response case - #355
haiyanghaiyang wants to merge 1 commit into
Conversation
Curent HttpResponse handler assumes HttpResponse entity is not null. But for 204 no response case, it raises exception. I got the problem with Gerrit integration with Redmine 4.1.1, where Gerrit its-redmine plugin submits three times when exception happens. When this change, there's no exception raised by redmine-java-api.
|
let's have integration tests verifying this change. they should pass against the regular (non-modded) Redmine instance (a recent version). |
|
I setup Redmine 4.1.1 without extra plugin, with information configured in src/test/resources/api_test.properties. The test can login system but some authentication failure. How can I get it passed? I don't think it is caused by the PR. Have you verified last release against 4.1.1?
|
|
note - I am no longer actively working on this project. I can do a code review and merge the changes when people provide a verified PR with passing tests, but that's about it. |
|
This error are there before the PR. Without the PR, the test has much more error with Redmine 4.1.1. I think it needs extra effort and other PR to fix other error. |
Curent HttpResponse handler assumes HttpResponse entity is not null. But for 204 no response case, it raises exception. I got the problem with Gerrit integration with Redmine 4.1.1, where Gerrit its-redmine plugin submits three times when exception happens. When this change, there's no exception raised by redmine-java-api. taskadapter#355
|
I looked at the communicator implementation. empty response may or may not be valid for the provided handler. |
|
this issue if fixed in #362 |
Curent HttpResponse handler assumes HttpResponse entity is not null. But for 204 no response case, it raises exception.
I got the problem with Gerrit integration with Redmine 4.1.1, where Gerrit its-redmine plugin submits three times when exception happens. When this change, there's no exception raised by redmine-java-api.