Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2157

Login dialog delay

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • webconsole-3.0.0
    • Web Console
    • None

    Description

      Sometimes, on some browsers, when the user tries to open the web console it waits a long time before the authentication dialog is shown.

      The reason is in OsgiManagerHttpContext after line 140:
      response.setHeader( HEADER_WWW_AUTHENTICATE, AUTHENTICATION_SCHEME_BASIC + " realm=\"" + this.realm + "\"" );
      response.setStatus( HttpServletResponse.SC_UNAUTHORIZED );
      response.flushBuffer();

      Sometimes, after this request the browser still expects some data. The fix is just one line, that should be added before the response is flushed:
      response.setContentLength(0);
      response.flushBuffer();

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            v_valchev Valentin Valchev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: