helun/Ektorp — Issue #52: Connection hangs with incorrect credentials
Author: marcusbond
Created: 2011-10-18 12:56:22+00:00
State: open

When you set up a HttpClientFactoryBean with a username and password, if the username / password combination is incorrect then the client will hang (infinite loop in HttpClient) when trying to access a document instead of throwing out the 401 Unauthorized HTTP status.

Obviously in a properties file this is an unrecoverable application config error, however we want to use the basic authentication that is inbuilt in couchdb and hence wish to attempt to gain access to a document using HttpClientFactoryBean to build a client using the users credentials from a logon form.. if the user supplies the wrong password this will hang in an infinite loop.