Commit ea2508e6 authored by Jaehong Jo's avatar Jaehong Jo Committed by Uze Choi

Deleted error cases that does not occur

Below case did not occur in our API
CI_TOKEN_VALIDATION_FAILED = 4000002,
CI_SAMSUNG_ACCOUNT_AUTHORIZATION_FAILED = 4010001,
CI_SAMSUNG_ACCOUNT_UNAUTHORIZED_TOKEN = 4010201,
CI_USER_NOT_FOUND = 4040100,

Change-Id: I7510b78ed1c4720e06131395482ac39f5ecec1a2
Signed-off-by: default avatarJaehong <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/25823Tested-by: default avatarIoTivity Jenkins <jenkins-daemon@iotivity.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent cf4a2240
...@@ -51,12 +51,8 @@ typedef struct st_cloud_context ...@@ -51,12 +51,8 @@ typedef struct st_cloud_context
} st_cloud_context_t; } st_cloud_context_t;
typedef enum { typedef enum {
CI_TOKEN_VALIDATION_FAILED = 4000002,
CI_TOKEN_EXPIRED = 4000004, CI_TOKEN_EXPIRED = 4000004,
CI_SAMSUNG_ACCOUNT_AUTHORIZATION_FAILED = 4010001,
CI_SAMSUNG_ACCOUNT_UNAUTHORIZED_TOKEN = 4010201,
CI_FORBIDDEN = 4030003, CI_FORBIDDEN = 4030003,
CI_USER_NOT_FOUND = 4040100,
CI_DEVICE_NOT_FOUND = 4040200, CI_DEVICE_NOT_FOUND = 4040200,
CI_INTERNAL_SERVER_ERROR = 5000000 CI_INTERNAL_SERVER_ERROR = 5000000
} ci_error_code_t; } ci_error_code_t;
...@@ -236,7 +232,6 @@ error_handler(oc_client_response_t *data, oc_trigger_t callback) ...@@ -236,7 +232,6 @@ error_handler(oc_client_response_t *data, oc_trigger_t callback)
st_print_log("[Cloud_Manager] ci message : %s (%d)\n", message, code); st_print_log("[Cloud_Manager] ci message : %s (%d)\n", message, code);
switch (code) { switch (code) {
case CI_TOKEN_VALIDATION_FAILED:
case CI_TOKEN_EXPIRED: case CI_TOKEN_EXPIRED:
oc_remove_delayed_callback(context, callback); oc_remove_delayed_callback(context, callback);
context->retry_count = 0; context->retry_count = 0;
...@@ -244,10 +239,7 @@ error_handler(oc_client_response_t *data, oc_trigger_t callback) ...@@ -244,10 +239,7 @@ error_handler(oc_client_response_t *data, oc_trigger_t callback)
oc_set_delayed_callback(context, refresh_token, oc_set_delayed_callback(context, refresh_token,
session_timeout[context->retry_count]); session_timeout[context->retry_count]);
return; return;
case CI_SAMSUNG_ACCOUNT_AUTHORIZATION_FAILED:
case CI_SAMSUNG_ACCOUNT_UNAUTHORIZED_TOKEN:
case CI_FORBIDDEN: case CI_FORBIDDEN:
case CI_USER_NOT_FOUND:
oc_remove_delayed_callback(context, callback); oc_remove_delayed_callback(context, callback);
context->retry_count = 0; context->retry_count = 0;
context->cloud_manager_status = CLOUD_MANAGER_RE_CONNECTING; context->cloud_manager_status = CLOUD_MANAGER_RE_CONNECTING;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment