Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361010 - got stuck in state with no user identity and no way to log in.
Summary: got stuck in state with no user identity and no way to log in.
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 RC1   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 370345
Blocks:
  Show dependency tree
 
Reported: 2011-10-14 13:13 EDT by Susan McCourt CLA
Modified: 2012-02-02 08:20 EST (History)
5 users (show)

See Also:


Attachments
screenshot with empty tooltip, no user (77.32 KB, image/png)
2011-10-14 13:13 EDT, Susan McCourt CLA
no flags Details
screenshot of plugins with problems (37.71 KB, image/png)
2011-10-14 13:17 EDT, Susan McCourt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2011-10-14 13:13:58 EDT
Created attachment 205220 [details]
screenshot with empty tooltip, no user

Orion 0.3RC2
I was testing in firefox and things were progressing nicely.  
I reloaded a page, saw some timeouts in the console and my navigator page didn't show up.  So I reloaded again.  This time, my navigator came up, but it had no contents.  I panicked, thinking my workspace was toast, but then noticed that I was not logged in anymore.  I was in the broken state previously reported on the mailing list, where you get the empty tooltip and no way to log in.
Comment 1 Susan McCourt CLA 2011-10-14 13:16:56 EDT
There was seemingly no way to get out of this state, so I decided to check my plugin list.  Indeed, the file service and authentication plugins were no longer working.  See screenshot.

Several things seem wrong here.

1) if we can't find authentication/file service plugins to populate the tooltip, we should at least describe the problem and provide a link to the plugins page?

2) in other places where we are trying to talk to a plugin to get something done (like populate the navigator) and we can't find the plugin, we should report it somewhere.
Comment 2 Susan McCourt CLA 2011-10-14 13:17:38 EDT
Created attachment 205222 [details]
screenshot of plugins with problems
Comment 3 John Arthorne CLA 2012-01-11 11:55:42 EST
I  believe I saw Ken get into this state yesterday running on latest code. Neither "Sign in" nor "Sign out" appeared as options in the user menu.
Comment 4 Malgorzata Janczarska CLA 2012-01-11 12:16:57 EST
(In reply to comment #3)
> I  believe I saw Ken get into this state yesterday running on latest code.
> Neither "Sign in" nor "Sign out" appeared as options in the user menu.

Did he also had authenticationPlugin not loaded?
Comment 5 Susan McCourt CLA 2012-01-11 13:01:15 EST
I've gotten into this state on and off since reporting the bug and a reload of all plugins fixes it, but I never am able to understand how I got in that state.  It feels like a timing problem, but I can't be sure.
Comment 6 Malgorzata Janczarska CLA 2012-01-12 05:48:37 EST
(In reply to comment #5)
> I've gotten into this state on and off since reporting the bug and a reload of
> all plugins fixes it, but I never am able to understand how I got in that state.
> It feels like a timing problem, but I can't be sure.
This is bad. Do you sometimes have problems like this with other plug-ins? On screenshoot I can see that fileClientPlugin is also missing. I have to say it happened a few times to me, with different plug-ins, but usually when I there where some fresh changes in plug-ins or when I was just restarting my server, or when there was a plug-in missing. Never "just like that". But I host Orion on localhost.
Simon, do you have any idea why correct, existing plug-ins may occur as missing?

Authentication needs a plug-in to show correctly the content of the pop-up. However 401 is handled properly without any plugin. Also when we get 401 and we are not able to match it with any plug-in, we may be using it to show some information in the popup, but if we are already logged in there is no way we may get extra information about authentication service, for instance how to log out or what is my user name or what is the name of authentication service.
Comment 7 Susan McCourt CLA 2012-01-12 14:20:07 EST
(In reply to comment #6)
> This is bad. Do you sometimes have problems like this with other plug-ins? 
I think that fileClient goes missing when auth goes missing.  I've not been that methodical in figuring it out, usually I'm trying to get something done and just do the reload and move on.  

I work from orion.eclipse.org, so guessing about the things I do that could cause this:

- changing builds and a plugin has changed
- reloading plugins without clearing localStorage
- I run self hosting sites all the time

I'll try to update this bug from now on when it happens, maybe we would see a pattern (such as realizing that a plugin changed in a build on the day the problem happened, etc.)
Comment 8 Szymon Brandys CLA 2012-01-17 07:17:34 EST
Today after my local Orion server restart I noticed that 4 plug-ins including auth and file plug-ins are not loaded. I don't know what caused this, but I think we need a separate bug against our plug-ins framework.

This bug is just for handling the problem correctly by the auth framework. If we find out that an auth plug-in on the list is not loaded properly, we should inform the user and point out the plug-ins page (as Susan suggested in comment 1). However if there is no auth plug-in because no-one added it to the list, we should not treat this as an error situation.
Comment 9 Malgorzata Janczarska CLA 2012-02-01 11:35:24 EST
I opened a separate bug for disappearing plugins: Bug 370345, as this is much wider problem than just this case. In this case I'll see what can be done to gracefully handle situation when there are no authentication puglins but we got authenticated based on authentication information provided in the 401 response.
Comment 10 Malgorzata Janczarska CLA 2012-02-02 05:19:52 EST
I can see why the popup was empty. When site handles 401 than the security popup is populated with result of the authentication. But when page is loaded when we are already logged in then the dialog is not populated.
Unfortunately there are two problems we won't be able to solve here when authentication plugin: we can't populate the dialog informing to what services are we logged in, we can only display information that there are in authentication pending now. We also can't handle logging out, because without authentication plugin we don't know how to do it.
Comment 11 Malgorzata Janczarska CLA 2012-02-02 08:17:18 EST
I made changes to mitigate this problem:
* when you log it successfully after 401 the pending authentication is displayed in the list as authenticated
* when there was no 401 and we can't tell if there are any services that you are logged in to, the dialog is not empty but displays "No authentication required." so that you know there is no ongoing authentication you have to perform
The rest can be handled only when there is an authentication plugin. Only fixing Bug 370345 can solve this problem completely.
Comment 12 Malgorzata Janczarska CLA 2012-02-02 08:20:04 EST
Marking FIXED as all I could do about the problem was done.