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 possible view access error #12854

Merged
merged 1 commit into from May 8, 2018
Merged

Prevent possible view access error #12854

merged 1 commit into from May 8, 2018

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented May 8, 2018

fix #12842

I would assume this change fixes the issue. In theory it should still work even without this change and it usually does (cause it would use the first siteId within the list). It would be interesting to see what the site and access table on this instance looks like.

Update: I can think of an error when idSite 1 was deleted see https://3v4l.org/gEvUb

So this change likely fixes it.

fix #12842

I would assume this change fixes the issue. In theory it should still work even without this change and it usually does (cause it would use the first siteId within the list). It would be interesting to see what the `site` and `access` table on this instance looks like.

Update: I can think of an error when idSite 1 was deleted see https://3v4l.org/gEvUb 

So this change likely fixes it.
@tsteur tsteur added the Needs Review PRs that need a code review label May 8, 2018
@tsteur tsteur added this to the 3.5.0 milestone May 8, 2018
@mattab mattab merged commit 249ba0f into 3.x-dev May 8, 2018
@sgiehl sgiehl deleted the 12842 branch May 8, 2018 16:19
@Findus23
Copy link
Member

@tsteur Totally forgot this issue until I just noticed that the GDPR tool works fine on my instance. (So this should have fixed the issue.)

And indeed I seem to have deleted the idsite=1.

@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 Aug 28, 2018
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
fix matomo-org#12842

I would assume this change fixes the issue. In theory it should still work even without this change and it usually does (cause it would use the first siteId within the list). It would be interesting to see what the `site` and `access` table on this instance looks like.

Update: I can think of an error when idSite 1 was deleted see https://3v4l.org/gEvUb 

So this change likely fixes it.
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 not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GDPR tool doesn't work when selecting all websites
3 participants