[ 
https://issues.apache.org/jira/browse/DTACLOUD-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronelle Landy closed DTACLOUD-14.
---------------------------------


Closing this issue as validated in deltacloud commit version: 
61ac9fef965dd7d1af7c213357ea7d66630d88d7  clone: from 
https://git-wip-us.apache.org/repos/asf/deltacloud.git


>> /bin/deltacloudd -i ec2 -r localhost -p 4003

>> curl -X GET --user 'invalid:invalid' 
>> "http://localhost:4003/api/instances/unknown?format=xml";

Aws::Ec2 returned an error: 401 Unauthorized
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>AuthFailure</Code><Message>AWS was not able to 
validate the provided access 
credentials</Message></Error></Errors><RequestID>63023c0e-7a41-4c4d-9f3d-1fa61cb2abfb</RequestID></Response>
 #####

                
> unauthorized GET to unknown instance returns server error (500) instead of 403
> ------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-14
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-14
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: deltacloud-core 0.1.2, ec2 driver
>            Reporter: André Dietisheim
>            Assignee: Michal Fojtik
>
> If I try to GET an unknown instance and provide invalid credentials I get 500 
> (internal server error) back. I would have expected 403.
> I request GET on http://[local deltacloud -i 
> ec2]/api/instances/nonexistingInstance and get 500 back.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to