Hi!
We copied these files from head to 5_2 to solve the problem on our production instance:
openacs-4/packages/acs-content-repository/tcl/content-folder-procs.tcl
openacs-4/packages/acs-content-repository/tcl/content-folder-procs.xql
openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.3.0d4-5.3.0d5.sql
openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.3.0d6-5.3.0d7.sql
At the moment it seems that it worked well.
Thanks for the help