[11:19] <rbasak> I'm having some trouble understanding launchpadlib with an object I can't see.
[11:19] <rbasak> upload = lp.load('https://api.launchpad.net/devel/ubuntu/jammy/+upload/29206520')
[11:19] <rbasak> In the REPL, upload.copy_source_archive then gives me a ValueError
[11:20] <rbasak> "You tried to access a resource that you don't have the server-side permission to see."
[11:20] <rbasak> But the weird thing is that the getattr is successful. It's the repr() call the REPL does that raises the ValueError.
[11:20] <rbasak> Is this expected? How should I trap this case?
[11:20] <rbasak> I want to handle the ValueError gracefully, and I expected it to happen on the getattr(), but it didn't.
[11:25] <rbasak> For 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.
[14:41] <guruprasad> rbasak, 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:43] <guruprasad> If 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:54] <rbasak> guruprasad: here's my reproducer: https://paste.ubuntu.com/p/99S5v2sVb3/
[14:54] <rbasak> Note that command 2 succeeds, but command 3 fails. That's what I'm finding surprising.
[17:33] <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: