textbrowser / biblioteq

Archive and catalog the world for today's and tomorrow's generations! Awesome and everyware.
https://textbrowser.github.io/biblioteq/
Other
217 stars 46 forks source link

TLS initialization error on Windows. #374

Closed JSchue closed 1 month ago

JSchue commented 2 months ago

When opening a https for download of information from and SRU-server of for cover images a network error occurs.

Screenshot 2024-08-15 180558 Biblioteq version: 2024.06.30 Windows 11

The error is not shown under Ubuntu Linux for the same version of Bibliteq.

textbrowser commented 2 months ago

Perhaps some dependency is required. I don't work on Windows.

textbrowser commented 2 months ago

And why is TLS required? SRU in biblioteq.conf is HTTP for LoC.

textbrowser commented 2 months ago

Please post the SRU server you're communicating with.

JSchue commented 2 months ago

I'm using the the SRU-werver of the german national library DNB with following lines in biblioteq.conf:

[SRU DNB]

name = Deutsche Nationalbiblithek
proxy_host =
proxy_password =
proxy_port =
proxy_type = None
proxy_username =
url_isbn = "https://services.dnb.de/sru/dnb?version=1.1&operation=searchRetrieve&query=num%3D%1 or num%3D%2&recordSchema=MARC21-xml&startRecord=1&maximumRecords=1"
url_issn = "https://services.dnb.de/sru/zdb?version=1.1&operation=searchRetrieve&query=num%3D%1&recordSchema=MARC21-xml&startRecord=1&maximumRecords=100"

and I get the same error when I try to get cover images from OpneLibrary (or any other source I tried) as well.

textbrowser commented 2 months ago

Added SRU entry to biblioteq.conf.

textbrowser commented 2 months ago

The query completes correctly on Linux.

JSchue commented 2 months ago

Yes, I know. It seems to be an issue with https connection under windows as OpenLibrary query gives the same error.

textbrowser commented 2 months ago

I'll test Windows whenever I can.

meteos77 commented 2 months ago

Biblioteq version: github today

If it helps: test on VM windows 10. I also get the same SRU French message.

textbrowser commented 1 month ago

Is not a concern because I would try the non-HTTPS and drop Windows for something else. Like FreeBSD or MacOS or even the award-winning Kubuntu. You don't need Windows because it's an advertising platform which records everything for the Mother Land of Gates-ville. Seriously aside, it may be a missing library or a missing method or your particular version of Windows. I don't work on Windows and the last free virtual machine I installed failed and become dead after a Windows update so I dropped it because it was zombied and I don't prefer zombies. Some people do, I don't. They kind of rot and smell and eat brains but maybe some people enjoy zombie friends I don't know.

textbrowser commented 1 month ago

Newer Windows after Windows 3.1 and after Windows 98 and sometimes after a release included a Windows TLS other than the OpenSSL most likely or likely or some variation of likely derived from OpenSSL. It's a proprietary system so we have to guess or read or someone leaked information about their security layer and so anyway, it is different because you can query Qt and it'll inform you about it and when I did, the string is weird. Like, this is TLS version A and that's all you need to know. So good luck? More later.

textbrowser commented 1 month ago

And now onto the fascinating world of Windows. It amazes me, not spectacularly nor fashionably, that a trillion-dollar company cannot and will not produce meaningful reports whenever software failures occur. They are first a software company. Their errors are meaningless. Imagine you query a person, a non-weird person, regarding the time of day. You have an idea that the time is before sunset and after sunrise because you're on Earth and it's light. The person responds 0x0102030405 and dies. Immediately.

textbrowser commented 1 month ago

Download tls directory from https://github.com/textbrowser/qt-products/tree/main/6.5_LTS/Windows/plugins and place in the plugins folder. The tls directory should be plugins/tls. Or download attachment and place unzipped in plugins.

tls.zip

meteos77 commented 1 month ago

With the 3 additional files, it works fine. Thanks for the fix

textbrowser commented 1 month ago

Thanks you for testing. Is corrected in the next release. The problem was that I didn't want to copy Qt's debug files so I removed them. Qt has changed and the files are properly named. The old instructions removed plugins files. Is explained in the release notes, of course.

textbrowser commented 1 month ago

Is so splendid when so much detail exists. Like reading nonsense that no one ever reads but exists for those who like to read in bright futures and meaning. Is like waking up in a garden and falling into the thorns of raspberries. Bad but so tasty.

JSchue commented 1 month ago

Thank you for your great support. It works now. This is another example that support for Open Source software is working better than for most commercial software. Unfortunately all I could give back to the community is a qualified description of the problem.

textbrowser commented 1 month ago

I don't know about that. Open Source works when there is love. Like, a pet loves you because you feed it and because it is fond of you. You're the big daddy or mommy and there is a relationship. Maybe it's parasitic or maybe it's symbiotic.

Proprietary anything requires a monetary transaction. Might exist some help from the holder because it is beneficial to them that they appear to be interested in helping you. That's where it stops. There ain't no discussions about merit, quality, beliefs, and idea of a gentler world.

It's all about the money, the profit, and the dependency you have on them. It's kind of like fascism without it being forced on you, well, unless you can't find something else. You're either with Windows or you can't compute. Oh, and you have to pay too. It certainly is a political power thingy.

We cats believe that you don't have to find BQ. But we love it. We mean, after like decades of purring, something's there beyond theory.

See you.