Request tracking also tracks invalid request IDs

Created on 27 November 2022, almost 2 years ago
Updated 5 October 2023, about 1 year ago

Problem/Motivation

Logging events where UNIQUE_ID is not a valid request ID does not prevent request tracking from being enabled on the request.

As a result, these requests carry the by-request link on the detail page, but with the "magic" '@@Not-a-valid-request@@' ID instead of a valid ID.

Steps to reproduce

Create an event on a non-web page, e.g. from Drush. Go to the logger page, click on the occurrences view, observe the "Request" link, click on it: observe no request being listed.

Proposed resolution

Do not expose links for matches using the magic ID.

Remaining tasks

TBD.

User interface changes

Will no longer carry the Request link when event does not belong to a web request.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Watchdog (logger)

Created by

🇫🇷France fgm Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024