/srv/irclogs.ubuntu.com/2022/08/17/#launchpad.txt

rbasakI'm having some trouble understanding launchpadlib with an object I can't see.11:19
rbasakupload = lp.load('https://api.launchpad.net/devel/ubuntu/jammy/+upload/29206520')11:19
rbasakIn the REPL, upload.copy_source_archive then gives me a ValueError11:19
rbasak"You tried to access a resource that you don't have the server-side permission to see."11:20
rbasakBut the weird thing is that the getattr is successful. It's the repr() call the REPL does that raises the ValueError.11:20
rbasakIs this expected? How should I trap this case?11:20
rbasakI want to handle the ValueError gracefully, and I expected it to happen on the getattr(), but it didn't.11:20
rbasakFor now I just called repr() on the result to force the ValueError to appear when I expect it (earlier), rather than when it later gets used.11:25
=== JanC_ is now known as JanC
guruprasadrbasak, I checked this and it looks like I can see the object. So I am unable to reproduce this issue to investigate further. I will see if I can create an unprivileged account and investigate further.14:41
guruprasadIf you are able to use getattr() and then access the value, that is weird because, afaik, only those with the appropriate permissions on that object can access that attribute.14:43
rbasakguruprasad: here's my reproducer: https://paste.ubuntu.com/p/99S5v2sVb3/14:54
rbasakNote that command 2 succeeds, but command 3 fails. That's what I'm finding surprising.14:54
Eickmeyer[m]guruprasad: Having an interesting situation at https://code.launchpad.net/~kubuntu-packagers/kubuntu-packaging/+git/kdeconnect-kde. I'm part of the ~kubuntu-ninjas team which should have access to every single git repo there, but seem to be unable to access that one specific repo. I've worked with RikMills but he seems to be unable to fix.17:33
* Eickmeyer[m] uploaded an image: (37KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/gDBDZYeddkEoUXhjbHMHDwCg/image.png >17:33
Eickmeyer[m]My result is this:17:33

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