openkm / document-management-system

OpenKM is a Open Source Document Management System
https://www.openkm.com/
GNU General Public License v2.0
671 stars 297 forks source link

Document Service end point does not consider the "increment" field during checkin operation, so only minor version is updated #323

Closed rohitmp closed 2 years ago

rohitmp commented 2 years ago

Current behavior Document Service REST end point does not consider the "increment" field during checkin operation, so only minor version is getting updated.

Expected behavior Document Service REST end point does not honor the "increment" field, being send in the param "increment" to be considered and then update the respective version.

It should support following INCREASE_DEFAULT = 0; INCREASE_MINOR = 1; INCREASE_MAJOR = 2; INCREASE_MAJOR_MINOR = 3;

Seen in OKM Version: 6.3.12

darkman97i commented 2 years ago

It seems a bug in the API. I have created a pull request to solve it ( if you wish can try it ).