ETHREEOH-2126 - WCM meta data extraction does not extract title when form is created

- metadata extractor was not firing 
 - titled aspect was applied after extraction thereby overwriting extracted value.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2009-10-20 09:25:04 +00:00
parent 6510076be2
commit b137bdb21f
3 changed files with 17 additions and 8 deletions

View File

@@ -386,10 +386,16 @@ public class AVMServiceImpl implements AVMService
*/
public void createFile(String path, String name, InputStream in, List<QName> aspects, Map<QName, PropertyValue> properties)
{
if (path == null || name == null || in == null || !FileNameValidator.isValid(name))
if (path == null || name == null || in == null)
{
throw new AVMBadArgumentException("Illegal argument.");
}
if(!FileNameValidator.isValid(name))
{
throw new AVMBadArgumentException("Illegal argument, name:" + name);
}
// Save the contents to temp space.
File temp;
try