[TASK] compatibility to 6.2 LTS

merging patch from Nicole Cordes for the 6.2 LTS compatibility.

Forge #59765
added gitignore