Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8153380

WebView shows 401 after short time / refresh on SSRS

XMLWordPrintable

    • web
    • x86
    • windows_2008

      FULL PRODUCT VERSION :
      1.7_80-x64
      1.8_31-x64
      1.8_40-x64
      1.8_74-x64

      ADDITIONAL OS VERSION INFORMATION :
      Windows 8.1 x64
      Windows 7 x64

      A DESCRIPTION OF THE PROBLEM :
      I use an WebView to show SQL Server Reporting Services
      run with Java 1.7 works like expected
       - show
       - refresh
       - filter

      but after Upgrade to Java 1.8
      the WebViews shows 401 after short time / refresh

      * internel use an java.net.Authenticator for HTTP autentification

      works to 1.8 Update 33
      not working from 1.8 Update 40

      REGRESSION. Last worked in version 8u74

      ADDITIONAL REGRESSION INFORMATION:
      1.7_80-x64
      1.8_31-x64
      1.8_40-x64
      1.8_74-x64

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      start the text program
      pres [ENTER] in TextField
      -> the Report is loading
      -> wait a short time or pres [refresh]

      -> switch to 1.7 Update 80 test again
      -> switch to 1.8 Update 33 test again
      -> switch to 1.8 Update 40 test again

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      result like 1.7

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      /*
       * Copyright (c) 2016 iFD AG Chemnitz http://www.ifdag.de
       */
      package de.ifdag.fx.system.amis;

      import java.net.Authenticator;
      import java.net.PasswordAuthentication;

      import javafx.application.Application;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.geometry.Insets;
      import javafx.scene.Scene;
      import javafx.scene.control.TextField;
      import javafx.scene.layout.BorderPane;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      /**
       * http://194.25.240.197:8443/ReportServer/Pages/ReportViewer.aspx?%2fBerichtsprojekt1%2ftestReport&rs:Command=Render
       *
       * @author ifd-support
       *
       */
      public class AmisTest extends Application {

          /**
      * @param args args
      */
      public static void main(String[] args) {
      launch(AmisTest.class, args);
      }

      /**
      * @see javafx.application.Application#start(javafx.stage.Stage)
      */
      @Override
      public void start(Stage primaryStage) throws Exception {
      Authenticator.setDefault(new Authenticator() {
      /**
      * @see java.net.Authenticator#getPasswordAuthentication()
      */
      @Override
      protected PasswordAuthentication getPasswordAuthentication() {
      return new PasswordAuthentication("OracleLogin", "Oracle&9i5".toCharArray());
      }
      });

      final BorderPane root = new BorderPane();

      final WebView webView = new WebView();
      final WebEngine webEngine = webView.getEngine();
      webEngine.setJavaScriptEnabled(true);
      BorderPane.setMargin(webView, new Insets(2, 4, 4, 4));
      root.setCenter(webView);

      final TextField url = new TextField();
      url.setText("http://194.25.240.197:8443/ReportServer/Pages/ReportViewer.aspx?%2fBerichtsprojekt1%2ftestReport&rs:Command=Render");
      url.setOnAction(new EventHandler<ActionEvent>() {
                  
                  @Override
                  public void handle(ActionEvent event) {
                      webEngine.load(url.getText());
                  }
              });

      BorderPane.setMargin(url, new Insets(4, 4, 2, 4));
      root.setTop(url);

      primaryStage.setTitle(System.getProperty("java.runtime.version"));
      primaryStage.setScene(new Scene(root));
      primaryStage.show();
      }
      }
      ---------- END SOURCE ----------

            mbilla Murali Billa
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: