caorongjin/liferay-portal — pull request #42 by epgarcia (2012-04-10 11:06:04+00:00)
Title: LPS-25702 Moving Media & Document to repository root fails

At getRepositoryImpl(folderId, fileEntryId, fileVersionId) we first determine the corresponding repositoryEntryId. If the obtained repositoryEntryId is that of a folder but the repositoryEntryId actually does not exist, we check if the folder is a mount DLFolder and if so, we return the correct repositoryImpl from the repositoryId of the folder.

This prevents the getRepositoryImpl from returning an incorrect destination repository type when moving a document to the root of a repository identified by its mount folder.