/srv/irclogs.ubuntu.com/2017/11/28/#launchpad.txt

=== chihchun_afk is now known as chihchun
mvohey, I was trying to enable automatic builds on branch changes for https://code.launchpad.net/~mvo/+snap/base-18/ - but the checkbox "Automatically build when branch changes" and hit update snap package I get a "Uh oh!" error page with no oops ( Technically, the load balancer took too long to connect to an application server.)07:58
wgrantmvo: Is that reproducible?08:08
wgrantThat suggests the store took too long to reply to LP, but it's working okay for me now.08:10
mvowgrant: for me it is reproducible, I get it everytime (just tried again 10sec ago)08:11
wgrantmvo: Very weird. I'll keep digging, but hopefully cjwatson will have some ideas when he arrives.08:23
wgrantWe're not getting OOPSes, which doesn't make much sense.08:24
mvowgrant: ok, please let me know if I can help in any way. note its not super urgent yet, there is a bit of time before we really need base-18 :) but its puzzling08:25
wgrantmvo: I suppose you couldn't be convinced to namespace base-16 and base-18 a bit?08:26
wgrantThe names are a little unclear today.08:26
wgrantWhen I first saw base-16 in the project list I assumed someone had written a new hexadecimal calculator.08:27
mvowgrant: happy to do that08:27
mvowgrant: haha08:27
mvowgrant: snap-base-18 ?08:27
wgrantThat'd be much clearer IMO08:28
mvook08:30
mvoI will delete the other names and rename08:30
wgrantmvo: I can rename08:30
mvowgrant: great, please do, for both base-16 and base-1808:30
wgrantmvo: Done. Thanks.08:31
mvowgrant: and thank you!08:31
wgrantmvo: Still digging in logs for your authorisation issue. It's very unusual that we don't get a soft timeout or something.08:31
wgrantWell, very unusual that you don't get a very obvious OOPS ID. Even less usual than we don't seem to get an OOPS even internally.08:31
* mvo nods08:32
ahasenackhi there, I need some help in fetching an attachment from LP. It has a funny name (incorrectly encoded I bet) and launchpad gives me a 40411:18
ahasenackit's in this comment: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1730311/comments/311:18
ubot5Launchpad bug 1730311 in samba (Ubuntu) "package libnss-winbind:i386 2:4.3.11+dfsg-0ubuntu0.16.04.11 failed to install/upgrade: problèmes de dépendances - laissé non configuré" [Undecided,Incomplete]11:18
cjwatsoncertainly looks like an encoding issue, but the exception makes no sense11:29
cjwatsonNotFound: Object: <BugAttachment at 0x7f8d942abc90>, name: u'='11:29
cjwatsonthere's no '=' segment in that URL11:29
cjwatsonI guess something must be decoding the %3F too early11:30
wgranthttps://bugs.launchpad.net/launchpad/+bug/98376611:30
ubot5Launchpad bug 983766 in Launchpad itself "Error when uploading screenshot incl. a question mark in url" [Critical,Triaged]11:30
wgrantApache being evil11:30
wgrantBasically an unavoidable mod_rewrite misfeature IIRC11:31
wgrantBut it's been half a decade, maybe it's been fixed :)11:31
wgrantYou can get the raw librarian URLs from the API if you really need access to that attachment11:32
Nafallowgrant: found /msg yet? ;-)11:40
wgrantNafallo: Oops, apparently my window columns overflowed.11:41
=== chihchun is now known as chihchun_afk
ahasenackcjwatson: wgrant: that guy is adding attachments to the bug via email :/13:09
ahasenackhttps://bugs.launchpad.net/ubuntu/+source/samba/+bug/1730311/comments/513:09
ubot5Launchpad bug 1730311 in samba (Ubuntu) "package libnss-winbind:i386 2:4.3.11+dfsg-0ubuntu0.16.04.11 failed to install/upgrade: problèmes de dépendances - laissé non configuré" [Undecided,Incomplete]13:09
alaihi, what user should be login to get the subscriptions list?21:42
alaiit gives this error: lazr.restfulclient.errors.Unauthorized: HTTP Error 401: Unauthorized21:42
alai(<Person at 0x7f6b8ed76890 canonical-is (Canonical IS)>, 'name', 'launchpad.LimitedView')21:42
alaiI login using Launchpad.login_anonymously21:43
alaiand get a list of bugs using launchpad.bugs.searchTasks()21:43
wgrantalai: What is the exact statement that is failing?21:44
alaiand a for loop to get to each subscriptions21:44
alaiwgrant, for x in task.bug.subscriptions:21:44
wgrantalai: Which bug is it?21:45
alailet me print out bug number21:45
alaiwgrant, 172348021:47
wgrantalai: Ah, so this is a bit of weirdness in some permissions. You have to options: either catch the exception and ignore the private subscriber, or log in as any user at all and you'll be able to see limited details (mostly just the name).21:48
wgrantThis is one of two places where permissions differ between anonymous and arbitrary users.21:48
alaiah ok21:51
alaiso to login using name i can just do Launchpad.login('username') ?21:51
alaii read somewhere that says Launchpad.login is deprecated21:51
alaii can test it out also21:51
wgrantalai: Just replace Launchpad.login_anonymously with Launchpad.login_with. It'll open your browser or give you a URL to authorise.21:52
alaiwgrant, i need to have it in a script and we run a cron job to pull bugs every hour.  Is there a better option for login ?21:53
wgrantalai: I'd probably just catch the Unauthorized and skip the subscription. https://help.launchpad.net/API/launchpadlib#Authenticated_access_for_website_integration describes how to use a manual credentials file, though.21:55
alaicool yeah i think catching an exception is best here21:55
alaiwgrant, thanks21:55

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