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

regression in trunk: anonymous API requests throw an error when the anonymous has view access #1597

Closed
mattab opened this issue Aug 16, 2010 · 3 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Aug 16, 2010

eg. http://localhost/trunk/index.php?module=API&method=API.getProcessedReport&format=XML&apiModule=UserCountry&apiAction=getCountry&idSite=7&period=year&date=2009-01-01&filter_limit=-1

throws "API returned an error: You can't access this resource as it requires an 'view' access for the website id = 7."

but this works fine in the 1.0 branch. Maybe introduced in [2901] ?

@mattab
Copy link
Member Author

mattab commented Aug 16, 2010

Note: it would be nice to add a unit test (or integration test) for this

@robocoder
Copy link
Contributor

(In [2949]) refs #1597 - fixes typo; it's too early in the morning for me to think about unit tests...

@robocoder
Copy link
Contributor

(In [2998]) fixes #1597 - add unit test

@mattab mattab added this to the Piwik 0.9.9 - Stable release milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants