Closed Bug 2005507 Opened 2 months ago Closed 22 days ago

Duplicate and Invalid events are generated for a single user action

Categories

(Firefox Enterprise :: Client, defect, P1)

Desktop
All

Tracking

(Not tracked)

VERIFIED FIXED
Foxfooding

People

(Reporter: sbadau, Assigned: jmendez)

References

(Blocks 1 open bug)

Details

(Whiteboard: [size=1])

Attachments

(2 files)

Found in

Affected versions

Tested platforms

  • Affected platforms: Windows 11, macOS 26, Ubuntu 24.04

Preconditions

  • Firefox Enterprise is installed and user is logged with valid credentials.
  • A Company admin is logged into the Console.

Steps to reproduce

  1. In Firefox Enterprise - download any file.
  2. In the Console - go to the Event reports section and check the created event.

Expected result

  • A single event corresponding to the download action should be generated in the Event reports section.

Actual result

  • Two events are created for the download action - one of the events appears as Invalid.
  • Not sure if the duplication and the Invalid event are related — please advise if a separate bug should be filed for that.

Regression range

  • First bad: not a regression.

Additional notes

  • Duplicate events: "Blocklist domain browsed" - are created also when accessing a blocked website.

Thanks for the bug!
I believe this is a console backend or felt problem.

Component: Console → Client

For downloads, event are still duplicated - both a “Download attempt” and a “File downloaded” event are recorded.

Assignee: nobody → jmendez
Severity: -- → S2
Priority: -- → P1
Whiteboard: [size=1]
Target Milestone: --- → Foxfooding

The download attempt and file downloaded are intentionally-implemented separate events (if a download fails, the 'attempt' still appears). But is this the right behavior or should we only get one of the events (I would guess the "attempt" is the one that stays?).

Flags: needinfo?(rtestard)

Spoke with gcp. The two download events are separate events with valid reasons to both exist. So based on the screenshot that is working as intended.
The duplicate "Blocklist domain browsed" events are a defect which is being addressed.

Flags: needinfo?(rtestard)

Authored by https://github.com/jonathanmendez
https://github.com/mozilla/enterprise-firefox/commit/cdbb8908693c69a03331f6d058d6ce73e16b3743
[enterprise-main] Bug 2005507 - Add cache to check recently blocked URLs and avoid duplicate event

Authored by https://github.com/jonathanmendez
https://github.com/mozilla/enterprise-firefox/commit/4687367969ba93292225aeb86fae77679cec7e0b
[enterprise-main] Merge pull request #416 from mozilla/jmendez/dedup-event

Status: NEW → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED

Verified as fixed in Firefox Enterprise 149.0a1 (Build ID: 20260221191449) - tested on Windows 11, Ubuntu 24.04 and macOS 15. No more duplicates are created for “Blocklist domain browsed.” For Downloads, even if two events appear, one is Download attempt and the other File downloaded, which is expected as described in Comment 5.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: