Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: Backlog
-
Fix Version/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
When setting 'allowMajorUpdates' to 'false' and 'allowSnapshots' to 'true', '1.0' will still be upgraded to '2.0-SNAPSHOT', presumable because it is considered to be below the 'upper bound' of '2.0'.
This is obviously undesirable because setting 'allowMajorUpdates' to 'false' is likely to be intended to prevent upgrading to a version with API-breaking changes, and '2.0-SNAPSHOT' may already hold those API-breaking changes.
Attached is a patch that adds a unit test showing the behavior.
Activity
Arnout Engelen
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | noMajorUpdates.patch [ 57051 ] |
Patch that should fix the issue.
Not sure what to do with the PropertyVersionComparator inside PropertyVersions, but this does pass all unit tests and produces the behavior I expected.