docker
docker copied to clipboard
Missing PHP extension iconv
Support guidelines
- [X] I've read the support guidelines
I've found a bug and checked that ...
- [X] ... the documentation does not mention anything about my problem
- [X] ... there are no open or closed issues that are related to my problem
Description
iconv is not enabled and will impact StringHelpers::inferEncoding() allowing non-utf8 https://github.com/librenms/librenms/pull/16324
Expected behaviour
iconv to be enabled
Actual behaviour
iconv is not enabled
Steps to reproduce
# cat test_iconv.php
<?php
echo function_exists('iconv') ? 'iconv function exists' : 'iconv function does not exist';
?>
# php test_iconv.php
iconv function does not exist
Docker info
N/A
Docker Compose config
No response
Logs
N/A
Additional info
Apply to all the latest images available
This is a serious issue. If someone enters Swedish characters (åäöÅÄÖ), for example on interface descriptions the poller stops/crashes. It does not occur when I'm running librenms in non-docker environment.