Closed Bug 825306 Opened 12 years ago Closed 12 years ago

[JavaScript Error]: "Error: Syntax error, unrecognized expression: Persona authentication ."

Categories

(Marketplace Graveyard :: Consumer Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2013-01-10

People

(Reporter: krupa.mozbugs, Assigned: cvan)

References

Details

steps to reproduce: 1. Launch marketplace app on your Firefox OS device 2. Click on Login/register 3. Enter an email address and set up password expected behavior: Log in is successful observed behavior: Logging in via persona fails with this JS error - [JavaScript Error: "Error: Syntax error, unrecognized expression: Persona authentication ." {file: "https://marketplace-dev-cdn.allizom.org/media/js/mkt/consumer-min.js?build=5be75cd" line: 12}]
Interesting. The view returns "Persona authentication failure" so it looks like the js in media/js/mkt/login.js is parsing that somehow?
login.js calls users.views.browserid_login, yeah. That's an assertion failure.
This happens every time? Is this a marketplace bug?
It happens every time there is a Persona assertion error. Instead, the error should be handled more gracefully. The reason it's happening every time for krupa is because she is on an unagi phone that has not been configured to use native b2g persona. The assertion will always fail without that.
(In reply to Kumar McMillan [:kumar] from comment #4) > It happens every time there is a Persona assertion error. Instead, the error > should be handled more gracefully. The reason it's happening every time for > krupa is because she is on an unagi phone that has not been configured to > use native b2g persona. The assertion will always fail without that. Lovely. Right now, we still haven't landed that pref on even though I've got checkin-needed. I'll go push back to get it landed.
Confirmed Kumar is correct - the current b2g shim requires the pref on.
Depends on: 811528
I'm not sure what's going on anymore. Perhaps this change is related https://github.com/mozilla/zamboni/commit/b65fad4f#L2R346
Now I see this JS error: [JavaScript Error: "Error: Syntax error, unrecognized expression: Please use the verified email for this ." {file: "https://marketplace-dev-cdn.allizom.org/media/js/mkt/consumer-min.js?build=a918a1b" line: 12}]
FYI to those reading at home - we're officially prefed on now. Is comment 8 what we are getting when we are prefed on? Or does this bug even repo when we are prefed on?
We see this error even when pref'ed ON.
Assignee: nobody → cvan
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: 2013-01-03 → 2013-01-10
The JS error was fixed. Thanks, cvan!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.