mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Removed very low-level check for content URL. This class is used independently of the content stores.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -29,7 +29,6 @@ import java.util.Locale;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.alfresco.i18n.I18NUtil;
|
||||
import org.alfresco.repo.content.AbstractContentStore;
|
||||
import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter;
|
||||
import org.alfresco.util.EqualsHelper;
|
||||
|
||||
@@ -240,13 +239,6 @@ public class ContentData implements Serializable
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check that the protocol separator is present
|
||||
if (contentUrl != null && !AbstractContentStore.isValidContentUrl(contentUrl))
|
||||
{
|
||||
throw new IllegalArgumentException(
|
||||
"The content URL must be of the form 'protocol://identifier': \n" +
|
||||
" Content URL: " + contentUrl);
|
||||
}
|
||||
|
||||
// check that mimetype is present if URL is present
|
||||
if (mimetype == null)
|
||||
|
Reference in New Issue
Block a user