Allow to edit the fields, If glare artifact is in de-activated state

Bug #1795345 reported by Santhosh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glare
In Progress
Undecided
Kushal Agrawal

Bug Description

Allow to edit the fields, If glare artifact is in de-activated state.

Stack details:

2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault File "/usr/lib/python2.7/site-packages/glare/api/v1/resource.py", line 340, in update
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault return self.engine.save(req.context, type_name, artifact_id, patch)
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault File "/usr/lib/python2.7/site-packages/glare/engine.py", line 285, in save
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault action_names = self._apply_patch(context, af, patch)
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault File "/usr/lib/python2.7/site-packages/glare/engine.py", line 207, in _apply_patch
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault utils.validate_change_allowed(af, field_name)
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault File "/usr/lib/python2.7/site-packages/glare/common/utils.py", line 597, in validate_change_allowed
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault raise exception.Forbidden(message=msg)
2018-10-01 09:34:03.716 31384 ERROR glare.api.middleware.fault Forbidden: Forbidden to change fields if artifact is not active or drafted.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glare (master)

Fix proposed to branch: master
Review: https://review.openstack.org/607849

Changed in glare:
assignee: nobody → Kushal Agrawal (kushal2605)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.