Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 452506

Summary: Log workspace access
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse
Version: unspecified   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2014-11-20 09:27:55 EST
It would be helpful to log the workspaces that were accessed in a given server session. This can be used, for example, to feed into an incremental backup system so only the workspaces that were accessed are backed up.
Comment 1 Anthony Hunter CLA 2014-11-20 10:11:53 EST
We already have this event:
2014-11-20 10:10:52.554 [qtp419803471-4188] INFO  org.eclipse.orion.server.login - Login success: ahunterorion oauth https://api.github.com/users/ahunter-orion/4500523
2014-11-20 10:10:52.554 [qtp419803471-4188] INFO  org.eclipse.orion.server.login - Login success: ahunterorion
Comment 2 John Arthorne CLA 2014-11-20 10:39:47 EST
Unfortunately login events are only recorded in the form auth and OAuth login code paths. If you are using different authentication there is no event logged. I have added instrumentation of first access to workspace per user, regardless of login method:

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=34d049a938f871b25677dc6381509e921b20f936

I have left it off by default.
Comment 3 Anthony Hunter CLA 2014-11-20 12:17:30 EST
I expected the login event would have been there. I raised Bug 452555 for this problem.