Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate Reports UI unable to invalidate segments with '>' or '<' in the segment, incorrectly encoding characters #17701

Closed
Starker3 opened this issue Jun 22, 2021 · 2 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@Starker3
Copy link
Contributor

Expected Behavior

The Invalidate Reports UI tool should be able to invalidate segments with special characters, such as > or <

Current Behavior

When invalidating a segment with either the character > or < currently results in the following error:
The segment condition 'actions&gt' is not valid.
image

Possible Solution

It seems as though the Invalidate Reports UI is not correctly encoding the segment when invalidating the reports, running the command with the correct URL encoding: ./console core:invalidate-report-data --segment='actions%3E1' --dates=XXX works to invalidate the reports from an SSH session.

Steps to Reproduce (for Bugs)

  1. Create a report with at least one condition as either greater than(>) or less than(<)
  2. Invalidate that segment in the Invalidate reports plugin in the Administration > System menu

Your Environment

  • Matomo Version: 4.3.1
@Starker3 Starker3 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Jun 22, 2021
@tsteur
Copy link
Member

tsteur commented Jun 22, 2021

@Starker3 do you mind closing this issue and recreating it in https://github.com/innocraft/plugin-InvalidateReports/issues ? Because it is a different organisation I cannot move it there. I could create it there myself but then you won't receive notifications for comments.

@Starker3
Copy link
Contributor Author

Re-created here: innocraft/plugin-InvalidateReports#16

@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jul 27, 2021
@tsteur tsteur removed the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

3 participants