conjure-java-runtime icon indicating copy to clipboard operation
conjure-java-runtime copied to clipboard

JaxRsClients should not interperet a 302 response status as Optional.empty()

Open carterkozak opened this issue 7 years ago • 5 comments

carterkozak avatar Mar 01 '18 15:03 carterkozak

This issue has been automatically marked as stale because it has not been touched in the last 60 days. Please comment if you'd like to keep it open, otherwise it'll be closed in 7 days time.

stale[bot] avatar Oct 19 '18 23:10 stale[bot]

bad robot

carterkozak avatar Oct 26 '18 23:10 carterkozak

Re-opening as it sounds like this is still a legitimate unsolved problem. Would you expect a client to be redirected?

iamdanfox avatar Oct 29 '18 10:10 iamdanfox

When my service returned a 302 status with empty content, the client returned Optional.empty rather than throwing an exception. I would expect the client to fail, not to follow redirects.

I'm unsure if this is still a problem, or if it had to do with feign/okhttp versions in a particular large internal project.

carterkozak avatar Oct 29 '18 12:10 carterkozak

This issue has been automatically marked as stale because it has not been touched in the last 60 days. Please comment if you'd like to keep it open, otherwise it'll be closed in 7 days time.

stale[bot] avatar Dec 28 '18 12:12 stale[bot]