docker icon indicating copy to clipboard operation
docker copied to clipboard

Missing PHP extension iconv

Open Calvario opened this issue 1 year ago • 1 comments

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

Calvario avatar Aug 28 '24 11:08 Calvario

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.

lowinger42 avatar Feb 28 '25 08:02 lowinger42