LUM images writing is not supported

Description

When I generate images LUM with otb application, I encountered an error :

Cannot write image <FileName>. Probably unsupported format or incorrect filename extension.

The gdaldriver lum is provided and gdal is able to read and write images.

The ReadImageInfo application is complain when we use otbcli script launcher. An other error appear:

Cannot open image <FileName>. Probably unsupported format or incorrect filename extension.

But there is no error if I use "otbApplicationLauncherCommandLine".

Steps to reproduce

Enable LUM driver to export variable GDAL_DRIVER_PATH=<LUM_gdal_driver_path> Generate LUM images from a pair of LUM images and the bandmath application:

otbApplicationLauncherCommandLine BandMath -il reech_fusion_file_out_B0_001.lum reech_fusion_file_out_B0_001_2.lum -out resultat.lum -exp "im1b1 + im2b1"

Configuration information

OS: rocky8 OTB-9.1.1 GDAL 3.9 driver lum according to GDAL 3.9 and RH8

Suggestion

One solution can be read here: 3d7b2fc7 and in the otb branch lum_driver_support

Edited by Tristan Laurent