Project

General

Profile

Actions

Incident #6510

closed

Workspace download servlet still not resilient to session expiration

Added by Massimiliano Assante over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Immediate
Category:
Application
Target version:
Start date:
Jan 20, 2017
Due date:
Jan 23, 2017
% Done:

100%

Estimated time:
Infrastructure:
Production

Description

We just had a user from GEMex Gateway having the session expiration problem.

It seems that the WorkspaceDownload Servlet is still trying to read the user from the cookie in some part of the code. After the user logged out and logged in it could download the files.

See exception:

[PORTAL] 1558720322 [http-bio-9090-exec-408] ERROR org.gcube.common.portal.PortalContext  - The userId does not belong to any user -> -1
2017-01-20 15:44:47,705 ERROR portal.PortalContext [http-bio-9090-exec-408,getCurrentUser:142] %[PORTAL] 1558720322 [http-bio-9090-exec-408] ERROR org.gcube.common.portal.PortalContext  - The userId does not belong to any user -> -1
2017-01-20 15:44:47,705 WARN  server.DownloadServlet [http-bio-9090-exec-408,handleError:462] %[PORTAL] 969287422 [http-bio-9090-exec-408] WARN  org.gcube.portlets.user.workspace.server.DownloadServlet  - Handle error occurred: 500: Error during workspace retrieving
2017-01-20 15:45:00,454 INFO  events.LandingPageAction [http-bio-9090-exec-424,run:26] %[PORTAL] 1558325842 [http-bio-9090-exec-424] INFO  org.gcube.portal.events.LandingPageAction  - LandingPageAction is ON
2017-01-20 15:45:00,455 INFO  events.LandingPageAction [http-bio-9090-exec-424,getCustomLandingPage:48] %[PORTAL] 1558325843 [http-bio-9090-exec-424] INFO  org.gcube.portal.events.LandingPageAction  - Private Site LandingPage Path = /group/gemex-gateway
2017-01-20 15:45:01,423 INFO  server.NewsServiceImpl [http-bio-9090-exec-408,getUserConfiguration:1012] %[PORTAL] 1558734040 [http-bio-9090-exec-408] INFO  org.gcube.portlets.user.newsfeed.server.NewsServiceImpl  - Trying to read custom config fr News Feed (REFRESH_TIME, VRE Label and show timeline source)
2017-01-20 15:45:01,474 INFO  server.NewsServiceImpl [http-bio-9090-exec-413,getAllUpdateUserFeeds:195] %[PORTAL] 1558734091 [http-bio-9090-exec-413] INFO  org.gcube.portlets.user.newsfeed.server.NewsServiceImpl  - ****** retrieving posts for user: eugenio
[PORTAL] 1558734306 [http-bio-9090-exec-406] INFO  HomeManageFactory  - loading home. (Username: eugenio, scope: /d4science.research-infrastructures.eu)
[PORTAL] 1558734306 [http-bio-9090-exec-406] INFO  HomeManageFactory  - getHomeManagerFactory
2017-01-20 15:45:02,083 INFO  server.UserStatisticsServiceImpl [http-bio-9090-exec-409,getPostsStats:242] %15:45:02,083 INFO  [http-bio-9090-exec-409][UserStatisticsServiceImpl:242] Context(s) that are going to be used [/d4science.research-infrastructures.eu/gCubeApps/GEMex]
Actions #1

Updated by Massimiliano Assante over 8 years ago

  • Subject changed from Workspace download servlet stil not resilient to session expiration to Workspace download servlet still not resilient to session expiration
Actions #2

Updated by Francesco Mangiacrapa over 8 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Francesco Mangiacrapa over 8 years ago

  • Status changed from In Progress to Closed

I added a patch in order to check the case of session expired (the userId is null or equal to -1) before downloading
The patch should fix the issue. The workspace will be updated in production as soon as the Etics build will be available.
I'm going to close this incident

Actions #4

Updated by Massimiliano Assante over 8 years ago

  • Status changed from Closed to In Progress
  • Priority changed from High to Immediate

After the upgrade of yesterday for fixing the catalogue the problem with the session appeared again, it seems that the patch to the catalogue was performed on the bugged version

Actions #5

Updated by Massimiliano Assante over 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Restored the workspace previous version, the catalogue patch is not on production though

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)