@@ -270,7 +270,7 @@ SessionRequestImpl::MechStatus SessionRequestImpl::set_chosen_mech(std::string &
270270 cbsasl_error_t saslerr ;
271271
272272 if (mechlist .empty ()) {
273- lcb_log (LOGARGS (this , WARN ), LOGFMT "Server does not support SASL (no mechanisms supported)" , LOGID (this ));
273+ lcb_log (LOGARGS (this , WARN ), LOGFMT "Server does not support SASL (no mechanisms supported, empty list )" , LOGID (this ));
274274 return MECH_NOT_NEEDED ;
275275 }
276276
@@ -329,7 +329,7 @@ SessionRequestImpl::MechStatus SessionRequestImpl::set_chosen_mech(std::string &
329329 info -> mech .assign (chosenmech );
330330 return MECH_OK ;
331331 case SASL_NOMECH :
332- lcb_log (LOGARGS (this , WARN ), LOGFMT "Server does not support SASL (no mechanisms supported)" , LOGID (this ));
332+ lcb_log (LOGARGS (this , WARN ), LOGFMT "Server does not support SASL (no mechanisms supported, SASL_NOMECH )" , LOGID (this ));
333333 return MECH_UNAVAILABLE ;
334334 default :
335335 lcb_log (LOGARGS (this , ERROR ), LOGFMT "cbsasl_client_start returned %d" , LOGID (this ), saslerr );
@@ -710,7 +710,7 @@ void SessionRequestImpl::handle_read(lcbio_CTX *ioctx)
710710 lcb_log (LOGARGS (this , TRACE ), LOGFMT "GET_ERRORMAP unsupported/disabled" , LOGID (this ));
711711 }
712712
713- if (settings -> keypath ) {
713+ if (settings -> keypath && ! settings -> use_credentials_with_client_certificate ) {
714714 completed = !expecting_error_map && !maybe_select_bucket ();
715715 }
716716 break ;
@@ -727,7 +727,7 @@ void SessionRequestImpl::handle_read(lcbio_CTX *ioctx)
727727 status );
728728 set_error (LCB_ERR_PROTOCOL_ERROR , "GET_ERRMAP response unexpected" , & resp );
729729 }
730- if (settings -> keypath ) {
730+ if (settings -> keypath && ! settings -> use_credentials_with_client_certificate ) {
731731 completed = !maybe_select_bucket ();
732732 }
733733 // Note, there is no explicit state transition here. LIST_MECHS is
@@ -838,7 +838,7 @@ void SessionRequestImpl::start(lcbio_SOCKET *sock)
838838 } else {
839839 lcb_log (LOGARGS (this , TRACE ), LOGFMT "GET_ERRORMAP disabled" , LOGID (this ));
840840 }
841- if (!settings -> keypath ) {
841+ if (!settings -> keypath || settings -> use_credentials_with_client_certificate ) {
842842 send_list_mechs ();
843843 }
844844 LCBIO_CTX_RSCHEDULE (ctx , 24 );
0 commit comments