[07:58] <mvo> hey, 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.)
[08:08] <wgrant> mvo: Is that reproducible?
[08:10] <wgrant> That suggests the store took too long to reply to LP, but it's working okay for me now.
[08:11] <mvo> wgrant: for me it is reproducible, I get it everytime (just tried again 10sec ago)
[08:23] <wgrant> mvo: Very weird. I'll keep digging, but hopefully cjwatson will have some ideas when he arrives.
[08:24] <wgrant> We're not getting OOPSes, which doesn't make much sense.
[08:25] <mvo> wgrant: 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 puzzling
[08:26] <wgrant> mvo: I suppose you couldn't be convinced to namespace base-16 and base-18 a bit?
[08:26] <wgrant> The names are a little unclear today.
[08:27] <wgrant> When I first saw base-16 in the project list I assumed someone had written a new hexadecimal calculator.
[08:27] <mvo> wgrant: happy to do that
[08:27] <mvo> wgrant: haha
[08:27] <mvo> wgrant: snap-base-18 ?
[08:28] <wgrant> That'd be much clearer IMO
[08:30] <mvo> ok
[08:30] <mvo> I will delete the other names and rename
[08:30] <wgrant> mvo: I can rename
[08:30] <mvo> wgrant: great, please do, for both base-16 and base-18
[08:31] <wgrant> mvo: Done. Thanks.
[08:31] <mvo> wgrant: and thank you!
[08:31] <wgrant> mvo: Still digging in logs for your authorisation issue. It's very unusual that we don't get a soft timeout or something.
[08:31] <wgrant> Well, 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:32]  * mvo nods
[11:18] <ahasenack> hi 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 404
[11:18] <ahasenack> it's in this comment: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1730311/comments/3
[11:29] <cjwatson> certainly looks like an encoding issue, but the exception makes no sense
[11:29] <cjwatson> NotFound: Object: <BugAttachment at 0x7f8d942abc90>, name: u'='
[11:29] <cjwatson> there's no '=' segment in that URL
[11:30] <cjwatson> I guess something must be decoding the %3F too early
[11:30] <wgrant> https://bugs.launchpad.net/launchpad/+bug/983766
[11:30] <wgrant> Apache being evil
[11:31] <wgrant> Basically an unavoidable mod_rewrite misfeature IIRC
[11:31] <wgrant> But it's been half a decade, maybe it's been fixed :)
[11:32] <wgrant> You can get the raw librarian URLs from the API if you really need access to that attachment
[11:40] <Nafallo> wgrant: found /msg yet? ;-)
[11:41] <wgrant> Nafallo: Oops, apparently my window columns overflowed.
[13:09] <ahasenack> cjwatson: wgrant: that guy is adding attachments to the bug via email :/
[13:09] <ahasenack> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1730311/comments/5
[21:42] <alai> hi, what user should be login to get the subscriptions list?
[21:42] <alai> it gives this error: lazr.restfulclient.errors.Unauthorized: HTTP Error 401: Unauthorized
[21:42] <alai> (<Person at 0x7f6b8ed76890 canonical-is (Canonical IS)>, 'name', 'launchpad.LimitedView')
[21:43] <alai> I login using Launchpad.login_anonymously
[21:43] <alai> and get a list of bugs using launchpad.bugs.searchTasks()
[21:44] <wgrant> alai: What is the exact statement that is failing?
[21:44] <alai> and a for loop to get to each subscriptions
[21:44] <alai> wgrant, for x in task.bug.subscriptions:
[21:45] <wgrant> alai: Which bug is it?
[21:45] <alai> let me print out bug number
[21:47] <alai> wgrant, 1723480
[21:48] <wgrant> alai: 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] <wgrant> This is one of two places where permissions differ between anonymous and arbitrary users.
[21:51] <alai> ah ok
[21:51] <alai> so to login using name i can just do Launchpad.login('username') ?
[21:51] <alai> i read somewhere that says Launchpad.login is deprecated
[21:51] <alai> i can test it out also
[21:52] <wgrant> alai: Just replace Launchpad.login_anonymously with Launchpad.login_with. It'll open your browser or give you a URL to authorise.
[21:53] <alai> wgrant, 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:55] <wgrant> alai: 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] <alai> cool yeah i think catching an exception is best here
[21:55] <alai> wgrant, thanks