As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean id="patch.testClassPath" class="com.agilent.openlab.eln.TestPatchClass" parent="basePatch"> <property name="id" value="patch.testClassPath0"/> <property name="description" value="Test string"/> <property name="fixesFromSchema" value="0"/> <property name="fixesToSchema" value="5020" /> <property name="targetSchema" value="5020"/> </bean> <!– Test beans for Alfresco patch service –> <bean id="patch.testPath1" class="com.agilent.openlab.eln.TestPatch1" parent="basePatch"> <property name="id" value="patch.testClassPath1"/> <property name="description" value="Test string"/> <property name="fixesFromSchema" value="5020"/> <property name="fixesToSchema" value="5021" /> <property name="targetSchema" value="5022"/> </bean> <bean id="patch.testPath2" class="com.agilent.openlab.eln.TestPatch2" parent="basePatch"> <property name="id" value="patch.testClassPath2"/> <property name="description" value="Test string"/> <property name="fixesFromSchema" value="5020"/> <property name="fixesToSchema" value="5021" /> <property name="targetSchema" value="5022"/> </bean> <bean id="patch.testPath3" class="com.agilent.openlab.eln.TestPatch3" parent="basePatch"> <property name="id" value="patch.testClassPath3"/> <property name="description" value="Test string"/> <property name="fixesFromSchema" value="5022"/> <property name="fixesToSchema" value="5023" /> <property name="targetSchema" value="5024"/> </bean>
Access Denied. But if I'm set <fixesToSchema> to ${version.schema} all is ok! But if i set to number - it's fail!!! The system is currently in read-only mode
public class TestPatchClass extends AbstractPatch { @Override protected String applyInternal() throws Exception { return "Test string"; } }
for (Patch patch : patches) { if (patch.getFixesToSchema() > serverSchemaVersion) { logger.error(I18NUtil.getMessage(MSG_VALIDATION_FAILED, patch.getId(), serverSchemaVersion, patch .getFixesToSchema(), patch.getTargetSchema())); success = false; } }