[ 
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}

(anonymous) @ angular.js:13539
sendReq @ angular.js:13265
serverRequest @ angular.js:13006
processQueue @ angular.js:17922
(anonymous) @ angular.js:17970
$digest @ angular.js:19089
$apply @ angular.js:19477
(anonymous) @ angular.js:21578
completeTask @ angular.js:21208
(anonymous) @ angular.js:6789
setTimeout (async)
Browser.self.defer @ angular.js:6787
timeout @ angular.js:21568
(anonymous) @ stateDirectives.js:52
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014
09:42:41.993 angular.js:13539 GET 
http://localhost:9000/api/v1/configuration/clusters/ 401 (Unauthorized)
(anonymous) @ angular.js:13539
sendReq @ angular.js:13265
serverRequest @ angular.js:13006
processQueue @ angular.js:17922
(anonymous) @ angular.js:17970
$digest @ angular.js:19089
$apply @ angular.js:19477
(anonymous) @ angular.js:21578
completeTask @ angular.js:21208
(anonymous) @ angular.js:6789
setTimeout (async)
Browser.self.defer @ angular.js:6787
timeout @ angular.js:21568
Grid.refreshCanvas @ ui-grid.js:5921
init @ ui-grid.js:3531
post @ ui-grid.js:3465
(anonymous) @ angular.js:1365
(anonymous) @ angular.js:11237
invokeLinkFn @ angular.js:11243
nodeLinkFn @ angular.js:10562
(anonymous) @ angular.js:10908
processQueue @ angular.js:17922
(anonymous) @ angular.js:17970
$digest @ angular.js:19089
$apply @ angular.js:19477
(anonymous) @ angular.js:21578
completeTask @ angular.js:21208
(anonymous) @ angular.js:6789
setTimeout (async)
Browser.self.defer @ angular.js:6787
timeout @ angular.js:21568
(anonymous) @ stateDirectives.js:52
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014
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
(anonymous) @ angular.js:15544
(anonymous) @ exceptionHandler.js:32
processChecks @ angular.js:17954
$digest @ angular.js:19089
(anonymous) @ angular.js:19409
completeTask @ angular.js:21208
(anonymous) @ angular.js:6789
setTimeout (async)
Browser.self.defer @ angular.js:6787
$evalAsync @ angular.js:19407
(anonymous) @ angular.js:17794
scheduleProcessQueue @ angular.js:17970
then @ angular.js:17891
$http @ angular.js:12922
$http.(anonymous function) @ angular.js:13170
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
invokeResolveFn @ resolvable.js:73
processQueue @ angular.js:17922
(anonymous) @ angular.js:17970
$digest @ angular.js:19089
$apply @ angular.js:19477
(anonymous) @ angular.js:21578
completeTask @ angular.js:21208
(anonymous) @ angular.js:6789
setTimeout (async)
Browser.self.defer @ angular.js:6787
timeout @ angular.js:21568
(anonymous) @ stateDirectives.js:52
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014
{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