Some bug fixes : 5017, 5095 and 5097

For 5017, do not forget to check out Silverpeas-Core...