manifoldcf icon indicating copy to clipboard operation
manifoldcf copied to clipboard

Web Connector: Fix SSL issues in redirections

Open Soggard opened this issue 1 year ago • 1 comments

We noticed that in some case, when using the new "Force the inclusion of redirections" option in the Web Crawler Connector, we encounter SSL certificate error. This happens when whe try to get the final URL from a redirection in order to add it to the seed.

We can fix this by disabling SSL verification while getting final URL from pages with redirections. The unchecked certificates should not cause any problems, since it's only about adding the new host to the seed. All usual checks will be applied during the indexing.

Note that when fetching the final url, we do not take into account the connector's graphical option to able or disable certificate validation: certificates are always ignored. Still, once the actual crawling takes place when the final list of seed hosts is established, the option about certification validation is respected again.

Soggard avatar Feb 19 '24 14:02 Soggard

Thank you @Soggard for your contribution, we will consider this for ManifoldCF 2.28 because we don't want to apply any changes to the base code for 2.27 release, this due to the drastic change in the release process.

I have just created another ticket for this: https://issues.apache.org/jira/browse/CONNECTORS-1762

OpenPj avatar Jun 25 '24 09:06 OpenPj