Merge branch 'master' into feature/stabilization
ECMS-6086: Unknown error and PathNotFoundException when restoring a file with tags

Fix description:
  - Using systemSession to store restore path for node in Trash
  - in case restore a symlink, if a path with index is not found, using its name instead

Conflicts:
	core/services/src/main/java/org/exoplatform/services/cms/documents/impl/TrashServiceImpl.java
ECMS-6086: Unknown error and PathNotFoundException when restoring a file with tags

Fix description:
  - fix the place to add restore path when moving node to Trash
ECMS-5942: Error while displaying Sites Explorer without buttons

Fix description:
  - Show also the uiActionsBarContainer if there is no button in the action bar
ECMS-6168: Download function doesn't preserve the original file name in Chinese

Fix description:
  - Get the file title instead of filename
  - encode the file title
ECMS-6096: "Description" field in Metadata has XSS vulnerability for CLV

Fix description:
 - Escape XSS script when rendering to the CLV

Conflicts:
	core/webui/src/main/java/org/exoplatform/ecm/webui/utils/Utils.java
ECMS-5745: No file name in warning message when trying to restore files of other user's Public folder

Problem analysis:
  - When select multiple files in Trash, we do not verify the permission if we can restore file at the target destination

Fix description:
  - Add a parameter to check IsAbleToRestore for multiple node

Conflicts:
	core/webui-explorer/src/main/java/org/exoplatform/ecm/webui/component/explorer/control/filter/IsAbleToRestoreFilter.java
	core/webui/src/main/java/org/exoplatform/ecm/webui/utils/Utils.java
ECMS-5897: [File Management View] Sort by Name and Date is not correct

Fix description:
  - Change the default value for sort
  - in case sort by date, revert the default sort value

Conflicts:
	core/webui-explorer/src/main/java/org/exoplatform/ecm/webui/component/explorer/UIDocumentInfo.java
ECMS-6125 [CKEditor] Failed to load Insert Content/Image forms due to missing locales

Problem analysis:
* There are only 3 locale files (JSON) for English, French, Vietnamese.
  The loading failed (404 error) when there isn't the expected locale file.

Fix description:
* When it fails to load a locale file, it will continue to load the English file.
ECMS-6125: Set up userLanguage before loading JavaScript of locale files

Fix description:
* Manual set up the available locale files for this plugin
* Check if the current user language belongs to the available locales for this plugin. Default locale is English.
* Load the locale file and the corresponding functions in ContentSelector.js
ECMS-6064 | CLONE - Binary content with no *dc:title* property are not inserted when uploaded and selected with WCM Content Selector

Conflicts:
	core/services/src/main/java/org/exoplatform/services/cms/impl/Utils.java
ECMS-6064 | Updating if statement to use org.apache.commons.lang.StringUtils to check if title is empty

Conflicts:
	core/services/src/main/java/org/exoplatform/services/cms/impl/Utils.java
ECMS-6029: [acme][IE8] Missing illustration images of built-in contents

Fix description:
	- Add image padding for IE 8

Conflicts:
	apps/resources-wcm/src/main/webapp/skin/less/ecms-resources-wcmskin.less
ECMS-6168: Preserve the original file name of non-latin characters when downloading from Firefox

Problem analysis:
* Firefox browser require the parameter filename* in disposition parameters which has encoding value of the file name.

Fix description:
* Add filename* parameter in the response header to get the original file name for both IE, Firefox and Chrome browsers.
ECMS-4880: Cannot go directly to a user folder with username as email address

Fix description:
- Use function from jcr which considers @ as a legal character to escape illegal JCR characters
ECMS-4880: Fix on rest service

Conflicts:
	core/connector/src/main/java/org/exoplatform/wcm/connector/fckeditor/DriverConnector.java
ECMS-4880: Remove unused import lib
ECMS-6059: "Label" field in Template Document has XSS vulnerability

Fix description:
  - Escape XSS script when render to the UI
ECMS-6059: "Label" field in Template Document has XSS vulnerability

Fix description:
  - escape XSS character after get the contentType
  - escape XSS character also for ListView
ECMS-6053: After being added symlink, published document is changed to draft

Problem analysis:
  - After adding a symlink, we trigger the event POST_EDIT_CONTENT_EVENT for the target node even when it is not modified

Fix description:
  - we trigger this event only when there is a change in the target node