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

Prevent tracking failures when invalid goal patterns are defined #12787

Merged
merged 2 commits into from May 1, 2018

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 29, 2018

When an invalid goal pattern type is defined in database, and exception might be thrown while tracking.
As an exception does not make sense at this point at all it now will log a warning instead of throwing an exception.

This will not prevent anyone from storing invalid patterns in the database, but will prevent tracking failures for already stored invalid data.

refs #12683

@sgiehl sgiehl added the Needs Review PRs that need a code review label Apr 29, 2018
@sgiehl sgiehl added this to the 3.5.0 milestone Apr 29, 2018
@diosmosis
Copy link
Member

Tested, works, think we should surround the logging call w/ a try/catch, though, just in case logging fails (if it's misconfigured, or there's some system problem).

@sgiehl
Copy link
Member Author

sgiehl commented May 1, 2018

ok. I'll change it

@diosmosis diosmosis merged commit aad0e69 into 3.x-dev May 1, 2018
@diosmosis diosmosis deleted the invalidgoalpattern branch May 1, 2018 15:12
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
…omo-org#12787)

* Log warning instead of throwing an exception

* add try/catch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants