-
Bug
-
Resolution: Answered
-
Low
-
4.4.0
-
Severity 3 - Minor
-
In REST API, you would need to abandon a review prior to delete it.
Abandon review e.g http://localhost:8060/rest-service/reviews-v1/CR-5/transition?action=action:abandonReview
Then delete it with http://localhost:8060/rest-service/reviews-v1/CR-5/transition?action=action:deleteReview, you won't be able to delete it as you are prompted with message "You can't do action:deleteReview in state Dead"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><code>Runtime</code><message>com.cenqua.crucible.model.AuthorizationException: You can't do action:deleteReview in state Dead</message><stacktrace>java.lang.RuntimeException: com.cenqua.crucible.model.AuthorizationException: You can't do action:deleteReview in state Dead
If you run http://localhost:8060/rest-service/reviews-v1/CR-5/transitions, it will listed that the only action allowed is recoverReview.
Hence, looks like action:deleteReview is never achievable.
The actual way to delete a review is DELETE http://localhost:8060/rest-service/reviews-v1/CR-5 which has been abandoned earlier.
- mentioned in
-
Page Loading...