Skip to content

Anonymous user settings results in an error when site no longer exists #13423

@tsteur

Description

@tsteur

I visit https://apache.matomo/index.php?module=UsersManager&action=anonymousSettings&idSite=1&period=day&date=yesterday and it says:

An unexpected website was found in the request: website id was set to '10' .

The GET request is initially correct
image

but causes a problem in UsersManager Controller:

image

The anonymous user used to have access to those sites...
image

Not sure if access was maybe not removed when the site was deleted, whether data was deleted manually, or if it is a regression etc.

We'll probably need a try /catch around this block.

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions