-
in org.tigase.mobile.authenticator.AuthenticatorActivity.UserCreateAccountTask.doInBackground method,I add code at 125 line like below:
contact.addListener(Connector.Error, new Listener<ConnectorEvent>() { @Override public void handleEvent(ConnectorEvent be) throws JaxmppException { if (be.getType() == Connector.Error && be.getCaught() != null) { Throwable throwable = extractCauseException(be .getCaught()); if (throwable instanceof SecureTrustManagerFactory.DataCertificateException) { certException = (DataCertificateException) throwable; data.put("account", contact .getSessionObject() .getUserBareJid().toString()); } } } });
and fix this problem.
Type |
Bug
|
Priority |
Blocker
|
Assignee | |
RedmineID |
919
|
Issue Votes (0)
Watchers (0)
It is not possible to add/register account on server with invalid certificate. Exception from certificate validation causes authentication failure and blocks possibility of adding an account.