[ 
https://issues.apache.org/jira/browse/DTACLOUD-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546920#comment-13546920
 ] 

Joseph J. VLcek commented on DTACLOUD-398:
------------------------------------------

Problem:
Sinatra's "error do" clause drops non-500 errors, ignoring those
defined/raised by deltacloud.

Solution:
Explicitly specify non-500 errors defined/raised by deltacloud
to Sinatra.

Testing:
To test the fix I will temporarily modified 
server/lib/deltacloud/drivers/exceptions.rb
changing the 409 code to each of the codes in question and then forcing
the resource conflict error.
                
> non-500 errors are ignored in Sinatra helper.
> ---------------------------------------------
>
>                 Key: DTACLOUD-398
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-398
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>            Reporter: Joseph J. VLcek
>            Assignee: Joseph J. VLcek
>         Attachments: 
> 0001-DTACLOUD-398-explicitely-specify-errors-not-otherwis.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Sinatra's "error do" only catches 500 errors. Non 500 errors need to be
> explicitly handled.
> Specifically the errors defined in:
>   server/lib/deltacloud/drivers/exceptions.rb
> need to be explicitly handled in:
>   caught in server/lib/deltacloud/collections/base.rb

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to