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

Bug 335393

Summary: [client] [Opera] Login callout does not appear
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: antonm, bokowski, john.arthorne, malgorzata.tomczyk, miket, pwebster, simon_kaegi, susan, Szymon.Brandys
Version: 0.2   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2011-01-25 17:23:30 EST
Opera 11 build 1156 (Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.00)

1. Open Opera and navigate to an Orion server (eg. http://localhost:8080/)
2. You'll see the text "Sorry, an error ocurred: Unable to load /workspace status:0". The login dialog never appears.
Comment 1 Malgorzata Janczarska CLA 2011-01-26 06:13:12 EST
Do we support Opera?
Comment 2 Szymon Brandys CLA 2011-01-26 06:47:32 EST
I think that basic features like the Login Dialog should work, no matter we support Opera or not. I would say this is not a high priority for M5, but we should look at it during M6. I hope it is something trivial.
Comment 3 Malgorzata Janczarska CLA 2011-01-26 07:03:34 EST
Yes, me too. I'll get to it when I have time.
Comment 4 John Arthorne CLA 2011-01-26 09:35:38 EST
Opera isn't currently in our plan, but we had a discussion on IRC yesterday with one of the Orion devs, and they are keen to help us in supporting Opera. At the very least it would be interesting to understand what the problems are so we can figure out if it is something we  are doing wrong, or a bug in Opera.
Comment 5 Boris Bokowski CLA 2011-01-26 10:16:44 EST
(In reply to comment #4)
> with one of the Orion devs, and they are keen to help us in supporting Opera.

with one of the _Opera_ developers :-)
Comment 6 Szymon Brandys CLA 2011-01-26 10:19:18 EST
(In reply to comment #5)
> (In reply to comment #4)
> > with one of the Orion devs, and they are keen to help us in supporting Opera.
> 
> with one of the _Opera_ developers :-)

Could this Opera dev be added to CC here? If they want to help, I would like to know who should be added to other Opera related issues.
Comment 7 Mike Taylor CLA 2011-01-26 11:07:36 EST
Hello. :) Please feel free to cc me on any Opera related issues and I'll do my best to help out.

Thanks.
Comment 8 Malgorzata Janczarska CLA 2011-01-26 11:57:26 EST
I can see that problem is a little different that I assumed. The problem lays not it displaying the login dialog itself, because if your select [Sign In] button (right top corner) the login dialog will display and you will be able to log in to Orion.
Displaying the dialog immediately after page loads works because on first 401 error we call javascript function to open the dialog. After user sings it the call is renewed. Here the login page is not displayed and afterwards calls are not renewed. So I'll start looking for problems there.
Comment 9 Malgorzata Janczarska CLA 2011-02-02 08:14:28 EST
I found the cause of the problem (it was in fact just in front of our eyes). In auth.js#handleAuthenticationError we are using ioArgs.xhr.status to find out what exact problem with the response is. If it's 403 we display "Forbidden access" message, if it's 401 we pop up the login dialog. The problem is that on Opera returned ioArgs.xhr.status is 0. Somewhere I found information that Opera returns status=0 always when response error is between 300-499.
So Mike, this is a question to you: can I get somehow the actual response error? At least know when it's 403 or 401?
Unfortunately I failed to find it in google :(
Comment 10 Mike Taylor CLA 2011-02-02 09:13:14 EST
Hmm interesting. Let me do some digging.
Comment 11 Boris Bokowski CLA 2011-06-07 16:06:54 EDT
(In reply to comment #10)
> Hmm interesting. Let me do some digging.

ping
Comment 12 Malgorzata Janczarska CLA 2011-06-08 04:56:14 EDT
(In reply to comment #11)
> (In reply to comment #10)
> > Hmm interesting. Let me do some digging.
> 
> ping

Good point.
Mike did you look at it? Do we have any walkaround how to check if it's 401 or something else?
Comment 13 Mike Taylor CLA 2011-06-20 16:10:36 EDT
> Mike did you look at it? Do we have any walkaround how to check if it's 401 or
> something else?

Yikes, long time to respond--sorry, have been traveling around the world (it seems). Is there a live URL to a recentish version online somewhere? There have been some fixes to various parts of XHR handling, so I'd like to check this out.
Comment 14 John Arthorne CLA 2011-06-20 16:20:48 EDT
(In reply to comment #13)
> > Mike did you look at it? Do we have any walkaround how to check if it's 401 or
> > something else?
> 
> Yikes, long time to respond--sorry, have been traveling around the world (it
> seems). Is there a live URL to a recentish version online somewhere? There have
> been some fixes to various parts of XHR handling, so I'd like to check this
> out.

I have created an account for you on our live beta server - http://orionhub.org. I sent you login details in a separate email.
Comment 15 Mike Taylor CLA 2011-06-20 16:43:39 EDT
(In reply to comment #14)
> (In reply to comment #13)
> > > Mike did you look at it? Do we have any walkaround how to check if it's 401 or
> > > something else?
> > 
> > Yikes, long time to respond--sorry, have been traveling around the world (it
> > seems). Is there a live URL to a recentish version online somewhere? There have
> > been some fixes to various parts of XHR handling, so I'd like to check this
> > out.
> 
> I have created an account for you on our live beta server -
> http://orionhub.org. I sent you login details in a separate email.

Thanks, am able to log in without a problem using Opera Next/Mac (1040) and 11.11 stable.
Comment 16 Boris Bokowski CLA 2011-06-20 17:00:52 EDT
(In reply to comment #15)
> Thanks, am able to log in without a problem using Opera Next/Mac (1040) and
> 11.11 stable.

I have Opera 11.11 build 2109 and while I can log in manually (click in the upper
right corner), the expected behaviour is that a log in dialog appears automatically when you go to http://orionhub.org, or when you go directly to one of the pages under orionhub.org.

So yes, I can log in (triggered manually), but the problem from comment 0 still happens, for example by going to http://orionhub.org/navigate/table.html#/file/ which shows the root of the navigator tree.
Comment 17 Mike Taylor CLA 2011-06-20 18:43:57 EDT
(In reply to comment #16)
> (In reply to comment #15)
> > Thanks, am able to log in without a problem using Opera Next/Mac (1040) and
> > 11.11 stable.
> 
> I have Opera 11.11 build 2109 and while I can log in manually (click in the
> upper
> right corner), the expected behaviour is that a log in dialog appears
> automatically when you go to http://orionhub.org, or when you go directly to
> one of the pages under orionhub.org.
> 
> So yes, I can log in (triggered manually), but the problem from comment 0 still
> happens, for example by going to http://orionhub.org/navigate/table.html#/file/
> which shows the root of the navigator tree.

Thanks Boris, I guess I just needed a refresher. Will dig in tomorrow.
Comment 18 Szymon Brandys CLA 2011-10-04 09:41:53 EDT
Mark, is it still an issue?
Comment 19 Mark Macdonald CLA 2011-10-04 10:15:20 EDT
(In reply to comment #18)
> Mark, is it still an issue?

The new login dialog has mostly fixed it, but there is still a problem here.

Visiting the Navigator (or any page that requires authentication) never shows the "Authentication Required" callout. Sometimes the page will give an error or display "Loading..." forever.

But you can ignore that and use the Security > Sign In menu to log in, after which everything works fine.
Comment 20 Mike Taylor CLA 2011-10-04 10:25:16 EDT
(In reply to comment #19)
> (In reply to comment #18)
> > Mark, is it still an issue?
> 
> The new login dialog has mostly fixed it, but there is still a problem here.
> 
> Visiting the Navigator (or any page that requires authentication) never shows
> the "Authentication Required" callout. Sometimes the page will give an error or
> display "Loading..." forever.
> 
> But you can ignore that and use the Security > Sign In menu to log in, after
> which everything works fine.

I'd say until we fix our XHR bugs that prevent the callout from appearing, this is a good enough resolution to the original problem.
Comment 21 Malgorzata Janczarska CLA 2011-11-24 05:16:25 EST
(In reply to comment #19)
> (In reply to comment #18)
> > Mark, is it still an issue?
> 
> The new login dialog has mostly fixed it, but there is still a problem here.
> 
> Visiting the Navigator (or any page that requires authentication) never shows
> the "Authentication Required" callout. Sometimes the page will give an error or
> display "Loading..." forever.
> 
> But you can ignore that and use the Security > Sign In menu to log in, after
> which everything works fine.

The other problem is that we can't tell that it's 401 that prevented the data to load. So after user loggs in using the scenario you described calls are not renewed. To get all the data loaded user has to reload the page.
Comment 22 Mike Taylor CLA 2011-11-24 21:25:26 EST
(In reply to comment #21)
> (In reply to comment #19)
> > (In reply to comment #18)
> > > Mark, is it still an issue?
> > 
> > The new login dialog has mostly fixed it, but there is still a problem here.
> > 
> > Visiting the Navigator (or any page that requires authentication) never shows
> > the "Authentication Required" callout. Sometimes the page will give an error or
> > display "Loading..." forever.
> > 
> > But you can ignore that and use the Security > Sign In menu to log in, after
> > which everything works fine.
> 
> The other problem is that we can't tell that it's 401 that prevented the data
> to load. So after user loggs in using the scenario you described calls are not
> renewed. To get all the data loaded user has to reload the page.

We've recently fixed a ton of XHR bugs and implemented most of the XHR2 spec. I'm not certain exactly when it will be in a public release--but it's a good sign. As soon as I get my hands on a mac build I'll test things out. :)
Comment 23 Malgorzata Janczarska CLA 2011-11-25 04:23:41 EST
The problem was described in comment 9, so Mike you can verify if it was one of the problems addressed recently.
Comment 24 Malgorzata Janczarska CLA 2011-11-25 04:41:39 EST
This bug is currently not our biggest problem on Opera. I downloaded the latest version today and see what I found: Bug 364798.
Comment 25 Mike Taylor CLA 2011-11-28 09:34:50 EST
Just commented on the bug--for future reference, test with http://www.opera.com/browser/next/ to check for any fixes in the pipeline. Thanks!
Comment 26 Anton McConville CLA 2015-05-08 09:27:10 EDT
Opera is not supported by Orion. This is a very old bug, closing.
Comment 27 Anton McConville CLA 2015-05-08 09:38:47 EDT
Old, unsupported browser and won't fix.