Red Hat Bugzilla – Bug 971065
Updating asset's source via REST just replaces the source without creating a new asset version
Last modified: 2015-02-24 13:11:33 EST
Description of problem:
When updating the asset's source via Guvnor's REST API, the source is just replaced and the old source is not saved at all (e.g. no new version of the asset is created).
Looking at the source: https://github.com/droolsjbpm/guvnor/blob/5.3.x/guvnor-webapp/src/main/java/org/drools/guvnor/server/jaxrs/PackageResource.java#L743 it seems like a call to method asset.checkin() is missing.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure and the Guvnor.
2. Update the asset source via REST.
3. Login to guvnor and open the asset's metadata.
No new version is created after the source has been updated.
New version is created. The old source is saved within the previous version.