jandoubek / pvs-2020-lectures

Project for PVS lecture in fall 2020
0 stars 0 forks source link

Import data #55

Open agehrtenab opened 3 years ago

agehrtenab commented 3 years ago

Skript na importování reálných dat.

agehrtenab commented 3 years ago

Sonar by chtěl, abych data z BK tahal přes https (@SachCZ tam dal http ve funkci generate_plans_urls, ale mimo diff zřejmě nemůžu přidat komentář ke commitu), ale když použiju https, hlásí mi to neplatný certifikát. Nějaké rady?

EDIT: Konkrétně dostávám ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'bilakniha.cvut.cz'. (_ssl.c:1123) ... The above exception was the direct cause of the following exception: ... aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host bilakniha.cvut.cz:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'bilakniha.cvut.cz'. (_ssl.c:1123)")]

SachCZ commented 3 years ago

Co se týče toho checku na Sonaru, tak nevím co je optimální řešení. Myslím, že nás https nestrsuje, vzhledem k faktu, že neposíláme nic confidential, ale nejsem schopen domyslet všechny důsledky.

Momentálně bych změnil severity tohoto problému v sonaru, tak aby to prošlo s warrningem.

sonarcloud[bot] commented 3 years ago

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication