/srv/irclogs.ubuntu.com/2016/08/19/#launchpad.txt

bjfwhen following the links on an email validation email i am getting "A server error occurred"13:27
=== sophomer1c is now known as sophomeric
qenghobjf: Huh. Request another? It's possible for an account to move into an impossible state that the validation link dislikes.13:29
bjfa second request results in the same thing ... "A server error occurred"13:37
cjwatsonbjf: Is there an OOPS ID or anything like that?13:39
bjfcjwatson, no13:44
bjfcjwatson, "Unauthorized  A server error occurred."13:45
bjfcjwatson, we are setting up a role account for our LP bot. the email address IS set up for us is ubuntu-kernel-bot@canonical.com13:45
cjwatsonbjf: What's the URL, with any tokens removed?13:46
bjfhttps://launchpad.net/token/<token>/+validateemail13:46
cjwatsonI'll see if I can find any traces in logs.13:47
cjwatsonbjf: can you tell me what IP address you would have been coming from?14:04
bjfcjwatson, 184.9.145.8014:05
cjwatsonbjf: Huh, no matches; are you on the VPN?14:07
bjfcjwatson, yes14:07
cjwatsonOK, found some plausible entries, let's see14:08
cjwatsonbjf: You're hitting a crash while attempting to render a "forbidden" page (d'oh).  This suggests to me that perhaps you're trying to follow that link when logged in as some different user.  Were you perhaps logged in using your ordinary LP account?14:31
bjfcjwatson, let me try something14:41
cjwatsonYou may need to pass the validation link to IS and get them to follow it while logged in as your LP bot.14:42
bjfcjwatson, you are correct.14:42
bjfcjwatson, i managed to copy/paste the link and use it with the correct, new account, and it just worked14:43
cjwatsonExcellent14:43
cjwatsonSorry for the confusion there14:44
bjfcjwatson, np, just one of those things... should have thought about it myself14:44
rbasakIn a bug list, there's a "Date last updated" column. Is this date in UTC, or local time?16:23
rbasakWe're working out a process based on this column, so need to know if we have a race condition :)16:23
cjwatsonrbasak: You mean in browser pages?16:24
rbasakYes16:24
rbasakEmpirically we think it's UTC.16:25
cjwatsonrbasak: Times displayed in the web UI should always be formatted using the requesting user's local time.16:27
cjwatsonLet me double-check.16:27
cjwatsonYep, it's local time.16:28
cjwatsonMoved LP's idea of my timezone nine hours east, and the top entry on https://bugs.launchpad.net/launchpad/+bugs?orderby=-datecreated changed from "Last updated on 2016-08-16" to "Last updated on 2016-08-17".16:28
cjwatsonNot sure what tests you performed that made it seem like UTC.16:28
naccthe "last updated 23 hours ago" value being the same for rbasak and myself, I think16:29
cjwatsonNote that it's LP's *stored* idea of your timezone that matters, which you can change from https://launchpad.net/~/+editlocation - not e.g. your system time16:29
naccah16:29
cjwatsonWell, if it was 23 hours ago then it was 23 hours ago.  Timezone doesn't matter for that.16:29
rbasakAnd mine is set to UTC :)16:29
cjwatsonYou need to look at one that renders as an actual date to tell the difference.16:30
rbasakOK, we're all set on UTC. So we'll document that and go with it for now. Thanks :)16:30
rbasakYeah we were comparing and they were the same. Hence our confusion.16:30
rbasakIt all makes sense now ;)16:30
cjwatsonOK.  (Perhaps you should use the API instead?)16:30
cjwatsonIn [1]: lp.bugs[1].date_last_updated16:30
cjwatsonOut[1]: datetime.datetime(2016, 6, 27, 21, 19, 10, 577872, tzinfo=TimeZone(0))16:30
rbasakYes, we'll switch to the API if we have to.16:31
cjwatsonUnfortunate that bug listing don't have the usual hover text on the dates with the exact time.16:31
rbasakWe're using the date to divide work up, so just wanted to sure there were no gaps/overlap.16:31
* cjwatson nodes16:32
cjwatsonEr, nods16:32
Odd_BlokeDon't node.  (Node even once.)18:23

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!