JDK-8153380 : WebView shows 401 after short time / refresh on SSRS
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u40
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2008
  • CPU: x86
  • Submitted: 2016-04-02
  • Updated: 2016-04-05
  • Resolved: 2016-04-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
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 ----------


Comments
Duplicate of JDK-8152393
05-04-2016

Looks like a duplicate of JDK-8152393 which is assigned to Murali.
05-04-2016