Code Monkey home page Code Monkey logo

Comments (7)

asfimport avatar asfimport commented on May 18, 2024

khammond25 (migrated from Bugzilla):
Created attachment patch.UrlConfig.diff: Patch for UrlConfig.java; file contains the diff

patch.UrlConfig.diff
--- \jakarta-jmeter-cvs\jakarta-jmeter\src\org\apache\jmeter\protocol\http\config\UrlConfig.java	Thu Aug 30 17:19:02 2001
+++ \jakarta-jmeter-nightly\2001.09.15\jakarta-jmeter\src\org\apache\jmeter\protocol\http\config\UrlConfig.java	Sun Sep 16 18:09:14 2001
@@ -428,7 +428,15 @@
 			{
 				String name = args[i].substring(0,index);
 				String value = args[i].substring(index + 1);
-				addArgument(name, URLDecoder.decode(value));
+				try
+				{
+					addArgument(name, URLDecoder.decode(value));
+				}
+				catch (Exception e)
+				{
+					System.out.println("UrlConfig:parseArguments(): Unable to parse argument=[" + value + "]");
+					System.out.println("UrlConfig:parseArguments(): queryString=[" + queryString + "]");
+				}
 			}
 		}
 	}

from jmeter.

asfimport avatar asfimport commented on May 18, 2024

khammond25 (migrated from Bugzilla):
Created attachment patch.MainFrame.diff: Patch for MainFrame.java; file contains the diff

patch.MainFrame.diff
--- \jakarta-jmeter-cvs\jakarta-jmeter\src\org\apache\jmeter\gui\MainFrame.java	Thu Jul 26 00:34:44 2001
+++ \jakarta-jmeter-nightly\2001.09.15\jakarta-jmeter\src\org\apache\jmeter\gui\MainFrame.java	Sun Sep 16 19:10:32 2001
@@ -160,7 +160,8 @@
 		JSplitPane treeAndMain = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
 		treeAndMain.setLeftComponent(treePanel);
 		treeAndMain.setRightComponent(new JScrollPane(mainPanel));
-		treeAndMain.setResizeWeight(.2);
+		// Commented out by khammond 2001.09.16 - This method is new in JDK1.3.
+                //treeAndMain.setResizeWeight(.2);
 		treeAndMain.setContinuousLayout(true);
 		{
 			gbc.gridy++;

from jmeter.

asfimport avatar asfimport commented on May 18, 2024

khammond25 (migrated from Bugzilla):
Created attachment patch.HtmlParser.diff: Patch for HtmlParser.java; file contains the diff

patch.HtmlParser.diff
--- \jakarta-jmeter-cvs\jakarta-jmeter\src\org\apache\jmeter\protocol\http\parser\HtmlParser.java	Fri Aug 31 00:46:44 2001
+++ \jakarta-jmeter-nightly\2001.09.15\jakarta-jmeter\src\org\apache\jmeter\protocol\http\parser\HtmlParser.java	Mon Sep 17 12:07:12 2001
@@ -259,6 +259,22 @@
 		url.setDomain(context.getHost());
 		url.setProtocol(context.getProtocol());
 		url.setPort(context.getPort());
+		
+		// In JDK1.3, we can get the path using getPath(). However, in JDK1.2, we have to parse
+		// the file to obtain the path. In the source for JDK1.3.1, they determine the path to
+		// be from the start of the file up to the LAST question mark (if any).
+		String contextPath = null; 
+		String contextFile = context.getFile();
+		int indexContextQuery = contextFile.lastIndexOf('?');
+		if (indexContextQuery != -1) 
+		{
+			contextPath = contextFile.substring(0, indexContextQuery);
+		} 
+		else
+		{
+			contextPath = contextFile;
+		}
+
 		int queryStarts = parsedUrlString.indexOf("?");
 		if (queryStarts == -1)
 		{
@@ -270,19 +286,33 @@
 		}
 		else if (parsedUrlString.startsWith(".."))
 		{
-			url.setPath(context.getPath().substring(0, context.getPath().substring(0,
-					context.getPath().lastIndexOf("/")).lastIndexOf("/")) +
+			url.setPath(contextPath.substring(0, contextPath.substring(0,
+					contextPath.lastIndexOf("/")).lastIndexOf("/")) +
 					parsedUrlString.substring(2, queryStarts));
 		}
 		else if (!parsedUrlString.toLowerCase().startsWith("http"))
 		{
-			url.setPath(context.getPath().substring(0, context.getPath().lastIndexOf("/")) +
+			url.setPath(contextPath.substring(0, contextPath.lastIndexOf("/")) +
 					"/" + parsedUrlString.substring(0, queryStarts));
 		}
 		else
 		{
 			URL u = new URL(parsedUrlString);
-			url.setPath(u.getPath());
+
+			// Determine the path. (See JDK1.2/1.3 comment above.)
+			String uPath = null; 
+			String uFile = u.getFile();
+			int indexUQuery = uFile.lastIndexOf('?');
+			if (indexUQuery != -1) 
+			{
+				uPath = uFile.substring(0, indexUQuery);
+			} 
+			else
+			{
+				uPath = uFile;
+			}
+
+			url.setPath(uPath);
 			url.setDomain(u.getHost());
 			url.setProtocol(u.getProtocol());
 			url.setPort(u.getPort());

from jmeter.

asfimport avatar asfimport commented on May 18, 2024

khammond25 (migrated from Bugzilla):
With the three patches I have attached, the code (up to 2001.09.15 nightly
build) now compiles and runs in JDK1.2! Let's be careful so that we do not
introduce any more JDK1.3+ functionality.

from jmeter.

asfimport avatar asfimport commented on May 18, 2024

khammond25 (migrated from Bugzilla):
Bug fixed 2001.09.27.

from jmeter.

asfimport avatar asfimport commented on May 18, 2024

Jordi Salvat i Alabart (migrated from Bugzilla):
Marking all bugs RESOLVED before JMeter 1.8's release date as VERIFIED.
Yes, it's pretty poor QA procedure, but there's bugs here lingering since JMeter
1.6, and we need to clean up a little.

from jmeter.

asfimport avatar asfimport commented on May 18, 2024

Jordi Salvat i Alabart (migrated from Bugzilla):
Bulk-closing all bugs RESOLVED before JMeter 1.8 release date.

from jmeter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.