Closed laurentS closed 5 years ago
Hi @laurentS - thanks for finding a bug! If you could submit that short PR, that would be great 🙂 (We'll get it merged and credit you in the next set of release notes!)
(I can only think we've not come across it before as in most cases elinks
is found by the operating system without having to provide the path but that is not what the code is supposed to be doing; as you've found - it's helpfully figuring out the full path then discarding it 😞)
Hello!
Not 100% sure this is a bug or my misconfiguration, but I suspect the former. I have about 4 hours of experience with ruby, so it's possible that I'm mistaken, sorry :)
To reproduce
Send a reply to a FOI request in
text/html
format, then open the request page. The page fails to load, with the following error:Possible fix
In
lib/alaveteli_external_command.rb
, thefind_program
method returns exactly the argument it received, so the incoming mail handler fails when receiving an email intext/html
format for instance, as it cannot findelinks
. Patching the code like below seems to fix the problem for me, but maybe I just need to fix my config.Happy to write a short PR if it is indeed a bug.