[
https://issues.apache.org/jira/browse/JCLOUDS-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15116920#comment-15116920
]
Ignasi Barrera commented on JCLOUDS-691:
----------------------------------------
Regarding the use of the ReturnNullOnX fallbacks, there are many POST/PUT
operations that return just a 202 Accepted. In that case it is OK to leave the
methods returning void, otherwise they should return the object returned by the
api.
> The 404 fallbacks should be removed from PUT and POST operations in the
> OpenStack APIs
> --------------------------------------------------------------------------------------
>
> Key: JCLOUDS-691
> URL: https://issues.apache.org/jira/browse/JCLOUDS-691
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute, jclouds-labs-openstack
> Affects Versions: 1.8.0
> Reporter: Ignasi Barrera
> Labels: openstack, rackspace, technical_debt
> Fix For: 2.0.0
>
>
> Write operations such as PUT or POST should not use the 404 fallbacks that
> silently return null instead of propagating an exception. The fallback should
> be removed so a ResourceNotFoundException is propagated.
> See the discussion here:
> https://github.com/jclouds/jclouds-labs-openstack/pull/135/files#r16700137
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)