csaf-poc / csaf_webview

Web app (module) to display a CSAF 2 document and to browse CSAF 2 ROLIE feeds. ⚠️ The web demo is often not allowed to access servers:
https://csaf-poc.github.io/csaf_webview/
1 stars 3 forks source link

Delete last document when entering new url with error #27

Closed bernhardreiter closed 8 months ago

bernhardreiter commented 8 months ago

If a new view is attempted, and an error occurs, the old info should be deleted.

Current main does not do it, enter e.g. https://wid.cert-bund.de/.well-known/csaf/white/bsi-wid-white.json then delete the last "n" and reload, there is error message, but the old contents is still shown. Should be fixed for all variants.

ThomasJunk commented 8 months ago

https://github.com/csaf-poc/csaf_webview/commit/ae5d228572b517d40125f453d2252d4c5781ad53 should fix that.