cui/source/options/personalization.cxx | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-)
New commits: commit c94ca74133784dd93b7185e20f79602d6e314206 Author: Giuseppe Castagno <giuseppe.casta...@acca-esse.eu> Date: Thu Mar 17 10:36:12 2016 +0100 Switch personalization search url back to mozilla.org and... ...remove comments no longer applicable. Change-Id: I7a148d1c8df44bac95de6b9b409eaa39202dfc8e Reviewed-on: https://gerrit.libreoffice.org/23328 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 5ecc9f7..3532d56 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -142,38 +142,7 @@ IMPL_LINK_TYPED( SelectPersonaDialog, SearchPersonas, Button*, pButton, void ) if( searchTerm.isEmpty( ) ) return; - // TODO FIXME! - // Before the release, the allizom.org url should be changed to: - // OUString rSearchURL = "https://services.addons.mozilla.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/9"; - // The problem why it cannot be done just now is that the SSL negotiation - // with services.addons.mozilla.org fails very early - during an early - // propfind, SSL returns X509_V_ERR_CERT_UNTRUSTED to neon, causing the - // NE_SSL_UNTRUSTED being set in verify_callback in neon/src/ne_openssl.c - // - // This is not cleared anywhere during the init, and so later, even though - // we have found the certificate, this triggers - // NeonSession_CertificationNotify callback, that - // causes that NE_SSL_UNTRUSTED is ignored in cases when the condition - // if ( pSession->isDomainMatch( - // GetHostnamePart( xEECert.get()->getSubjectName() ) ) ) - // is true; but that is only when getSubjectName() actually returns a - // wildcard, or the exact name. - // - // In the case of services.addons.mozilla.com, the certificate is for - // versioncheck.addons.mozilla.com, but it also has - // X509v3 Subject Alternative Name: - // DNS:services.addons.mozilla.org, DNS:versioncheck-bg.addons.mozilla.org, DNS:pyrepo.addons.mozilla.org, DNS:versioncheck.addons.mozilla.org - // So it is all valid; but the early X509_V_ERR_CERT_UNTRUSTED failure - // described above just makes this being ignored. - // - // My suspicion is that this never actually worked, and the - // if ( pSession->isDomainMatch( - // GetHostnamePart( xEECert.get()->getSubjectName() ) ) ) - // works around the root cause that is there for years, and which makes it - // work in most cases. I guess that we initialize something wrongly or - // too late; but I have already spent few hours debugging, and - // give up for the moment - need to return to this at some stage. - OUString rSearchURL = "https://addons.allizom.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/9"; + OUString rSearchURL = "https://services.addons.mozilla.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/9"; m_rSearchThread = new SearchAndParseThread( this, rSearchURL ); m_rSearchThread->launch(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits