Time Nick Message 07:19 magnuse \o/ 07:34 reiveune hello 08:26 ashimema anyone recently managed to get git bz working on a headless server? 08:27 ashimema I keep hitting 08:27 ashimema Error getting login cookie from browser:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/NjCSAymfwcUJmyEDoSKzGZid>) 08:27 ashimema but just installing any of those browsers isn't enough 08:27 ashimema It's kinda nuts that it requires a full browser 08:47 magnuse hm, looks like i need to extract all the images from cover_images as files. is there a clever way to do that already, or should i try and write a small script to do it? 08:58 Joubu ashimema: did you try with use_git_credential? 09:09 PedroAmorim[m] o/ 09:17 ashimema I actually only want to 'apply' so I wouldn't have thought I'd need to 09:17 ashimema that's the annoying thing.. if I'm on a server, in general, i'm only ever wanting to apply and don't want my credentials stored 09:18 paulderscheid[m] Let’s rewrite it in Rust 😄 09:19 ashimema ooh, use credentials does work 09:19 ashimema just asks for my password and stuff.. which is fine 09:20 paulderscheid[m] Nice 09:21 ashimema wow it asks for it a lot 09:21 ashimema like.. with every conflict it asks again 09:21 ashimema fun 09:21 ashimema still.. I got my bug applied 10:33 tcohen[m] Hola #koha o/ 11:13 tcohen[m] we should rewrite git-bz in Perl :-P 11:14 paulderscheid[m] Ha, makes sense. 11:14 paulderscheid[m] :D 11:14 ashimema is there a plan in place to migrate to bootstrap 5 ? 11:15 ashimema just been highlighted ot me that even 4 LTS is now unmaintained for 10 months already 11:18 PedroAmorim[m] hey guys, Jenkins getting a "no space left on device" error: 11:18 PedroAmorim[m] https://jenkins.koha-community.org/job/Koha_22.11_U20/287/console 11:19 paulderscheid[m] I think oleonard has it on his mind. We briefly talked about it in Kansas. If I remeber correctly he wanted to get rid of jQueryUI first. 11:24 ashimema good to know he's got it in his mind 11:25 paulderscheid[m] Wasn't aware that v4 already reached EOL/. 11:32 ashimema me either 11:33 ashimema https://endoflife.date/bootstrap 11:34 ashimema hmm 11:34 ashimema the links from there go to 4.5 though.. is there not a 4.6? 11:34 paulderscheid[m] Cool site 👍️ 11:34 paulderscheid[m] I thought we use 4.6 11:34 paulderscheid[m] :D 11:35 ashimema that site is a little wierd.. some bits point to 4.6 others point to 4.5 11:35 ashimema looks like both are eol anyway though 11:35 paulderscheid[m] Yeah 11:36 paulderscheid[m] Well, shouldn't be too much of a hassle. Just grep and replace: https://getbootstrap.com/docs/5.0/migration/ 11:36 paulderscheid[m] And it seems we need Popper now, whatever that is. 11:37 paulderscheid[m] Oh, it was already required by v4 11:37 paulderscheid[m] Ah it's for tooltips 11:38 ashimema I've reported it as a bug 11:38 ashimema under the security area for now.. not sure there are any CVE's as yet.. but as an unmaintained lib we should probably prioritise it before there are 11:39 paulderscheid[m] Yep, makes sense 11:41 paulderscheid[m] Just checked exploit-db. Koha is even in there, albeit v3.2 :D 11:42 paulderscheid[m] Nice to be targeted. 11:42 paulderscheid[m] It's like a badge of honor. 11:44 ashimema lol 11:44 paulderscheid[m] Was reported by sba-research 11:45 tcohen[m] hola ashimema Joubu 11:51 ashimema Hi tcohen 16:15 reiveune bye 16:48 paulderscheid[m] Is there a way to get the user out of the session cookie? I'm aware of the existing implementation in the REST API but I hoped I could avoid duplicating that. 16:48 paulderscheid[m] By user I mean some id, that i can resolve to a user. 16:50 tcohen[m] There's no method written but C4::Context::userenv and looking for the 'number' key 16:51 paulderscheid[m] Ok 16:51 tcohen[m] What is the context of the question? 16:51 tcohen[m] .pl? .tt? 16:51 paulderscheid[m] .pl 16:52 paulderscheid[m] I read the your code tcohen. If you say it's the only way, it most likely is. 16:54 tcohen[m] on .pl there's usually a call to get_template_and_user() 16:54 tcohen[m] which returns the $borrowernumber 16:55 tcohen[m] of the logged in user 16:55 tcohen[m] that's why I asked about your context 16:55 tcohen[m] admin/cities.pl:35 16:56 tcohen[m] Koha::Patrons->search_limited implements what I was saying, in the context of a class 16:56 tcohen[m] and in the context of .tt 16:57 tcohen[m] get_template_and_user() stashes the 16:57 paulderscheid[m] Ah, sorry. To be more precise this is inside a Mojolicious Controller. 16:57 tcohen[m] logged_in_user template variable 16:57 tcohen[m] then my $logged_in_user = $c->stash('koha.user'); 16:58 paulderscheid[m] Yeah, normally you'd be right. But I didn't integrate that part of the code into the api I'm working on. 16:59 paulderscheid[m] The auth model is a little different. 16:59 tcohen[m] ok, this is not a plugin either, just a separate Mojo endpoint with your code 16:59 tcohen[m] in that case the .pm way 17:00 paulderscheid[m] Alright, I'll check it out! Thank you. 17:25 ashimema did I imagine a bit of a re-branding effort for the Koha team at Catalyst? I could have swarn it popped up on my LinkedIn feed a day or so ago but I can't for the life of me spot it now 17:27 paulderscheid[m] If you find it again I‘d love to see it. 18:29 paulderscheid[m] Thanks again tcohen, just got back and tried what you suggested. Works flawlessly. 18:29 paulderscheid[m] tcohen++