From 75ab9825b371663cc0a4bbc52cd630c031c3ddd5 Mon Sep 17 00:00:00 2001 From: emilioalvap Date: Tue, 28 Feb 2023 21:35:04 +0100 Subject: [PATCH 1/2] Fix tracking http url parsing error --- heartbeat/monitors/active/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heartbeat/monitors/active/http/http.go b/heartbeat/monitors/active/http/http.go index 351cc30dadcd..acac759f8e01 100644 --- a/heartbeat/monitors/active/http/http.go +++ b/heartbeat/monitors/active/http/http.go @@ -104,7 +104,7 @@ func create( js := make([]jobs.Job, len(config.Hosts)) for i, urlStr := range config.Hosts { - u, _ := url.Parse(urlStr) + u, err := url.Parse(urlStr) if err != nil { return plugin.Plugin{}, err } From 929e74941cbe8e7c10e7ccadb6d69dbc3bb2bedb Mon Sep 17 00:00:00 2001 From: emilioalvap Date: Wed, 1 Mar 2023 10:55:14 +0100 Subject: [PATCH 2/2] Add changelog --- CHANGELOG.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index e2418ee25fcb..b4ed9e64ae66 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -99,6 +99,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff] *Heartbeat* +- Fix panics when parsing dereferencing invalid parsed url. {pull}34702[34702] - Fix broken zip URL monitors. NOTE: Zip URL Monitors will be removed in version 8.7 and replaced with project monitors. {pull}33723[33723] - Fix bug where states.duration_ms was incorrect type. {pull}33563[33563] - Fix handling of long UDP messages in UDP input. {issue}33836[33836] {pull}33837[33837]