[jbosstools-commits] JBoss Tools SVN: r30382 - branches/jbosstools-3.2.x/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Apr 6 11:58:28 EDT 2011


Author: bfitzpat
Date: 2011-04-06 11:58:27 -0400 (Wed, 06 Apr 2011)
New Revision: 30382

Modified:
   branches/jbosstools-3.2.x/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java
Log:
OPEN - issue JBIDE-6919: [tester] uid/pwd is not passed to the server in GET requests 
https://issues.jboss.org/browse/JBIDE-6919

Modified: branches/jbosstools-3.2.x/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java
===================================================================
--- branches/jbosstools-3.2.x/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java	2011-04-06 15:55:54 UTC (rev 30381)
+++ branches/jbosstools-3.2.x/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java	2011-04-06 15:58:27 UTC (rev 30382)
@@ -1,5 +1,5 @@
 /******************************************************************************* 
- * Copyright (c) 2010 Red Hat, Inc. 
+ * Copyright (c) 2011 Red Hat, Inc. 
  * Distributed under license by Red Hat, Inc. All rights reserved. 
  * This program is made available under the terms of the 
  * Eclipse Public License v1.0 which accompanies this distribution, 
@@ -135,6 +135,7 @@
 	private static final String JAX_RS = "JAX-RS"; //$NON-NLS-1$
 	private static final String EMPTY_STRING = ""; //$NON-NLS-1$
 	private static final String RESULT_HEADER_DELIMITER = "%";//$NON-NLS-1$
+	private static final String HTTPS_STRING = "https";//$NON-NLS-1$
 
 	/**
 	 * The ID of the view as specified by the extension.
@@ -1173,6 +1174,13 @@
 		
 		String tempUID = null;
 		String tempPwd = null;
+		
+		// per JBIDE-6919, if we encounter an "https" url make sure 
+		// basic authorization checkbox is checked
+		if (url.trim().startsWith(HTTPS_STRING)) {
+			useBasicAuthCB.setSelection(true);
+		}
+		
 		// If basic authorization checkbox is checked, use the uid/pwd
 		if (useBasicAuthCB.getSelection()) {
 			UidPwdDialog authDialog = new UidPwdDialog(getSite().getShell());



More information about the jbosstools-commits mailing list