-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Low
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 3.0
-
Component/s: XOS
-
Story Points:1
-
Sprint:Dangerous Addition Sprint #3, Dangerous Addition Sprint #4, Dangerous Addition Sprint #6
-
Epic Link:
Calling "/xosapi/v1/utility/login" with wrong credentials result in a 500 server error, it should be 401 Unauthorized and the reason.
Here the logs from chameleon container:
20170218T044443.138 ERROR grpc_client.invoke {event: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, Exception calling application: {'fields': {}, 'specific_error': u'Failed to authenticate user xosadmin@opencord.org', 'error': 'XOSPermissionDenied'})>, exception: Traceback (most recent call last):
File "/chameleon/chameleon/grpc_client/grpc_client.py", line 277, in invoke
response, rendezvous = method.with_call(request, metadata=metadata)
File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 485, in with_call
return _end_unary_response_blocking(state, True, deadline)
File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 432, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
_Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, Exception calling application: {'fields': {}, 'specific_error': u'Failed to authenticate user xosadmin@opencord.org', 'error': 'XOSPermissionDenied'})>, instance_id: 1a3c9ff49833}
Attached the preview of the response in the browser
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
3717,5 | CORD-967 Translate XOS Exceptions to gRPC status codes | master | xos | Status: MERGED | +2 | +1 |
3719,1 | [CORD-967] Added status codes for unauthorized and forbidden | master | chameleon | Status: MERGED | +2 | +1 |
3731,5 | [CORD-967] Returning errors in JSON | master | xos | Status: MERGED | +2 | +1 |
3739,2 | [CORD-967] Displaying correct error in the GUI | master | xos-gui | Status: MERGED | +2 | +1 |
3748,1 | [CORD-967] Added status codes for unauthorized and forbidden | cord-3.0 | chameleon | Status: MERGED | +2 | +1 |