Cherry-Pick fixes from the 9.18 branch

Cherry-Pick fixes done in the 9.18 branch after 9.19 forked off

Closes: #1056984

Merge request reports

Loading