Merged 5.2.N (5.2.1) to HEAD (5.2)

125442 amorarasu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
      125335 rneamtu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
         125223 amukha: MNT-15743: documentlibrary generation anomaly in Share
            - Added a check to ensure that a proper doc lib container would be created.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-06-03 16:09:52 +00:00
parent 6ca0d7f54f
commit bad97eaba7

View File

@@ -2569,6 +2569,10 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
// Check for the component id
ParameterCheck.mandatoryString("componentId", componentId);
// use the correct container for doclib
// MNT-15743
componentId = componentId.toLowerCase().equals(DOCUMENT_LIBRARY.toLowerCase()) ? DOCUMENT_LIBRARY : componentId;
// retrieve site
NodeRef siteNodeRef = getSiteNodeRef(shortName);
if (siteNodeRef == null)