You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After several hours of debugging setup (actually nothing changed and alerta has been running for years here) and source code I found out that one of alerts caused this.
The alert has html components in text field:
select text from alerts where resource = 'needed resource';
CheckHttp CRITICAL: 200, did not find /some text/ in 21661 bytes: <!doctype html><html lang="en" dir="ltr"><head><base href="https://www.google.com/recaptcha/challengepage/"><meta name="referrer" content="origin"><link rel="canonical" href="https://www.google.com/re...
This text have google base something and it breaks down the JS.
I will make workaround from check script side to filter out html, but it would be great if this can be done better way from webui side or api side.
Issue Summary
Today I found my alerta web ui with links to google, like:
After several hours of debugging setup (actually nothing changed and alerta has been running for years here) and source code I found out that one of alerts caused this.
The alert has html components in text field:
This text have google base something and it breaks down the JS.
I will make workaround from check script side to filter out html, but it would be great if this can be done better way from webui side or api side.
Environment
OS: Linux
API version: v8.7.0
Deployment: self-hosted
For self-hosted, WSGI environment: nginx/uwsgi
Database: Postgres
Server config:
Auth enabled? Yes
Auth provider? GitLab
Customer views? Yes
web UI version: v8.7.0
To Reproduce
The text was updated successfully, but these errors were encountered: