graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

URL warning in http notification form does not update after allowing URL.

Open linuspahl opened this issue 1 year ago • 6 comments

Description

When you create an http notification and you add an URL, which is not allowed yet, you will see the following warning:

image

Once you allow the URL in the related modal, the warning stays there (and the form submit button stays disabled) and only disappears after allowing the URL again.

This issue does not seem to occur in the current master version.

Your Environment

  • Graylog Version: 6.0 rc2

linuspahl avatar Apr 11 '24 14:04 linuspahl

Probably needs only a backport!

kmerz avatar Apr 12 '24 07:04 kmerz

Not a blocker, since there is a workaround.

kmerz avatar Apr 12 '24 08:04 kmerz

I couldn't reproduce this either in 6.0.1 or in 6.0.rc.

grotlue avatar May 07 '24 14:05 grotlue

On test-dev-ng with 6.0.1 cloud I can reproduce it. Locally with 6.0.1 cloud not.

grotlue avatar May 07 '24 15:05 grotlue

On test-dev-ng where I can reproduce it, the call is sending the new whitelist correctly, but the check call returns the url as not whitelisted. Screenshot 2024-05-07 at 18 01 22 Screenshot 2024-05-07 at 18 01 28

grotlue avatar May 07 '24 16:05 grotlue

I also could only reproduce it on test-dev-ng. The backend code for URL white-listing has not changed since 5.2. and API responses look fine. Custom HTTP Notification was recently added and is therefore suspect. But the problem also reproduces in the legacy HTTP Notification, which has not changed as recently. Running out of ideas. Maybe we can table this until we see a repro outside of test-dev-ng?

patrickmann avatar May 08 '24 11:05 patrickmann