Closed Bug 813982 Opened 13 years ago Closed 13 years ago

[Calendar][TR 11-15-12] Account configuration - Changing address and password to an already configured account is not working

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect, P1)

x86_64
Windows 7
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
B2G C2 (20nov-10dec)
blocking-basecamp +

People

(Reporter: carlosmartinez, Assigned: jlal)

References

Details

(Whiteboard: [Calendar][TR 11-15-12])

Attachments

(1 file)

Tested with unagi with: gaia 620399e gecko 85d0121 STR: 1-Open calendar app 2-Go to accounts menu 3-Go to calendar settings 4-Select an already configured account 5-Change address and password to a new valid ones Expected result --> New account should be configured Actual result --> You get a message saying: No connection. Check your Wifi and try again.
blocking-basecamp: --- → ?
Confirmed. That's umm...odd?
Assignee: nobody → jlal
blocking-basecamp: ? → +
Priority: -- → P1
Target Milestone: --- → B2G C2 (20nov-10dec)
Les, can you take this one? If you don't want it feel free to send it back my way.
Assignee: jlal → lorchard
Sure, I'll take a shot at stumbling through this one
Trying to narrow this down with gaia master - seems like the key to reproduce is: Change the username, after which the CalDAV URL in the 3rd field doesn't update. Then, I get a "Server error. Check your login and try again." I don't see "No connection," so maybe the error message was updated? I presume this is the response to a 404 in the CalDAV URL
I think that is a general 500 error (anything not ~200, 404, 0)
I believe we do a request to get the home of the calendar user (in the worker) its possible this always fails when we already have it? Maybe comment out that part and see if it works. The rest looks sane to me upon my quick inspection of the code path.
Tip (in case you did not know about it already) you can add logging here to see the raw output https://github.com/mozilla-b2g/gaia/blob/master/apps/calendar/js/ext/caldav.js#L2102. Something like console.log(this._serialized()) will output the value we send as well. I am fairly certain we sending the wrong kind of request to the caldav entrypoint.
This seems to be google specific to me but this could also be an issue with other servers. The simple fix is to save the original url the user gives us as "entrypointUri" that we use for re-authenticating users. When making the calendar home request we then always pass user input or entrypointUri.
Assignee: lorchard → jlal
Comment on attachment 687937 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6790 This requires a db update to fix. For most users using a preset (Google, Yahoo, Zimbra) you won't notice a thing. If your using a custom caldav account though you will need to delete and add your account again (if editing credentials does not work). If they don't need to edit the credentials this has no impact on those users.
Attachment #687937 - Flags: review?(lorchard)
Attachment #687937 - Flags: review?(lorchard) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Keywords: verifyme
QA Contact: jsmith
Reviewed and verified on "Unagi" device Build ID:20130102070202
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: