Detection of missing patch description (potential cause of AR-440)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2453 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-02-20 16:40:53 +00:00
parent e55b533ec9
commit 4ccff8230e

View File

@@ -202,7 +202,13 @@ public class PatchServiceImpl implements PatchService
appliedPatch = patchDaoService.newAppliedPatch(patch.getId()); appliedPatch = patchDaoService.newAppliedPatch(patch.getId());
} }
// fill in the record's details // fill in the record's details
appliedPatch.setDescription(I18NUtil.getMessage(patch.getDescription())); String patchDescription = I18NUtil.getMessage(patch.getDescription());
if (patchDescription == null)
{
logger.warn("Patch description is not available: " + patch);
patchDescription = "No patch description available";
}
appliedPatch.setDescription(patchDescription);
appliedPatch.setFixesFromSchema(patch.getFixesFromSchema()); appliedPatch.setFixesFromSchema(patch.getFixesFromSchema());
appliedPatch.setFixesToSchema(patch.getFixesToSchema()); appliedPatch.setFixesToSchema(patch.getFixesToSchema());
appliedPatch.setTargetSchema(patch.getTargetSchema()); // the schema the server is expecting appliedPatch.setTargetSchema(patch.getTargetSchema()); // the schema the server is expecting