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

Alexey Kuznetsov updated IGNITE-11360:
--------------------------------------
    Description: 
This issue related to IGNITE-11353.

Steps to reproduce:
# Start backend and frontend as usual.
# Sign in on frontend.
# Stop backend and wipe its DB.
# Start backend.
# Click some links on frontend.

Expected: *Frontend should go to 403 page.*

Errors in logs (from steps):
{code}
.....
09:42:41.993 angular.js:13539 GET 
http://localhost:9000/api/v1/configuration/clusters/ 401 (Unauthorized)
.....
09:42:42.019 angular.js:15544 Possibly unhandled rejection: 
{"type":"LOAD_USER_CLUSTERS_ERR","error":{"message":"Failed to load clusters: 
Access denied. You are not authorized to access this 
page."},"action":{"type":"LOAD_USER_CLUSTERS"}} undefined
.....
getClustersOverview @ Clusters.ts:106
ConfigEffects.loadUserClustersEffect$.ConfigureState.actions$.pipe.a @ 
effects.js:220
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/exhaustMap.js.ExhaustMapSubscriber.tryNext
 @ exhaustMap.js:44
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/exhaustMap.js.ExhaustMapSubscriber._next
 @ exhaustMap.js:37
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next
 @ Subscriber.js:54
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next
 @ filter.js:38
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next
 @ Subscriber.js:54
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subject.js.Subject.next
 @ Subject.js:47
dispatchAction @ ConfigureState.ts:58
setTimeout @ effects.js:744
setTimeout (async)
ConfigEffects.etp @ effects.js:744
$stateProvider.state.resolve._shortClusters @ states.ts:54

{code}

  was:
This issue related to IGNITE-11353.

Steps to reproduce:
# Start backend and frontend as usual.
# Sign in on frontend.
# Stop backend and wipe its DB.
# Start backend.
# Click some links on frontend.

Expected: Frontend should go to 403 page.

Errors in logs (from steps):
{code}
.....
09:42:41.993 angular.js:13539 GET 
http://localhost:9000/api/v1/configuration/clusters/ 401 (Unauthorized)
.....
09:42:42.019 angular.js:15544 Possibly unhandled rejection: 
{"type":"LOAD_USER_CLUSTERS_ERR","error":{"message":"Failed to load clusters: 
Access denied. You are not authorized to access this 
page."},"action":{"type":"LOAD_USER_CLUSTERS"}} undefined
.....
getClustersOverview @ Clusters.ts:106
ConfigEffects.loadUserClustersEffect$.ConfigureState.actions$.pipe.a @ 
effects.js:220
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/exhaustMap.js.ExhaustMapSubscriber.tryNext
 @ exhaustMap.js:44
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/exhaustMap.js.ExhaustMapSubscriber._next
 @ exhaustMap.js:37
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next
 @ Subscriber.js:54
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next
 @ filter.js:38
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next
 @ Subscriber.js:54
push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subject.js.Subject.next
 @ Subject.js:47
dispatchAction @ ConfigureState.ts:58
setTimeout @ effects.js:744
setTimeout (async)
ConfigEffects.etp @ effects.js:744
$stateProvider.state.resolve._shortClusters @ states.ts:54

{code}


> Web Console: Should detect situation when session on backed expired / removed
> -----------------------------------------------------------------------------
>
>                 Key: IGNITE-11360
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11360
>             Project: Ignite
>          Issue Type: Bug
>          Components: wizards
>            Reporter: Alexey Kuznetsov
>            Assignee: Ilya Borisov
>            Priority: Major
>
> This issue related to IGNITE-11353.
> Steps to reproduce:
> # Start backend and frontend as usual.
> # Sign in on frontend.
> # Stop backend and wipe its DB.
> # Start backend.
> # Click some links on frontend.
> Expected: *Frontend should go to 403 page.*
> Errors in logs (from steps):
> {code}
> .....
> 09:42:41.993 angular.js:13539 GET 
> http://localhost:9000/api/v1/configuration/clusters/ 401 (Unauthorized)
> .....
> 09:42:42.019 angular.js:15544 Possibly unhandled rejection: 
> {"type":"LOAD_USER_CLUSTERS_ERR","error":{"message":"Failed to load clusters: 
> Access denied. You are not authorized to access this 
> page."},"action":{"type":"LOAD_USER_CLUSTERS"}} undefined
> .....
> getClustersOverview @ Clusters.ts:106
> ConfigEffects.loadUserClustersEffect$.ConfigureState.actions$.pipe.a @ 
> effects.js:220
> push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/exhaustMap.js.ExhaustMapSubscriber.tryNext
>  @ exhaustMap.js:44
> push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/exhaustMap.js.ExhaustMapSubscriber._next
>  @ exhaustMap.js:37
> push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next
>  @ Subscriber.js:54
> push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next
>  @ filter.js:38
> push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next
>  @ Subscriber.js:54
> push.../../../../incubator-ignite/modules/web-console/frontend/node_modules/rxjs/_esm5/internal/Subject.js.Subject.next
>  @ Subject.js:47
> dispatchAction @ ConfigureState.ts:58
> setTimeout @ effects.js:744
> setTimeout (async)
> ConfigEffects.etp @ effects.js:744
> $stateProvider.state.resolve._shortClusters @ states.ts:54
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to