Closed Bug 933943 Opened 12 years ago Closed 12 years ago

TypeError: n[0] is undefined

Categories

(Marketplace Graveyard :: Statistics, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2013-11-05

People

(Reporter: krupa.mozbugs, Assigned: spasovski)

References

()

Details

steps to reproduce: 1. Log into a non-admin account on marketplace 2. Load https://marketplace-dev.allizom.org/stats/apps-added-by-payment/?start=2013-10-02&end=2013-11-01&region=worldwide expected behavior: Metrics is accessible by all logged-in users observed behavior: 'Authentication failure detected. Please sign in and try again.' is shown GET https://marketplace-dev.allizom.org/api/v1/stats/global/apps_added_by_premium/ [HTTP/1.1 403 FORBIDDEN 61ms] Looks like TypeError: n[0] is undefined include.js:2
Summary: Non-admins get a 403 on all stats pages → TypeError: n[0] is undefined
This js error happens on all accounts including admin accounts
This fixes the JS error: https://github.com/mozilla/marketplace-stats/commit/d028026 Global public stats being visible to all logged in users is coming soon.
Assignee: nobody → dspasovski
Target Milestone: --- → 2013-11-05
(In reply to Davor Spasovski [:spasovski] from comment #2) > Global public stats being visible to all logged in users is coming soon. That's not what was in the spec. Let's save changing permissions for bug 858294. For now it should just be admins only.
I am fine with that. Thought the global stats would be available to the masses right away.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Verified as fixed using an admin account
Status: RESOLVED → VERIFIED
comment 3 is correct. this is a stats viewers group - not anyone with an account. thanks
You need to log in before you can comment on or make changes to this bug.