[CLOSED] Problem under Opera last version

Page 2 of 4 FirstFirst 1234 LastLast
  1. #11
    Hello

    First
    I hava manage to build a reproductible example.
    <%@ Page Language="vb"%>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
        <head id="Head1" runat="server">
            <title>Opera-Safari test page error 401</title>
            <link rel="stylesheet" type="text/css" href="Main.css" />  
           
            <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" Mode="ScriptFiles" />
    <script runat="server">
        Public Sub CreateAboutWindow(ByVal sender As Object, e As DirectEventArgs)
            wndAbout.Html = "<br /><br /><center><b>ResMed KPIs global Version 2.0.0.0</b></center><br /><br /><center><b><a href=""" + "javascript:OpenNews(#{MyDesktop});" + """>Whats new in this version</a></b></center><br /><br /><center>For query, information, help: <a href='mailto:bruno.teuile@resmed.fr'>contact</a></center>"
        End Sub
    </script>        
             
     </head>
        
        <body>
            <form id="form1" runat="server">
            
               <ext:ResourceManager ID="ResourceManager1" runat="server" RethrowAjaxExceptions="True">
               </ext:ResourceManager>
    
    
    
                <ext:Desktop 
                    ID="MyDesktop" 
                    runat="server">
                     
                    <Modules>
    
                        <%-- About Menu--%>
                        <ext:DesktopModule ModuleID="About">
                            <Window>
                                <ext:Window 
                                    Id="wndAbout"
                                    runat="server" 
                                    Icon="Information"             
                                    Width="250"
                                    Height="200"
                                    Layout="Fit" 
                                    Hidden="True" 
                                    ExpandOnShow="True" 
                                    MinHeight="100" 
                                    MinWidth="100" 
                                    Maximizable="False" 
                                    Resizable="False" 
                                    Title="About" 
                                    Minimizable="False" 
                                    Modal="True">                        
                                    <DirectEvents>
                                        <BeforeShow OnEvent="CreateAboutWindow"></BeforeShow>
                                    </DirectEvents>
                                </ext:Window>
                            </Window>
                        </ext:DesktopModule>
    
                    </Modules>
    
                    <StartMenu Height="300" Title="Start Here" runat="server" HideTools="True">             
                        <MenuItems>
                            <ext:MenuItem Text="About..." Icon="Information">
                                <Listeners>
                                    <Click Handler="#{MyDesktop}.getModule('About').createWindow();" />
                                </Listeners>
                            </ext:MenuItem>
                       </MenuItems>
                    </StartMenu>
    
                    <TaskBar runat="server" TrayWidth="50">
                        <TrayClock runat="server" ></TrayClock>
                    </TaskBar>
                </ext:Desktop>              
             </form>
       </body>
    </html>
    IMPORTANT: to reproduce, you have to execute on a web server (not in local, an authentification process need to be generated), I'm on IIS 6, I don't know how it works on over IIS version and use the integrated window authentification (very important):

    Click image for larger version. 

Name:	1.png 
Views:	109 
Size:	7.9 KB 
ID:	4433

    Opera and Safari receive a 401 error and fails, over browser works.

    Danii, to answer tour questions:


    I have same under Firefox exept when it receie 401 error, it resends the request wirh credential,
    Please clarify how do you determine that? What can you see in the request?
    I see in firebug, I have resquest rejected with 401 error that appears in red, and just after, same requests resend, and they return with success

    What kind of authentication do you use?
    Windows default, I suppose NTLM, I don't think something else it's used

    Are the cookies sent with Forms authentication?
    In example above, I checked and see a cookie passed, I suppose it is the cookie you talk about.
  2. #12
    Thanks for the sample, I will try to play with it.

    Just I am affraid this question is out of competence of Ext.Net
    I guess Opera doesn't support some variations of integrated window authentification
    I read some info in internet and found that NTLM is 100% supported on IE and FF, on other browsers can be problems. Opera 12 should support NTLM (atleast it is mentioned in articles)

    Opera 9.01 and later versions can use NTLM/Negotiate, but will use Basic or Digest authentication if that is offered by the server.
    http://my.opera.com/community/forums...dml?id=1117922
    http://my.opera.com/smtpster/blog/2012/05/21/opera-windows-authentication-support

    http://en.wikipedia.org/wiki/Integra...Authentication

    Try this javascript code under Opera (just pure ajax request)
    var req = new XMLHttpRequest();
    req.open("GET", window.location, true);
    req.onreadystatechange = function () {
    	if (req.readyState == 4) {    
            if (req.status == 200) {
                alert('all ok');
            } else {
                alert("Error: " + req.status);
            }
        }
    };
    req.send(null);
    Do you have the same problem?

    What OS is used on the computer with Opera? Is it Windows?
  3. #13
    Just for interest, why do you use Opera for intranet application?
    Intranet applications assume that user are withing single domain and use the same corporative policy (including browser policy, most intranet applications are configured for one corporative browser)
  4. #14
    Just I am affraid this question is out of competence of Ext.Net
    Yes I know, but I launch lead everywhere :), And, even, pehaps something could be done in javascript to work with.

    Do you have the same problem?
    Chrome: all OK
    Opera : error 0

    What OS is used on the computer with Opera? Is it Windows?
    [/QUOTE]

    Yes, XP

    Just for interest, why do you use Opera for intranet application?
    Intranet applications assume that user are withing single domain and use the same corporative policy (including browser policy, most intranet applications are configured for one corporative browser)
    Yes, of course and as in a lot of society it is IE (8), but as Ie is very poor in Javascript function and at charts level is very bad to render it (I have to deal with up to 25 charts showng in a page), I seek solution with other browsers. So Opera is not the big point here, the real problem, and it is the same problem is on Safari. As I deal with top management, I'm not sure they didn't uses Mac or iPad, so, I have to deal with that possibility.
  5. #15
    As I deal with top management, I'm not sure they didn't uses Mac or iPad, so, I have to deal with that possibility.
    Please note that Opera or Safari must be under Windows because Windows API is requied to work correctly with Windows Authentication

    I will play with your sample and post result here (may be i will found anything), just as I understood, I need two computer to reproduce the issue (one server and one with Opera browser)
  6. #16
    I have retry your javascrip example.

    In fact, if I lauch Opera, access the page, it asks for credential, I enter it, then get 401 (see on debuguer).

    After, if I refresh the page, I see the 401 passes but just after, I see 200 results and test page (by looking debuger, I see the 401 error, and error is replaced with 200 just after, so Opera geting the 401 relaunch the request with credentials (I imagine) to get the response.

    I found on the net that it is the way browsers have to works (exept IE perhaps).

    So, with you javascript example, Opera did well. Safari to.

    So the question is: why by using technologie build into Ext, it didn't work?

    Here a screen capture of opera debuguer executing my application:

    Click image for larger version. 

Name:	2.png 
Views:	86 
Size:	68.9 KB 
ID:	4436
  7. #17
    Can you try to add the following custom config to DirectEvent
    <CustomConfig>
                            <ext:ConfigItem Name="withCredentials" Value="true" Mode="Raw" />
                        </CustomConfig>
                    </Click>
    So the question is: why by using technologie build into Ext, it didn't work?
    Well, Ext.Net uses the same ajax request transport, should not be any difference. If you use failed url (for example, 'ReturnJsonData.aspx?...') instead 'window.location' in that javascript sample (pure ajax request) then you have success response?
  8. #18
    Quote Originally Posted by Vladimir View Post
    Please note that Opera or Safari must be under Windows because Windows API is requied to work correctly with Windows Authentication

    I will play with your sample and post result here (may be i will found anything), just as I understood, I need two computer to reproduce the issue (one server and one with Opera browser)
    Yes, you'r right, and perhaps a windows AD to authenticate to sever.

    About Safari, did you mean that a user using a mac in enterprise will not be able to authenticate to a windows server? I hope there are bridge between Apple and Windows at that level, it will be the less. But you'r right on a point, I'm not sure at all that soemone somewhere use a mac to connect to network. But anyway, the goal of a web application is to work with any kind of modern browser, and here, the less I could say is that it is not the case.

    FYI, the previous version of my application uses Ext.JS 4.0.1 and Ext.Net 1.3 and it works well under all browsers, but, I didn't use directmethod. Meanwhile, I use directevents.
  9. #19
  10. #20
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [CLOSED] KeyMap and Opera problem
    By voipswitch in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 08, 2013, 9:18 AM
  2. [CLOSED] Problem in last svn version (3977)
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 02, 2012, 12:24 PM
  3. [CLOSED] Problem when updating to new version
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 08, 2010, 12:17 PM
  4. [CLOSED] Problem getting the Professional version 1.0?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 26, 2010, 10:21 AM
  5. combo edit problem in 0.8 version
    By Dinesh.T in forum 1.x Help
    Replies: 2
    Last Post: Jul 22, 2009, 10:15 AM

Posting Permissions