mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
RM-497 (Distorted folders name after Load Test Data DODExampleFilePlan.xml)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@45035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,7 +36,12 @@ public class DataSetBase implements DataSet
|
||||
String label = this.label;
|
||||
if (StringUtils.isBlank(label))
|
||||
{
|
||||
label = I18NUtil.getMessage("dataset." + getId() + ".label");
|
||||
String propertyKey = "dataset." + getId() + ".label";
|
||||
label = I18NUtil.getMessage(propertyKey);
|
||||
if (StringUtils.isBlank(label))
|
||||
{
|
||||
label = propertyKey;
|
||||
}
|
||||
}
|
||||
return label;
|
||||
}
|
||||
|
@@ -54,6 +54,9 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
||||
/** Spaces store */
|
||||
private static final StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
|
||||
|
||||
/** Charset name */
|
||||
private static final String charsetName = "UTF-8";
|
||||
|
||||
/** Importer service */
|
||||
private ImporterService importerService;
|
||||
|
||||
@@ -248,7 +251,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
||||
+ "' import file could not be found!"); }
|
||||
|
||||
// Import view
|
||||
Reader viewReader = new InputStreamReader(is);
|
||||
Reader viewReader = new InputStreamReader(is, charsetName);
|
||||
Location location = new Location(filePlan);
|
||||
importerService.importView(viewReader, location, null, null);
|
||||
|
||||
|
Reference in New Issue
Block a user