Details
-
Bug
-
Resolution: Done
-
Minor
-
xCM 5.0 SP5, xCM 6.0
-
None
Description
Our Patch Management system does not find patch files, if they were commited as last commit before creating a new Jahia (hotfix) release. As can be seen in the latest hotfix release (now jahia-hotfix-5.0.5_1_r25260.zip ) the release number 25260 is also the same as the last commit before the release, which is in this case a change on ProcessingContext. If the last commit would be a patch for the patch management, it would not be displayed, becuase there is this check:
patch.getNumber() > lastVersion && patch.getNumber() < currentVersion
which simply excludes a patch having the same number as the release.
We should also enhance the system and allow applying custom (version independent) patches, which have no number in the name, so the correct check should be:
patch.getNumber() == 0 || (patch.getNumber() > lastVersion && patch.getNumber() <= currentVersion)