httpunit-commit Mailing List for httpunit (Page 8)
Brought to you by:
russgold
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(31) |
Oct
(39) |
Nov
(18) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(8) |
Feb
(5) |
Mar
(8) |
Apr
(25) |
May
(20) |
Jun
(23) |
Jul
(28) |
Aug
(10) |
Sep
(3) |
Oct
(32) |
Nov
(61) |
Dec
(24) |
2002 |
Jan
(50) |
Feb
(34) |
Mar
(35) |
Apr
(3) |
May
(25) |
Jun
(25) |
Jul
(30) |
Aug
(146) |
Sep
(49) |
Oct
(156) |
Nov
(121) |
Dec
(54) |
2003 |
Jan
(12) |
Feb
(79) |
Mar
(88) |
Apr
(26) |
May
(67) |
Jun
(29) |
Jul
(8) |
Aug
(16) |
Sep
(20) |
Oct
(17) |
Nov
|
Dec
(5) |
2004 |
Jan
|
Feb
(40) |
Mar
(30) |
Apr
(5) |
May
|
Jun
(83) |
Jul
(34) |
Aug
(20) |
Sep
(44) |
Oct
(46) |
Nov
|
Dec
(14) |
2005 |
Jan
(4) |
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
|
Mar
(26) |
Apr
(8) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(36) |
May
(38) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(4) |
Oct
|
Nov
(18) |
Dec
(4) |
2009 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(35) |
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(9) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(21) |
Oct
(18) |
Nov
(1) |
Dec
|
From: <wol...@us...> - 2008-04-19 15:40:06
|
Revision: 938 http://httpunit.svn.sourceforge.net/httpunit/?rev=938&view=rev Author: wolfgang_fahl Date: 2008-04-19 08:40:02 -0700 (Sat, 19 Apr 2008) Log Message: ----------- test for bug report [ 1534234 ] HttpServletResponse.isCommitted() always false? (+ p a t c h) by Olaf Klischat added. Unfortunately p a t c h does break other tests - asking for improved test case and patch Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-04-19 15:11:31 UTC (rev 937) +++ trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-04-19 15:40:02 UTC (rev 938) @@ -90,7 +90,7 @@ * @param testName * @param comment */ - public void warnDisabled(String testName,String comment) { + public static void warnDisabled(String testName,String comment) { if (WARN_DISABLED) { disabledIndex++; System.err.println("*** "+disabledIndex+". Test "+testName+" disabled: "+comment); Modified: trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java =================================================================== --- trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java 2008-04-19 15:11:31 UTC (rev 937) +++ trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java 2008-04-19 15:40:02 UTC (rev 938) @@ -32,6 +32,7 @@ import junit.framework.TestSuite; import com.meterware.httpunit.*; +import com.meterware.servletunit.StatelessTest.SimpleGetServlet; /** * Tests the ServletUnitHttpResponse class. @@ -183,6 +184,10 @@ } + /** + * test isComitted flag after flushing buffer + * @throws Exception + */ public void testUpdateAfterFlushBuffer() throws Exception { ServletUnitHttpResponse servletResponse = new ServletUnitHttpResponse(); servletResponse.getWriter(); @@ -190,8 +195,44 @@ servletResponse.flushBuffer(); assertTrue( "Should be committed now", servletResponse.isCommitted() ); } + + /** + * helper Servlet for bug report 1534234 + */ + public static class CheckIsCommittedServlet extends HttpServlet { + public static boolean isCommitted; + protected void doGet( HttpServletRequest req, + HttpServletResponse resp ) + throws ServletException, IOException { + resp.setContentType( "text/html" ); + + PrintWriter pw = resp.getWriter(); + pw.println("anything"); + pw.flush(); + pw.close(); + isCommitted=resp.isCommitted(); + } + } + + /** + * test bug report [ 1534234 ] HttpServletResponse.isCommitted() always false? (+patch) + * by Olaf Klischat? + * + */ + public void testIsCommitted() throws Exception { + ServletRunner sr = new ServletRunner(); + WebRequest request = new GetMethodWebRequest( "http://localhost/servlet/" + SimpleGetServlet.class.getName() ); + WebResponse response = sr.getResponse( request ); + boolean isPending=true; + if (isPending) { + HttpUnitTest.warnDisabled("testIsCommitted", "bug report 1534234 is pending - waiting for testcase/improved patch"); + } else { + assertTrue("The response should be committed",CheckIsCommittedServlet.isCommitted); + } + } + public void testSingleHeaders() throws Exception { ServletUnitHttpResponse servletResponse = new ServletUnitHttpResponse(); servletResponse.setContentType( "text/html" ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 15:11:33
|
Revision: 937 http://httpunit.svn.sourceforge.net/httpunit/?rev=937&view=rev Author: wolfgang_fahl Date: 2008-04-19 08:11:31 -0700 (Sat, 19 Apr 2008) Log Message: ----------- added test case for bug report [ 1510582 ] setParameter fails with <input type="file"> by Julien Henry and changed the behaviour of setparameter that a more developer friendly exception with a hopefully better understandable message is thrown to point out that file parameters need a parameter of type java.io.File when being set Modified Paths: -------------- trunk/httpunit/doc/release_notes.html trunk/httpunit/src/com/meterware/httpunit/FormControl.java trunk/httpunit/src/com/meterware/httpunit/FormParameter.java trunk/httpunit/src/com/meterware/httpunit/WebForm.java trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-04-19 14:26:50 UTC (rev 936) +++ trunk/httpunit/doc/release_notes.html 2008-04-19 15:11:31 UTC (rev 937) @@ -1,5 +1,5 @@ <html> -<head></head> +<head><title>httpunit 1.7 release notes</title></head> <body> <pre> HttpUnit release notes Modified: trunk/httpunit/src/com/meterware/httpunit/FormControl.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/FormControl.java 2008-04-19 14:26:50 UTC (rev 936) +++ trunk/httpunit/src/com/meterware/httpunit/FormControl.java 2008-04-19 15:11:31 UTC (rev 937) @@ -891,8 +891,15 @@ } +/** + * a control for File submit + */ class FileSubmitFormControl extends FormControl { + /** + * accessor for the type + * @return the constant FILE_TYPE + */ public String getType() { return FILE_TYPE; } Modified: trunk/httpunit/src/com/meterware/httpunit/FormParameter.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/FormParameter.java 2008-04-19 14:26:50 UTC (rev 936) +++ trunk/httpunit/src/com/meterware/httpunit/FormParameter.java 2008-04-19 15:11:31 UTC (rev 937) @@ -250,15 +250,25 @@ /** * This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form. **/ - class UnusedParameterValueException extends IllegalRequestParameterException { + public class UnusedParameterValueException extends IllegalRequestParameterException { - + + /** + * construct an exception for an unused parameter with the given name + * and the value that is bad + * @param parameterName + * @param badValue + */ UnusedParameterValueException( String parameterName, String badValue ) { _parameterName = parameterName; _badValue = badValue; } - + + /** + * get the message for this exception + * @return the message + */ public String getMessage() { StringBuffer sb = new StringBuffer(HttpUnitUtils.DEFAULT_TEXT_BUFFER_SIZE); sb.append( "Attempted to assign to parameter '" ).append( _parameterName ); Modified: trunk/httpunit/src/com/meterware/httpunit/WebForm.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/WebForm.java 2008-04-19 14:26:50 UTC (rev 936) +++ trunk/httpunit/src/com/meterware/httpunit/WebForm.java 2008-04-19 15:11:31 UTC (rev 937) @@ -610,15 +610,17 @@ * Removes a parameter name from this collection. **/ public void removeParameter( String name ) { - setParameter( name, NO_VALUES ); + setParameter( name, NO_VALUES ); } /** * Sets the value of a parameter in this form. + * @param name - the name of the parameter + * @param value - the value of the parameter **/ public void setParameter( String name, String value ) { - setParameter( name, new String[] { value } ); + setParameter( name, new String[] { value } ); } @@ -627,8 +629,11 @@ * controls with the same name in the form. */ public void setParameter( String name, final String[] values ) { - FormParameter parameter = getParameter( name ); + FormParameter parameter = getParameter( name ); if (parameter == UNKNOWN_PARAMETER) throw new NoSuchParameterException( name ); + if (parameter.isFileParameter()) { + throw new InvalidFileParameterException(name,values); + } parameter.setValues( values ); } @@ -954,7 +959,42 @@ //===========================---===== exception class NoSuchParameterException ========================================= + /** + * This exception is thrown on an attempt to set a file parameter to a non file type + **/ + class InvalidFileParameterException extends IllegalRequestParameterException { + + /** + * construct a new InvalidFileParameterException for the given parameter name and value list + * @param parameterName + * @param values + */ + InvalidFileParameterException( String parameterName, String[] values ) { + _parameterName = parameterName; + _values=values; + } + + + /** + * get the message for this exception + */ + public String getMessage() { + String valueList=""; + String delim=""; + for (int i=0;i<_values.length;i++) { + valueList+=delim+"'"+_values[i]+"'"; + delim=", "; + } + String msg="The file parameter with the name '"+_parameterName+"' must have type File but the string values "+valueList+" where supplied"; + return msg; + } + + + private String _parameterName; + private String[] _values; + } + /** * This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form. **/ Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 14:26:50 UTC (rev 936) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 15:11:31 UTC (rev 937) @@ -24,7 +24,9 @@ import java.io.File; +import com.meterware.httpunit.FormParameter.UnusedParameterValueException; import com.meterware.httpunit.FormParameter.UnusedUploadFileException; +import com.meterware.httpunit.WebForm.InvalidFileParameterException; import com.meterware.httpunit.WebForm.NoSuchParameterException; import com.meterware.httpunit.controls.IllegalParameterValueException; import com.meterware.httpunit.protocol.UploadFileSpec; @@ -623,8 +625,40 @@ assertTrue(foundURL.equals(expected)); } } - /** + * test for bug report + * [ 1510582 ] setParameter fails with <input type="file"> + * by Julien HENRY + */ + public void testUnusedParameterExceptionForFileParamWithStringValue() throws Exception { + defineWebPage( "Default", "<form method=POST action='/ask'>" + + "<Input type=file name=\"file1\">" + + "<Input type=file name=\"file2\">" + + "<Input type=submit value=Upload></form>" ); + WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); + WebForm form = page.getForms()[0]; + try { + // this works with no exception + form.setParameter("file1", new File("/tmp/test.txt")); + // this doesn't + form.setParameter("file2", "/tmp/test.txt"); + fail("There should have been an exception"); + } catch (UnusedParameterValueException upe) { + String msg=upe.getMessage(); + // this is the pre 1.7 behaviour + String expected="Attempted to assign to parameter 'file2' the extraneous value '/tmp/test.txt'."; + System.err.println(msg); + assertTrue("exception message is not as expected",msg.equals(expected)); + fail("in 1.7 bug 1510582 should be fixed"); + } catch (InvalidFileParameterException ipe) { + String msg=ipe.getMessage(); + String expected="The file parameter with the name 'file2' must have type File but the string values '/tmp/test.txt' where supplied"; + // System.err.println(msg); + assertTrue("InvalidFileParameterException message is not as expected",msg.equals(expected)); + } + + } + /** * test for bug report [ 1390695 ] bad error message * by Martin Olsson */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 14:26:52
|
Revision: 936 http://httpunit.svn.sourceforge.net/httpunit/?rev=936&view=rev Author: wolfgang_fahl Date: 2008-04-19 07:26:50 -0700 (Sat, 19 Apr 2008) Log Message: ----------- Test for bug report [ 1510495 ] getParameterValue on a submit button fails by Julien HENRY added if submit is done before getting the form parameter everything is fine Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 13:38:33 UTC (rev 935) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 14:26:50 UTC (rev 936) @@ -574,6 +574,24 @@ } /** + * test for bug report [ 1510495 ] getParameterValue on a submit button fails + * by Julien HENRY + * @throws Exception + */ + public void testSubmitButtonParameterValue() throws Exception { + defineResource("/someaction?submitButton=buttonLabel","submitted"); + String html="<form name='checkit' method=GET action='someaction'>"+ + "<input type='submit' name='submitButton' value='buttonLabel' />"+ + "</form>"; + defineWebPage("checkit",html); + WebResponse resp= _wc.getResponse( getHostPath() + "/checkit.html" ); + WebForm form = resp.getFormWithName("checkit"); + form.submit(); + String paramValue=form.getParameterValue("submitButton"); + assertTrue("the parameter value should be buttonLabel",paramValue.equals("buttonLabel")); + } + + /** * test for bug report [ 1393144 ] URL args in form action are sent for GET forms * by Nathan Jakubiak */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 13:38:36
|
Revision: 935 http://httpunit.svn.sourceforge.net/httpunit/?rev=935&view=rev Author: wolfgang_fahl Date: 2008-04-19 06:38:33 -0700 (Sat, 19 Apr 2008) Log Message: ----------- test for bug report [ 1432236 ] Downloading gif images uses up sockets by Sir Runcible Spoon - with many images httpunit might run out of resources. In the test environment up to 10.000 image accesses where possible (taking some 7 minutes) with no problem - the test for 10 and 100 images is active Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/WebImageTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/WebImageTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebImageTest.java 2008-04-19 12:54:26 UTC (rev 934) +++ trunk/httpunit/test/com/meterware/httpunit/WebImageTest.java 2008-04-19 13:38:33 UTC (rev 935) @@ -62,6 +62,42 @@ assertEquals( "Selected image source", "onemore.gif", image.getSource() ); } + /** + * test for bug report [ 1432236 ] Downloading gif images uses up sockets + * by Sir Runcible Spoon + * @throws Exception + */ + public void testGetImageManyTimes() throws Exception { + // try this for different numbers of images + int testCounts[]={10,100 + //,1000 // approx 2.5 secs + //,2000 // approx 15 secs + //,3000 // approx 47 secs + //,4000 // approx 90 secs + //,5000 // approx 126 secs + // ,10000 // approx 426 secs + //,100000 // let us know if you get this running ... + }; + // try + for (int testIndex=0;testIndex<testCounts.length;testIndex++) { + int MANY_IMAGES_COUNT=testCounts[testIndex]; + // System.out.println(""+(testIndex+1)+". test many images with "+MANY_IMAGES_COUNT+" image links"); + String html="<html><head><title>A page with many images</title></head>\n" + + "<body>\n"; + for (int i=0;i<MANY_IMAGES_COUNT;i++) { + html+="<img src='image"+i+".gif' alt='image#"+i+"'>\n"; + } + html+="</body></html>\n"; + defineResource("manyImages"+testIndex+".html",html); + WebConversation wc = new WebConversation(); + WebRequest request = new GetMethodWebRequest( getHostPath() + "/manyImages"+testIndex+".html"); + WebResponse manyImagesPage = wc.getResponse( request ); + assertEquals( "Number of images", MANY_IMAGES_COUNT, manyImagesPage.getImages().length ); + for (int i=0;i<MANY_IMAGES_COUNT;i++) { + assertEquals( "image source #"+i, "image"+i+".gif", manyImagesPage.getImages()[i].getSource() ); + } // for + } // for + } public void testFindImageAndLink() throws Exception { defineResource( "SimplePage.html", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 12:54:27
|
Revision: 934 http://httpunit.svn.sourceforge.net/httpunit/?rev=934&view=rev Author: wolfgang_fahl Date: 2008-04-19 05:54:26 -0700 (Sat, 19 Apr 2008) Log Message: ----------- test for bug report [ 1393144 ] URL args in form action are sent for GET forms by Nathan Jakubiak added and disabled while bug is pending and waiting for patch Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 12:28:56 UTC (rev 933) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 12:54:26 UTC (rev 934) @@ -574,6 +574,39 @@ } /** + * test for bug report [ 1393144 ] URL args in form action are sent for GET forms + * by Nathan Jakubiak + */ + public void testParamReplacement() throws Exception { + String expected="/cgi-bin/bar?foo=a"; + String nogood ="/cgi-bin/bar?arg=replaced&foo=a"; + defineResource( nogood , "not good" ); + defineResource( expected, "excellent" ); + String html= + "<FORM NAME=Bethsheba METHOD=GET ACTION=/cgi-bin/bar?arg=replaced>"+ + "<INPUT TYPE=TEXT NAME=foo>"+ + "<INPUT TYPE=SUBMIT>"+ + "</FORM>"+ + "<br>"+ + "<!--JavaScript submit:"+ + "<a href=\"javascript:document.Bethsheba.submit()\">go</a>"+ + "-->"; + defineWebPage( "test", html); + WebResponse resp= _wc.getResponse( getHostPath() + "/test.html" ); + WebForm form = resp.getFormWithName("Bethsheba"); + form.setParameter("foo", "a"); + resp = form.submit(); + String foundURL=resp.getURL().toString(); + boolean disabled=true; + if (disabled) { + this.warnDisabled("testParamReplacement", "bug 1393144 pending - waiting for patch"); + } else { + // System.out.println("url: " + foundURL); + assertTrue(foundURL.equals(expected)); + } + } + + /** * test for bug report [ 1390695 ] bad error message * by Martin Olsson */ Modified: trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-04-19 12:28:56 UTC (rev 933) +++ trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-04-19 12:54:26 UTC (rev 934) @@ -34,17 +34,28 @@ private long _startTime; + /** + * construct a test with the given name + * @param name + */ public HttpUnitTest( String name ) { super( name ); } - + /** + * construct a test with the given name and show it depending on the flag showTestName + * @param name + * @param showTestName + */ public HttpUnitTest( String name, boolean showTestName ) { super( name ); _showTestName = showTestName; } + /** + * setup the test by resetting the environment for Http Unit tests + */ public void setUp() throws Exception { super.setUp(); HttpUnitOptions.reset(); @@ -56,6 +67,10 @@ } + /** + * tear down the test and if the name should be shown do so with the duration of the test + * in millisecs + */ public void tearDown() throws Exception { super.tearDown(); if (_showTestName) { @@ -64,15 +79,22 @@ } } + /** + * handling of tests that are temporarily disabled + */ public static boolean WARN_DISABLED=true; + public static int disabledIndex=0; + /** * show a warning for disabled Tests * @param testName * @param comment */ public void warnDisabled(String testName,String comment) { - if (WARN_DISABLED) - System.err.println("*** Test "+testName+" disabled: "+comment); + if (WARN_DISABLED) { + disabledIndex++; + System.err.println("*** "+disabledIndex+". Test "+testName+" disabled: "+comment); + } } static { Modified: trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java 2008-04-19 12:28:56 UTC (rev 933) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java 2008-04-19 12:54:26 UTC (rev 934) @@ -1355,13 +1355,13 @@ // alert(var25500);}' failed: java.lang.IllegalArgumentException: out of range index // for 50000 lines and opt level 0 if ((optimizationLevel>=0) && (lines>=50000)) { - System.err.println("*** Test testLargeJavaScript() fails with runtime Exception for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); + this.warnDisabled("testLargeJavaScript","fails with runtime Exception for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); } else { throw re; } } catch (java.lang.OutOfMemoryError ome) { if (lines>=expectMemoryExceededForLinesOver) { - System.err.println("*** Test testLargeJavaScript() fails with out of memory error for "+lines+" lines at optimizationLevel "+optimizationLevel+" we expect this for more than "+expectMemoryExceededForLinesOver+" lines"); + this.warnDisabled("testLargeJavaScript","fails with out of memory error for "+lines+" lines at optimizationLevel "+optimizationLevel+" we expect this for more than "+expectMemoryExceededForLinesOver+" lines"); break; } else { throw ome; @@ -1369,7 +1369,7 @@ } catch (java.lang.ClassFormatError cfe) { // java.lang.ClassFormatError: Invalid method Code length 223990 in class file org/mozilla/javascript/gen/c1 if (optimizationLevel>=0) - System.err.println("*** Test testLargeJavaScript() fails with class format error for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); + this.warnDisabled("testLargeJavaScript","fails with class format error for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); else throw cfe; } // try Modified: trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java =================================================================== --- trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java 2008-04-19 12:28:56 UTC (rev 933) +++ trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java 2008-04-19 12:54:26 UTC (rev 934) @@ -72,9 +72,9 @@ assertNotNull( "didn't find table", table ); - boolean bug1043368Open=true; - if (bug1043368Open) { - this.warnDisabled("testFormTable", "for open bug 1043368"); + boolean bug1043368Pending=true; + if (bug1043368Pending) { + this.warnDisabled("testFormTable", "for pending bug 1043368"); } else { System.out.println( table.toString() ); assertFalse( "wrong table", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 12:28:57
|
Revision: 933 http://httpunit.svn.sourceforge.net/httpunit/?rev=933&view=rev Author: wolfgang_fahl Date: 2008-04-19 05:28:56 -0700 (Sat, 19 Apr 2008) Log Message: ----------- test case for bug report [ 1390695 ] bad error message by Martin Olsson added and fixed to FormParameter now to throw a NoSuchParameterException instead of an UnusedUploadFileException: Modified Paths: -------------- trunk/httpunit/src/com/meterware/httpunit/FormParameter.java trunk/httpunit/src/com/meterware/httpunit/WebForm.java trunk/httpunit/svnlog2releasenotes.ksh trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java Modified: trunk/httpunit/src/com/meterware/httpunit/FormParameter.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/FormParameter.java 2008-04-19 12:28:12 UTC (rev 932) +++ trunk/httpunit/src/com/meterware/httpunit/FormParameter.java 2008-04-19 12:28:56 UTC (rev 933) @@ -281,6 +281,12 @@ class UnusedUploadFileException extends IllegalRequestParameterException { + /** + * construct a new UnusedUploadFileException exception base on the parameter Name the number of files expected and supplied + * @param parameterName + * @param numFilesExpected + * @param numFilesSupplied + */ UnusedUploadFileException( String parameterName, int numFilesExpected, int numFilesSupplied ) { _parameterName = parameterName; _numExpected = numFilesExpected; @@ -288,6 +294,9 @@ } + /** + * get the message for this exception + */ public String getMessage() { StringBuffer sb = new StringBuffer( HttpUnitUtils.DEFAULT_TEXT_BUFFER_SIZE ); sb.append( "Attempted to upload " ).append( _numSupplied ).append( " files using parameter '" ).append( _parameterName ); Modified: trunk/httpunit/src/com/meterware/httpunit/WebForm.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/WebForm.java 2008-04-19 12:28:12 UTC (rev 932) +++ trunk/httpunit/src/com/meterware/httpunit/WebForm.java 2008-04-19 12:28:56 UTC (rev 933) @@ -638,8 +638,9 @@ **/ public void setParameter( String name, UploadFileSpec[] files ) { FormParameter parameter = getParameter( name ); - if (parameter == null) throw new NoSuchParameterException( name ); - parameter.setFiles( files ); + if ((parameter == null) || (!parameter.isFileParameter())) + throw new NoSuchParameterException( name ); + parameter.setFiles( files ); } Modified: trunk/httpunit/svnlog2releasenotes.ksh =================================================================== --- trunk/httpunit/svnlog2releasenotes.ksh 2008-04-19 12:28:12 UTC (rev 932) +++ trunk/httpunit/svnlog2releasenotes.ksh 2008-04-19 12:28:56 UTC (rev 933) @@ -89,8 +89,9 @@ print "<ol>" repositorylink="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=" baselink="http://sourceforge.net/tracker/index.php?func=detail" - buglink ="&group_id=6550&atid=106550" - patchlink="&group_id=6550&atid=306550" + buglink ="&group_id=6550&atid=106550" + supportlink="&group_id=6550&atid=206550" + patchlink ="&group_id=6550&atid=306550" for (rev in text) { current=text[rev] # look for bug report or patch number - must have 6 digits + @@ -102,10 +103,12 @@ # patch or bug? if (match(current,"[p|P]atch")) { postfix=patchlink - # replace number with link to sourceforge tracker + } else if (match(current,"SR")) { + postfix=supportlink } else { postfix=buglink } + # replace number with link to sourceforge tracker link=sprintf("<a href=%s%s&aid=%s%s%s>%s</a>",quote,baselink,linkno,postfix,quote,linkno); current=substr(current,1,rs-1) link substr(current,rs+rl,length(current)) } Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 12:28:12 UTC (rev 932) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-19 12:28:56 UTC (rev 933) @@ -24,6 +24,8 @@ import java.io.File; +import com.meterware.httpunit.FormParameter.UnusedUploadFileException; +import com.meterware.httpunit.WebForm.NoSuchParameterException; import com.meterware.httpunit.controls.IllegalParameterValueException; import com.meterware.httpunit.protocol.UploadFileSpec; @@ -571,6 +573,33 @@ assertEquals( "File from unvalidated request", file.getAbsolutePath(), wr.getParameterValues( "File" )[0] ); } + /** + * test for bug report [ 1390695 ] bad error message + * by Martin Olsson + */ + public void testUnusedUploadFileException() throws Exception { + defineWebPage( "Default", "<form method=POST action='/ask'>" + + "<Input type=file name=correct_field_name>" + + "<Input type=submit value=Upload></form>" ); + WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); + WebForm form = page.getForms()[0]; + try { + // purposely try to set a non existing file name + form.setParameter("wrong_field_name", new File("exists.txt")); + fail("There should have been an exception"); + } catch (NoSuchParameterException npe) { + String msg=npe.getMessage(); + String expected="No parameter named 'wrong_field_name' is defined in the form"; + assertTrue(msg.equals(expected)); + } catch (UnusedUploadFileException ufe) { + String msg=ufe.getMessage(); + // this is the pre 1.7 behaviour + String expected="Attempted to upload 1 files using parameter 'null' which is not a file parameter."; + assertTrue(msg.equals(expected)); + System.err.println(msg); + fail("in 1.7 bug 1390695 should be fixed"); + } + } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 11:35:04
|
Revision: 931 http://httpunit.svn.sourceforge.net/httpunit/?rev=931&view=rev Author: wolfgang_fahl Date: 2008-04-19 04:35:00 -0700 (Sat, 19 Apr 2008) Log Message: ----------- not for release notes fixed ol problem with release notes Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-04-19 11:34:16 UTC (rev 930) +++ trunk/httpunit/doc/release_notes.html 2008-04-19 11:35:00 UTC (rev 931) @@ -395,7 +395,6 @@ <li>improved (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=921">r921</a>) </li> -<ol> <li>formatted extraction of subversion log with links (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=922">r922</a>) </li> @@ -408,7 +407,6 @@ <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1376739&group_id=6550&atid=306550">1376739</a> ] iframe tag not recognized if Javascript code contains '<'<br />by Nathan Jakubiak added<br />The supplied patch unfortunately does not work and is therefore only added as a comment (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=929">r929</a>) </li> -</ol> </ol> <pre> 5-Jul-2007: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 11:34:20
|
Revision: 930 http://httpunit.svn.sourceforge.net/httpunit/?rev=930&view=rev Author: wolfgang_fahl Date: 2008-04-19 04:34:16 -0700 (Sat, 19 Apr 2008) Log Message: ----------- not for release notes: svn r929 added to release notes Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-04-19 11:32:11 UTC (rev 929) +++ trunk/httpunit/doc/release_notes.html 2008-04-19 11:34:16 UTC (rev 930) @@ -404,7 +404,10 @@ </li> <li>test for bug report<br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1232591&group_id=6550&atid=106550">1232591</a> ] getTarget() gives "_top" even if target is not present by Rifi added - no change yet (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=928">r928</a>) - </li> + </li> + <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1376739&group_id=6550&atid=306550">1376739</a> ] iframe tag not recognized if Javascript code contains '<'<br />by Nathan Jakubiak added<br />The supplied patch unfortunately does not work and is therefore only added as a comment + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=929">r929</a>) + </li> </ol> </ol> <pre> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 11:32:13
|
Revision: 929 http://httpunit.svn.sourceforge.net/httpunit/?rev=929&view=rev Author: wolfgang_fahl Date: 2008-04-19 04:32:11 -0700 (Sat, 19 Apr 2008) Log Message: ----------- test case for bug report [ 1376739 ] iframe tag not recognized if Javascript code contains '<' by Nathan Jakubiak added The supplied patch unfortunately does not work and is therefore only added as a comment Modified Paths: -------------- trunk/httpunit/doc/release_notes.html trunk/httpunit/src/com/meterware/httpunit/WebResponse.java trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-04-19 10:46:48 UTC (rev 928) +++ trunk/httpunit/doc/release_notes.html 2008-04-19 11:32:11 UTC (rev 929) @@ -395,6 +395,17 @@ <li>improved (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=921">r921</a>) </li> +<ol> + <li>formatted extraction of subversion log with links + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=922">r922</a>) + </li> + <li>PATCH proposal [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1592532&group_id=6550&atid=106550">1592532</a> ] Invalid ServletUnitServletContext#getResource(String path)<br />by Timo Westk\xE4mper<br />add as comment while waiting for a JUnit testcase to be supplied + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=927">r927</a>) + </li> + <li>test for bug report<br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1232591&group_id=6550&atid=106550">1232591</a> ] getTarget() gives "_top" even if target is not present by Rifi added - no change yet + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=928">r928</a>) + </li> +</ol> </ol> <pre> 5-Jul-2007: Modified: trunk/httpunit/src/com/meterware/httpunit/WebResponse.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/WebResponse.java 2008-04-19 10:46:48 UTC (rev 928) +++ trunk/httpunit/src/com/meterware/httpunit/WebResponse.java 2008-04-19 11:32:11 UTC (rev 929) @@ -1435,13 +1435,22 @@ ByteTag getNextTag() throws UnsupportedEncodingException { - ByteTag byteTag; + ByteTag byteTag=null; do { - int start = _end + 1; - while (start < _buffer.length && _buffer[ start ] != '<') start++; - for (_end =start +1; _end < _buffer.length && _buffer[ _end ] != '>'; _end++); - if (_end >= _buffer.length || _end < start) return null; - byteTag = new ByteTag( _buffer, start +1, _end-start -1 ); + int _start = _end + 1; + while (_start < _buffer.length && _buffer[ _start ] != '<') _start++; + // proposed patch for bug report + // [ 1376739 ] iframe tag not recognized if Javascript code contains '<' + // by Nathan Jakubiak + // uncommented since it doesn't seem to fix the test in WebFrameTest.java + // if (_scriptDepth > 0 && _start+1 < _buffer.length && + // _buffer[ _start+1 ] != '/') { + // _end = _start+1; + // continue; + //} + for (_end =_start +1; _end < _buffer.length && _buffer[ _end ] != '>'; _end++); + if (_end >= _buffer.length || _end < _start) return null; + byteTag = new ByteTag( _buffer, _start +1, _end-_start -1 ); if (byteTag.getName().equalsIgnoreCase("script")) { _scriptDepth++; return byteTag; Modified: trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java 2008-04-19 10:46:48 UTC (rev 928) +++ trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java 2008-04-19 11:32:11 UTC (rev 929) @@ -427,6 +427,26 @@ assertNotNull( "Contents not found", contents ); assertEquals( "Number of links in iframe", 1, _wc.getFrameContents( "center" ).getLinks().length ); } + + /** + * test bug report [ 1376739 ] iframe tag not recognized if Javascript code contains '<' + * by Nathan Jakubiak + * @throws Exception + */ + public void testIFrameBug() throws Exception { + String html="\"<SCRIPT LANGUAGE=\"JavaScript\">\n"+ + "var b = 0 < 1;\n"+ + "</SCRIPT>\n"+ + "<iframe name=\"iframe_after_lessthan_in_javascript\"\n"+ + "src=\"c.html\"></iframe>"; + defineWebPage( "iframe", html); + try { + WebResponse response = _wc.getFrameContents("iframe_after_lessthan_in_javascript"); + assertTrue(response!=null); + } catch (Throwable th) { + this.warnDisabled("testIFrameBug", "patch needed for '"+th.getMessage()+"'"); + } + } /** * test I Frame with a Form according to mail to mailinglist of 2008-03-25 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 10:46:52
|
Revision: 928 http://httpunit.svn.sourceforge.net/httpunit/?rev=928&view=rev Author: wolfgang_fahl Date: 2008-04-19 03:46:48 -0700 (Sat, 19 Apr 2008) Log Message: ----------- test for bug report [ 1232591 ] getTarget() gives "_top" even if target is not present by Rifi added - no change yet Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java 2008-04-19 10:24:27 UTC (rev 927) +++ trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java 2008-04-19 10:46:48 UTC (rev 928) @@ -70,6 +70,7 @@ assertEquals( 0, links.length ); } + /** * test for bug report [ 1156972 ] isWebLink doesn't recognize all anchor tags * by fregienj @@ -282,8 +283,28 @@ link.click(); assertEquals( "Title of next page", "Initial", wc.getFrameContents( link.getTarget() ).getTitle() ); } + + /** + * test for bug report + * [ 1232591 ] getTarget() gives "_top" even if target is not present + * by Rifi + */ + public void testGetTarget_top() throws Exception { + WebConversation wc = new WebConversation(); + defineWebPage( "target", "<a href=\"a.html\">" ); + WebResponse targetPage = wc.getResponse( getHostPath() + "/target.html" ); + assertEquals( "Num links in initial page", 1,targetPage.getLinks().length ); + WebLink link = targetPage.getLinks()[0]; + String target=link.getTarget(); + // the bug report _top is NOT what we expect + // but for the time being this is how httpunit behaves ... + String expected="_top"; + //System.err.println(target); + assertTrue(target.equals(expected)); + } + public void testLinksWithFragmentsAndParameters() throws Exception { WebConversation wc = new WebConversation(); defineResource( "Initial.html?age=3", "<html><head><title>Initial</title></head><body>" + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 10:24:29
|
Revision: 927 http://httpunit.svn.sourceforge.net/httpunit/?rev=927&view=rev Author: wolfgang_fahl Date: 2008-04-19 03:24:27 -0700 (Sat, 19 Apr 2008) Log Message: ----------- PATCH proposal [ 1592532 ] Invalid ServletUnitServletContext#getResource(String path) by Timo Westk?\195?\164mper add as comment while waiting for a JUnit testcase to be supplied Modified Paths: -------------- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java Modified: trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java =================================================================== --- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-19 10:19:36 UTC (rev 926) +++ trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-19 10:24:27 UTC (rev 927) @@ -115,6 +115,9 @@ public java.net.URL getResource( String path ) { try { File resourceFile = _application.getResourceFile( path ); + // PATCH proposal [ 1592532 ] Invalid ServletUnitServletContext#getResource(String path) + // by Timo Westk\xE4mper + // return !resourceFile.exists() ? null : resourceFile.toURL(); return resourceFile == null ? null : resourceFile.toURL(); } catch (MalformedURLException e) { return null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 10:19:46
|
Revision: 926 http://httpunit.svn.sourceforge.net/httpunit/?rev=926&view=rev Author: wolfgang_fahl Date: 2008-04-19 03:19:36 -0700 (Sat, 19 Apr 2008) Log Message: ----------- not for release notes: broken link and type in date Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-04-19 10:02:07 UTC (rev 925) +++ trunk/httpunit/doc/release_notes.html 2008-04-19 10:19:36 UTC (rev 926) @@ -24,8 +24,8 @@ 14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal 06-Apr-2008 bugfix 1110071: cannot increase length of a select control </pre> -<h3>1.7 2007-04</h3> -Bug fixes and patches from 2007-12 to 2008-04: for a full subversion log you +<h3>1.7 2008-04-19</h3> +Bug fixes and patches from 2007-12 to 2008-04-19: for a full subversion log you might want to issue the subversion command:<br /> <code> svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit</code><br /> The following list of changes has been extracted from this subversion log with patch @@ -164,7 +164,7 @@ <li>Scriptable interface (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=833">r833</a>) </li> - <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1864072&group_id=6550&atid=306550">1864072</a> patch by Matt + <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1864072&group_id=6550&atid=106550">1864072</a> patch by Matt (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=834">r834</a>) </li> <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> added This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 10:02:10
|
Revision: 925 http://httpunit.svn.sourceforge.net/httpunit/?rev=925&view=rev Author: wolfgang_fahl Date: 2008-04-19 03:02:07 -0700 (Sat, 19 Apr 2008) Log Message: ----------- not for release notes added to ignore list of svnlog2releasenotes Modified Paths: -------------- trunk/httpunit/svnlog2releasenotes.ksh Modified: trunk/httpunit/svnlog2releasenotes.ksh =================================================================== --- trunk/httpunit/svnlog2releasenotes.ksh 2008-04-19 09:59:28 UTC (rev 924) +++ trunk/httpunit/svnlog2releasenotes.ksh 2008-04-19 10:02:07 UTC (rev 925) @@ -46,6 +46,7 @@ ignores[i++]="copyright year" ignores[i++]="source formatting" ignores[i++]="source code layout" + ignores[i++]="not for release notes" } /^------------------------------------------------------------------------/{ svnindex++; next This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 09:59:31
|
Revision: 924 http://httpunit.svn.sourceforge.net/httpunit/?rev=924&view=rev Author: wolfgang_fahl Date: 2008-04-19 02:59:28 -0700 (Sat, 19 Apr 2008) Log Message: ----------- not for release notes: svnlog2releasenotes utility added Added Paths: ----------- trunk/httpunit/svnlog2releasenotes.ksh Added: trunk/httpunit/svnlog2releasenotes.ksh =================================================================== --- trunk/httpunit/svnlog2releasenotes.ksh (rev 0) +++ trunk/httpunit/svnlog2releasenotes.ksh 2008-04-19 09:59:28 UTC (rev 924) @@ -0,0 +1,128 @@ +# +# script for httpunit release notes formatting +# WF 2008-04-19 +# $Header$ +# + +# +# +# show usage +# +usage() { + echo "usage: svnlog2releasenotes [fromdate]" + echo " get the subversion repository notes and reformat to release notes" + echo " example: rnotes 2007-12 > recent.html" + exit 1 +} + + +# +# get the subversion log +# +getsvnlog() { + svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit > svnlog.txt +} + +# +# reformat the subversion log to release notes format +# +reformat() { + cat svnlog.txt | awk -v fromdate="$fromdate" -v todate="$todate" ' +BEGIN { + FS="|" + quote="\x22" + amp="\x26" + ignores[i++]="comment added" + ignores[i++]="comments fixed" + ignores[i++]="comment improved" + ignores[i++]="^comment$" + ignores[i++]="^improved$" + ignores[i++]="^keywords$" + ignores[i++]="header" + ignores[i++]="^keywords$" + ignores[i++]="^removed duplicate$" + ignores[i++]="Header added" + ignores[i++]="Copyright year" + ignores[i++]="copyright year" + ignores[i++]="source formatting" + ignores[i++]="source code layout" +} +/^------------------------------------------------------------------------/{ + svnindex++; next +} +/^r[0-9]+/ { + match($0,"^r[0-9]+") + rev=substr($0,RSTART+1,RLENGTH-1); + author=$2 + date=gsub(" ","",$3) + date=substr($3,1,10) + if (date>=fromdate) { + collect=(1==1) + } else { + collect=(1==0) + } + if (collect) { + # print rev,author,date + } + next +} +{ + for (ignore in ignores) { + echo ignores[ignore] + if (match($0,ignores[ignore])) { + collect=(1==0) + } + } + if (collect && length($0)>0){ + current=$0 + # encode html tags + gsub("<","\\<",current); + gsub(">","\\>",current); + if (text[rev]!="") + text[rev]=text[rev]"<br />" + text[rev]=text[rev]current + } + next +} +END { + print "<ol>" + repositorylink="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=" + baselink="http://sourceforge.net/tracker/index.php?func=detail" + buglink ="&group_id=6550&atid=106550" + patchlink="&group_id=6550&atid=306550" + for (rev in text) { + current=text[rev] + # look for bug report or patch number - must have 6 digits + + if (match(current,"[0-9][0-9][0-9][0-9][0-9][0-9]+")) { + rs=RSTART + rl=RLENGTH + # get the bug or patch number + linkno=substr(current,RSTART,RLENGTH) + # patch or bug? + if (match(current,"[p|P]atch")) { + postfix=patchlink + # replace number with link to sourceforge tracker + } else { + postfix=buglink + } + link=sprintf("<a href=%s%s&aid=%s%s%s>%s</a>",quote,baselink,linkno,postfix,quote,linkno); + current=substr(current,1,rs-1) link substr(current,rs+rl,length(current)) + } + printf(" <li>%s\n (<a href=%s%s%s%s>r%s</a>)\n </li>\n",current,quote,repositorylink,rev,quote,rev); + } + print "</ol>" +} +' +} + +# +# check number of command line parameters +# +if [ $# -lt 1 ] +then + usage +fi + +fromdate=$1 +getsvnlog +reformat \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-19 09:57:59
|
Revision: 923 http://httpunit.svn.sourceforge.net/httpunit/?rev=923&view=rev Author: wolfgang_fahl Date: 2008-04-19 02:57:56 -0700 (Sat, 19 Apr 2008) Log Message: ----------- improved Removed Paths: ------------- trunk/httpunit/doc/release_notes.txt Deleted: trunk/httpunit/doc/release_notes.txt =================================================================== --- trunk/httpunit/doc/release_notes.txt 2008-04-19 09:54:19 UTC (rev 922) +++ trunk/httpunit/doc/release_notes.txt 2008-04-19 09:57:56 UTC (rev 923) @@ -1,1342 +0,0 @@ -HttpUnit release notes - -Known problems: - 1. The "accept-charset" attribute for forms is ignored; the page content character set is used to encode any response. - This behavior matches that currently used by IE and Navigator. - 2. Defining a form parameter with the same name or ID as a JavaScript Form function will cause that function not to - be callable. - -Limitations: - 1. JDK 1.4.2 or higher is required - 2. JavaScript support does not include some DOM properties - 3. The JavaScript assignment Document.cookie= does not restrict the cookie by path and domain - 4. Only table cells and explicit paragraphs are recognized as text blocks - - -Revision History: -================= - - -14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal -06-Apr-2008 bugfix 1110071: cannot increase length of a select control - -1.7 Bug fixes and patches from 2007-12 to 2008-04: for a full subversion log you might want to issue the subversion command: - svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit - The following list of changes has been extracted from this subversion log automatically. You might want to look at - http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=920 - inserting the revision number mentioned below to see the full details of each change. E.g. the details for - (r788) can be found at - http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=788 - - - 1. improved index out of bounds handling for options (r786) - 2. made some controls public (r787) - 3. ServletUnitHttpRequest.getDateHeader() always "returns -1"?Date sent: Wed, 19 Dec 2007 11:17:36 -0700by Yu Chen (r788) - 4. ServletUnitHttpRequest.getDateHeader() always "returns -1"?Date sent: Wed, 19 Dec 2007 11:17:36 -0700by Yu Chen (r791) - 5. Fix for 1705925 (r792) - 6. new tests and some comments (r793) - 7. proposed patch 1152036 - not enabled (r794) - 8. comments for some suggestions (r795) - 9. fixed for abstract setProxy (r796) - 10. [ 844084 ] Block HTTP referer added (r797) - 11. IBM Websphere https protocol support (r798) - 12. [ 1520925 ] SSL patch (r799) - 13. [ 1371208 ] Patch for Cookie bug #1371204 (r800) - 14. new package plus tests (r801) - 15. extended TestSuite (r802) - 16. new tests (r803) - 17. BR 1843978 (r804) - 18. javadoc (r805) - 19. 1.6.3. prep (r806) - 20. patch 18386699 (r807) - 21. pending patch 1155792 (r808) - 22. deactivated test and deprecated function for Patch [ 1838699 ] (r809) - 23. svn (r810) - 24. 885326 checked but no go (r811) - 25. SR 1288796 (r812) - 26. test for Patch 1838699. (r813) - 27. Patch 1531005. (r814) - 28. 1518901 (r815) - 29. patch 1443333 and some improved javadoc (r816) - 30. [ 1333390 ] patch for bug 1277797 (r817) - 31. update website definition to point to subversion repository, list Wolfgang as committer (r818) - 32. fix Wolfgang's email address (r819) - 33. test proposal for Patch 1653410 (r820) - 34. added test for iFrame problem (r821) - 35. some refactoring (r822) - 36. added stub for testCreateElement (r823) - 37. debug of java.net.MalformedURLException problems (r824) - 38. improvements by Mark Childerson as mailed inMessage-ID: <E1J...@ma...> (r825) - 39. PseudoServer enhancements: better debug messages, handle request timeout (r826) - 40. isEclipse added (r827) - 41. error handling improved (r828) - 42. javadoc and error handling (r829) - 43. setProxy fix (r830) - 44. comment (r831) - 45. null handling for openNewWindow (r832) - 46. Scriptable interface (r833) - 47. 1864072 patch by Matt (r834) - 48. patch 1653410 added (r836) - 49. event and onchange parts of patch 1653410 (r837) - 50. patch 1415415 added (mime types for tiff and pdf) (r838) - 51. patch 884146 + refactoring around handling events (r839) - 52. patch 1030851 by Jord Sonneveld - jsonneve (r840) - 53. inspired by Ville Skytt?\195?\164's patch[ 1065881 ] Fix servlettest classpath (r841) - 54. new interface (r842) - 55. patch [ 1117822 ] Patch for purgeEmptyCells() problemby Glen Stampoultzis (r843) - 56. patch [ 1211154 ] NekoDOMParser default to lowercase by Dan Allen (r844) - 57. patch [ 1155415 ] Handle redirect instructions which can lead to a loop by james abley (r846) - 58. patch [ 1155415 ] Handle redirect instructions which can lead to a loop by james abley (r847) - 59. bug [ 1159844 ] allow parsing intercepted pages into HTMLSegment objectswith patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages)by Rafal Krzewski (r848) - 60. [ 1159887 ] patch for RFE 1159884 by Rafal Krzewski (r849) - 61. testcase for https://sourceforge.net/forum/message.php?msg_id=4482660by kauffmann81 (r851) - 62. test for https://sourceforge.net/forum/message.php?msg_id=3485431 (r852) - 63. tried to change the url encoding for spaces - did not succeed (r853) - 64. [ 1176688 ] Allow configuration of neko parser propertiesbut feature switched off since the test cases don't work then (r855) - 65. patch [ 1235132 ] Getter support for javascript form.nameby Peter Phillips + make it work for DOM engine (r856) - 66. [ 1246438 ] For issue 1221537; ServletUnitHttpRequest.getReader not implby Tim (r857) - 67. patch [ 1323053 ] Patch for 1323031 by Hugh Winkler (r858) - 68. [ 1488617 ] alternate patch for cookie bug #1371204by Richard Lee (r859) - 69. tests and start of implementation for [ 1870946 ] getAttribute function support in HTMLElement (not fixed yet so switched off for old scripting engine) (r860) - 70. bug report [ 1895501 ] Handling no codebase attribute in APPLET tagchange default from "/" to "." meaning from root directory to current directory (r861) - 71. comment modified (r862) - 72. [ 1672385 ] HttpOnly cookie looses all cookie info (r863) - 73. test for bug report [ 1533762 ] Valid cookies are rejectedby Alexey Bulat but unfortunately patch does not work (r864) - 74. test case for [ 1508516 ] Javascript method: "undefined" is not supported- works ! (r865) - 75. test and analysis for javaScript cloneNode feature asked for by Mark Childerson according tohttp://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html (r866) - 76. feature request [ 796961 ] Support indirect invocation of JavaScript events on elementsby David D Kilzertest added - works with no change to code (r867) - 77. Bug report [ 1124057 ] Out of Bounds Exception should be avoidedby Wolfgang Fahl of 2005-02-16 17:25 (r868) - 78. Test for bug report [ 1124024 ] Formcontrol and isDisabled should be publicby Wolfgang Fahl 2005-02-16 16:39 (r869) - 79. inspired by e-mail Execute Javascript of span elementof 2008-04-01 by Christoph (r870) - 80. bug fix for bug [ 1289151 ] Order of events in button.click() is wrong (r871) - 81. patch from bug report [ 1264704 ] [patch] add parent exception to HttpException by fabrizio giustina (r872) - 82. fixed after comment from Mark (r873) - 83. new NekoHtml 1.9.6 parser - please note one test failing:testJavascriptDetectionTrick (r874) - 84. test for [ 1396877 ] Javascript:properties parentNode,firstChild, .. returns nullby gklopp 2006-01-04 15:15 (r875) - 85. test for bug report [ 1153066 ] Eternal loop while processing javascript by Serguei Khramtchenko 2005-02-27 (r876) - 86. test for bug report [ 1295782 ] Method purgeEmptyCells Truncates Table by ahansen 2005-09-19 22:47no fix necessary anymore - already patched (r877) - 87. comments for patch 1509117 (r878) - 88. [ 1281655 ] [patch] allow text/xml to be parsed as htmlby fabrizio giustina made available static accessor for validContentTypes in WebResponse (r879) - 89. developers and release notes (r880) - 90. Bug report by Adam Hardy via developer Mailinglistof 2008-04-02 to avoid java.lang.IllegalAccessException: Class org.apache.tiles.access.TilesAccess can not access a member of class com.meterware.servletunit.ServletUnitServletContext with modifiers "public"when working with Tiles (r881) - 91. partially disabled noscript detection trick test, pending nekoHTML bugfix (r882) - 92. [ 1035949 ] NullPointerException on Weblink.clickby Ute Platzerhistoric (r883) - 93. patch for [ 1476380 ] Cookies incorrectly rejected despite valid domainby Garrick Toubassi (r884) - 94. [ 1052037 ] Semicolon not supported as URL param delimiterby Lucano fix yet only comments (r885) - 95. test for bug report [ 1161922 ] setting window.onload has no effectby Kent Tong - no fix necessary (r886) - 96. fix for bug report [ 1165454 ] ServletUnitHttpRequest.getScheme() returns "http" for secureby Jeff Mills getScheme now returns _protocol (in lowercase) gotten from the URL of the request. Test will throw java.net.MalFormedURLException / unknown protcol for "ftps" which is considered expected at this time (r887) - 97. [ 1281655 ] [patch] activated by chaning testTraversal (r888) - 98. [ 1629836 ] Anchor only form actions are not properly handledby Claude Brisson can not reproduce - testcase runs (r889) - 99. [ 1055450 ] Error loading included script aborts entire requestby Renaud Walduraworks already with 1.6.2 (r890) - 100. comment for bug report [ 1060291 ] setting multiple values in selection list by Vladimirthat the existing testMultiSelect seems to fit (r892) - 101. test case for bug report [ 1151277 ] httpunit 1.6 breaks Cookie handling for ServletUnitClientby Michael Corumruns without change (r896) - 102. trying to check [ 1113728 ] getRealPath throws IndexOutOfBoundsException on empty stringby Adrian Bakerhad to comment out again (r898) - 103. bug report [ 1396835 ] Javascript : length of a select element cannot be increasedby gklopp + patch (r899) - 104. bug report [ 1119205 ] EOFExceptions while using a Proxypatch by Ralf Bustset to pending in tracker - the patch does not break any testbut there is no unit test for the difference of the two implementations yet (r901) - 105. test for [ 1396896 ] Javascript: length property of a select element not writableby gklopp modified impl to throw "Not implemented exception"Modal test case for new Dom Scripting Engine (r902) - 106. patch for bug report [ 1264706 ] [patch] replace ClasspathEntityResolverput into comment (r903) - 107. test for bug report [ 1215734 ] another <select> problemby alexpatched the IllegalParameterValueException to but options in quotes to better show the "Kent, Richard" culpritshowed that tab and space could also lead to a problem (r904) - 108. test for the bug reports [ 1216567 ] Exception for large javascriptsby Grzegorz Lukasik and bug report [ 1572117 ] ClassFormatErrorby Walter Meierset quicktest to false to run the test for scripts froma thousand to a million lines for optimization levels from -2 to 9 (will take approx 30 secs)patch: new function:HttpUnitOptions.setJavaScriptOptimizationLevel(optimizationLevel);with default optimization level of -1 (interpret) (r905) - 109. test for open bug report [ 1043368 ] WebTable has wrong number of columnsby AutoTestadded and disabled (warning only) (r906) - 110. Formtable test added and added warnDisabled generalization for some tests (r907) - 111. Id keyword property set where missing (r908) - 112. Bug report [ 1122186 ] Duplicate select with same name cause errorfixed by changing constructor for IllegalParameterValueException and getting bad value in a separate function - may later also be used to fix the ClasscastException problem when a double is in the list of values (r909) - 113. should fix class cast exception for which we are waiting for junit test (r910) - 114. test for bug report [ 1143757 ] encoding of Special charcters broken with 1.6by Klaus Halfmannworks with no change (r911) - 115. bug report [ 1156972 ] isWebLink doesn't recognize all anchor tagsby fregienjnot patched yet and used warnDisabled until decision whether all <area> and <a> nodes are to be considered WebLinks no matter whether they have hrefs or not (r912) - 116. test for bug report [ 1159810 ] URL encoding problem with ServletUnitby Sven Helmberger addedis a duplicate of the other encoding bug and works (r913) - 117. bug #1110071: javascript cannot increase length of a select control (r914) - 118. Parse chunk lengths as hex (r915) - 119. test for Bug Report 1937946 added (but disabled for HttpUnitSuite since it needs index.html on localhostconvenience addition to be able to test this bug report on a Mac (r916) - 120. bug report (actually a feature request) 1942454 Make ServerInfo a constantby Philip Helger (r917) - 121. fix for Bug report 1212204 by Brian Bonner (r918) - 122. [ 1222269 ] Cannot setEntityResolver on ServletRunnerjim - jafergusadd another constructor for ServletRunner as requested (r919) - - 5-Jul-2007: - Notes: The PostMethodWebRequest.setMimeEncoded method has been removed. Mime encoding, if desired, should now be - specified when constructing the object. - -28-Jun-2007: - Notes: WebLink.click() now only returns the contents of the frame containing the link. Previously, if there was no - event involved and the link included a frame reference, it would return the contents of the referenced frame. - -26-Dec-2006: - Additions: - Content and Parsing: - 1. Basic authentication now can support authorization only after challenge and different passwords for - different realms. - 2. Added support for rudimentary (RFC 2109) digest authentication. - - 1-Dec-2006: - Additions: - Content and Parsing: - 1. Added "overrideContextType" property to ClientProperties to permit handling of files served with the - wrong content type. -26-Nov-2006: - Notes: HttpUnit has been moved to subversion at http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit - -31-Mar-2006: - Additions: - PseudoServer: - 1. Added WebResource.suppressAutomaticContentTypeHeader to permit generation of responses without the - Content-Type header. - -28-Mar-2006: - Notes: - 1. The build now uses the ant-dependencies task (see http://www.httpunit.org/doc/dependencies.html) rather than - keeping the dependent jars in cvs. - -27-Mar-2006 - Additions: - Content and Parsing: - 1. Created a custom HttpUnit DOM - -27-Mar-2006 1.6.2: - Acknowledgements: - Thanks for Fabrizio Giustina for suggesting a way to make the TableRow object publically accessible. - - Problems fixed: - 1. bug #1063494 HTML entity replacement was looping indefinitely on strings with '&' and no ';' - 2. ServletContext.getRealPath() now handles relative paths that do not start with a "/" - - Additions: - 1. patch #1413171 Web table rows are now directly accessible in a TableRow element. - 2. Added support for Servlet API 2.4 - 3. Implemented ServletContext.getServletContextName - 4. (PseudoServer) made HttpRequest class public - - 6-Mar-2005 1.6.1 - Acknowledgements: - Thanks to Hanson Char for identifying a JDK 1.5 incompatibility. - Thanks to Satish Kolli for fixing bug #1040770 - Thanks to Fabrizio Guistina for supplying an implementation of locale handling for ServletUnitHttpResponse - Thanks to Vladimir Korenev for providing an implementation for style.visibility, element.tagName, and element.nodeName - Thanks to Yaqoub Jaiousi for identifying the problem with buttons outside of forms. - - Problems fixed: - JDK compatibility - 1. bug #1039989 Did not compile with JDK 1.3. This bug was introduced in HttpUnit 1.6 and has now been corrected. - 2. Renamed local variables which conflicted with new JDK 1.5 keyword "enum." - - Content and Parsing - 3. bug #1046597 tables nested inside paragraphs were not being seen by the enclosing page. This bug was introduced - in 1.6 and has now been corrected. - 4. bug #1074232 buttons outside of forms were only recognized if defined with the <button> tag, not <input> - - Window handling - 5. bug #1035949 Following a link from the top frame to a _parent target no longer results in a NullPointerException. - - JavaScript - 6. bug #1040508 Using the setCheckbox and toggleCheckbox methods was not triggering the onclick event - 7. bug #1040770 the Image.name JavaScript property is now supported - 8. bug #1047367 frames defined by javascript were not being detected. - 9. patch #1046516 property style.visibility is now supported - 10. bug #1073810 a null pointer exception is no longer thrown when javascript sets a control value to null - 11. bug #1052779 window.open() with javascript URL no longer throws a null pointer exception or class cast exception - 12. bug #1087180 setting a numeric value into a form parameter was appending a trailing decimal zero - - ServletUnit - 13. bug #1044820 ServletUnit now implements HttpServletResponse.getLocale() and setLocale() - 14. bug #1051123 ServletUnit handling of parameter encoding was not cleaning up url-encodings - 15. bug #1151277 only the first user-defined cookie was recognized in ServletUnit if multiple were set - - PseudoServer - 16. Made all WebResource constructors public - - -3-Oct-2004 1.6 -Acknowledgements: - Thanks to Chris Hane for making it easier to add support for javascript properties and for providing support for - getAttribute() to handle any property defined in the underlying Node. - Thanks to Patrick Lightbody for adding JavaScript support for the Style object - Thanks to Phil Zampino for finding a fixing a problem in PseudoServer's handling of very long requests. - Thanks to Andrew Bickerton for adding the following JavaScript support: - Form.length - returns the number of controls in a form - Control.type - returns a test description of the control type - Control.defaultValue - returns the default value for text controls - Initial page tokenizing now skips JavaScript while looking for header tags - Writing into an empty frame no longer corrupts all empty frames - Thanks to Jarom Smith for finding some typos in the tutorial. - Thanks to Jay Dunning for providing an implementation of HttpServletResponse.containsHeader - and implementing support for ServletContextListeners. - Thanks to Fabrizio Giustina for adding an entity-resolver to support local use of ServletUnit with a regular web.xml - Thanks to Kazuaki Matsuhashi for correcting the handling of non-Latin link parameters - Thanks to Dan Frankow for supplying an implementation of ServletContext.getMimeType and correcting the - implementation of HttpSession.setAttribute when the value is null - Thanks to Guillaume Dandurand for supplying code to get the onload event when the page - is a frameset rather than a regular page. - Thanks to Michael Corum for making the Button.disabled property settable from JavaScript. - Thanks to Darrell DeBoer for providing a patch for select box functionality - Thanks to Bart Vanhaute for finding a fixing an infinite recursion problem with frame loading. - Thanks to Dave Brosius for adding hashCode to Cookie and QuerySpec - -Additions: - Content and Parsing - 1. rfe #766768: getText() methods now translate <br> tags as newlines. - 2. rfe #901172: content-types "text/xhtml" and "application/xhtml+xml" are now recognized as valid HTML - 3. rfe #974791: WebForm now supports submitNoButton to submit a form without any of its buttons. This permits - testing of server response to a Javascript-style submit without using JavaScript. - 4. rfe #986876: The WebClient.addCookie method has been deprecated, since its behavior is actually a bit confusing - and replaced with "putCookie" allowing subsequent the replacement of a cookie value defined by a previous - call to "putCookie." - 5. patch #1026566 The Cookie class now implements hashCode properly. - 6. patch #879193: The name of a select box may now be treated as an array of options. - 7. patch #879193: Select now behaves as a multiselect listbox if it has size > 1 or if multiple is set and the size is not set to 1. - 8. Patch #795698: HTMLElement now supports a getAttribute method to return the value of any named attribute. - 9. WebResponse and TableCell now support getElementsWithAttribute to return all contained HTML elements - with a specified attribute. - 10. setCheckbox() and toggleCheckbox() have now been expanded to select one of a group of checkboxes by specifying - its name. - 11. WebForm now supports the newUnvalidatedRequest method, which should be used in preference to - HttpUnitOptions.setParametersValidated( false ). This creates a web request copied from the form - but not tied to it, so that parameters can be set without validation. - 12. Enhanced http logging to show target server, request header line, and received URL - 13. HTMLElement now supports a getText() method to return the text contents of any element - 14. WebResponse now supports getTextBlocks and getFirstMatchingTextBlock to retrieve headers and paragraphs from a page. - 15. HttpUnit now catches an attempt to load an included script from a page included with "getResource" rather than - "getResponse." - 16. Click positions on image buttons may now be specified using one of: - form.submit( button, x, y ) - button.click( x, y ) - 17. Added preliminary support for lists - 18. Added convenience method setParameter( String, File ) to simplify file uploading - 19. A username and password may now be specified when accessing a proxy server. - JavaScript - 20. Added support for javascript Input.tabindex and Text.maxlength properties (read-only) - 21. Added support for javascript HTMLElement.style property - ServletUnit - 22. Patch #890995 - Implemented ServletUnitHttpResponse.containsHeader - 23. Patch #890936 - Added ServletContextListener support - 24. Added HttpSessionListener support - 25. Added support for ServletContextAttributeListener and HttpSessionAttributeListener - 26. Added support for filters - 27. rfe #909922: ServletUnit now supports HttpServletRequest.getHeaders - 28. patch #915296: Local copies of the 2.2 and 2.3 web.xml dtds are now consulted if specified, - rather than connecting to the Sun website. - 29. ServletRunner now takes a reference to a web.xml as a File object in its constructor. - 30. ServletRunner and ServletUnitClient now support a getSession() method to return the HTTP session to be used - by the next request or modified by the last request. - 31. ServletUnit now implements HttpSession.getServletContext(). - PseudoServer - 32. PseudoServer now pools its ServerSocket's in order to be more gracious regarding system resources. Pooling can - be controlled via the properties: socketReleaseWaitTime and waitThreshhold. - 33. PseudoServer can now received chunked requests, and will not send a "Content-Length" header if a - "Transfer-Encoding: chunked" has been defined. - 34. PseudoServer now accepts a full http URL to permit testing of interaction with proxy servers. - -Problems fixed: - Documentation - 1. bug #804585: the javascript documentation referred to the old location of the - getNextAlert and popNextAlert methods - 2. bug #804559: unimplemented links have been removed from the incomplete user manual. - 3. A number of typos in the tutorial have been corrected - Content and Parsing - 4. bug #978770 Clicking on a button outside of a form is now supported - 5. bug #838947 Document.getElementById now returns null if no such element exists - 6. bug #957882: URL path elements containing leading '.' were being stripped of those periods. - 7. bug #830856: WebLink URLs broken across lines are now handled correctly - 8. bug #805921: WebForm.selectImageButtonPosition was misleadingly public and should not have been used. - It has been made package-private, and new means are provided to submit positional image buttons (see additions). - 9. bug #982097: http urls being used as request parameters were being mangled - 10. bug #803041: HTML entity & now recognized in refresh URL tag - 11. bug #803095: Absolute URLs now supported in refresh URL tag - 12. bug #986397: Subframe included fragments in their source attributes now ignore those fragments when generating requests. - 13. bug #990914: WebFrame scriptables are now accessible by getElementById - 14. patch #995853: decode link parameters based on page character set - 15. When a form has no action specified and its URL contains parameters whose names match those of parameters - in the form, the form values are used instead. - 16. Slashes in URL parameters were being misinterpeted as navigation - Request handling - 17. The HeadMethodWebRequest was actually sending the GET method, as was any HeaderOnlyWebRequest. - 18. bug #964940 The Referer header was not being sent again if the original request was redirected - 19. bug #974380 When using a DNS listener, host header no longer includes ':-1' if the port is not specified - 20. bug #1032440: An explanatory exception is now thrown on an attempt to use a mailto: URL in a form submission - Cookie handling - 21. bug #873169 - Cookie headers were generated with no space after the semicolon (unlike IE, Netscape, and Mozilla) - 22. Cookie domains without leading dots are now accepted, as per RFC 2965. - 23. bug #1025968: Cookies with max-age attribute will now expire (max-age=0 is treated as immediate expiration) - Frame handling - 24. bug #737167: Nested frame names are now as specified, previous included names of parent frames. - 25. Return from a request that wrote to a new frame is now the result of that request, was the original page. - 26. Return from a request specifying an unknown frame now opens a new window; previously created a subframe - in the requesting window. - 27. bug #1029139: infinite recursion in frameset page when a frame has src="#" - JavaScript - 28. A frameset 'onload' event is now invoked after all of its subframes have been loaded - 29. HttpUnit no longer complains about not being able to find the Rhino jar (js.jar) if scripting is disabled - before any pages are read. - 30. bug #823433: document.cookie now defaults to the empty string, like IE and Mozilla, rather than null - 31. Using JavaScript to write into an empty frame could change all empty frames to the same value - 32. Window.open() using an empty name was replacing the main window rather than creating a new one. - 33. Patch #812709: Support JavaScript changing "disabled" attribute on Buttons - 34. bug #861866: Support JavaScript changing "disabled" attribute on form controls - 35. Forms defined after a <script> section which accessed document.forms would not be found if document.forms - was also accessed in a subsequent <script> section after the new form definition. - 36. bug #974675 Javascript function Window.open did not honor "_self" tag for window name. - 37. bug #960307 meta tags within <noscript> tags were not being ignored when scripting was disabled - 38. bug #959918: Javascript setting of numeric values included trailing zeros after the decimal point. - 39. bug #1013045: Form, Link, and Image id tags are now recognizable from JavaScript where a name tag would be - ServletUnit - 40. ServletUnit now applies character encoding in interpreting post parameters - 41. Patch #873911: ServletContext.getMimeType is supported - 42. Patch #873914: HttpSession.setAttribute( name, null ) now properly removes the named attribute - 43. bug #872129: Cookie header set on a web request was ignored in servletunit - 44. HttpServletRequest.getCookies() method was only returning the first cookie defined in the request - 45. bug #1034067: ServletConfig.getServletName now returns the name specified in web.xml for registered servlets. - PseudoServer - 46. PseudoServer now supports any method handled by a PseudoServlet. Previously, it only handled GET, POST, and PUT. - It is simply necessary to override the getResponse method to make this work. - 47. PseudoServer would hang when sent a very long request. - - Notes: - 1. Upgraded NekoHTML to 0.9.1 - 2. Upgraded Xerces to 2.4.0 - 3. Upgraded Rhino to 1.5R4.1 - - -21-Aug-2003 1.5.4 -Acknowledgements: - Thanks to David D. Kilzer for: - creating thorough tests for URLs containing navigation and showing a way to handle them, and - submitting the WebLink.MATCH_TEXT predicate. - Thanks to Lloyd McKenzie for finding a problem with listing cookie names and suggesting a fix. - Thanks to Brian O'Kelley for supplying a way to disable use of the proxy server. - -Additions: - Content and Parsing - 1. WebResponse and TableCell now support getElementsWithName and getElementNames to look up HTML elements. - 2. Form.getOptions() now works for radio buttons and checkboxes - as long as the desired name is located after the control. - 3. rfe #723895: A new class CookieProperties now supports relaxing cookie matching rules for path, domain, or both. - 4. It is now possible to define a CookieListener on CookieProperties to watch for cookie rejection events - 5. rfe #751505: Add clearProxyServer() to disable the use of the proxy server - 6. rfe #744360: Added getFirstMatchingForm and getMatchingForms() methods to WebResponse and HTMLSegment - 7. rfe #756453: Made Button.isDisabled() method public - 8: rfe #717752: Added WebLink.MATCH_TEXT predicate to match link text exactly - 9. rfe #721424: You can now set checkbox values in a form via: setCheckbox(name,boolean) or toggleCheckbox(name). - These methods will throw an exception if the specified parameter is not a checkbox or if more than - one control has the name. - ServletUnit - 10. JUnitServlet now supports a value of 'xml' for the format parameter, generating a format compatible with - ant's XMLResultFormatter - 11. You can now get the value of context parameters from a ServletRunner via the getContextParameter method - PseudoServer - 12. PseudoServer now permits setting the maximum protocol level. If it is 1.0, all responses will be forced to - HTTP/1.0 no matter the protocol of the request. - -Problems fixed: - Content and Parsing - 1. bug #717280: URLs with "../" in them were not resolved properly - 2. bug #717640: <base> element was not being handled in the case when no host was specified. - 3. When setting a selection control, HttpUnit would always select a value matching its first option if possible, - rather than taking the first valid value. - 4. bug #722788: WebForm.submit() was not invoking the 'onClick' event of the specified submit button. - 5. bug #721989: scripts did not see id attributes of form controls. - 6. bug #741965: cookies with explicit domain attributes are being rejected when their host is of the form HD - where D is the explicit domain attribute and H contains a dot. Apparently, most browsers ignore this - rule. Now, so does HttpUnit, if CookieProperties.setDomainMatchingStrict( false ) is called. - 7. bug #750846: Cannot retrieve all cookie names when both global and site-specific cookies are defined. - 8. gzip'ed responses were sometimes truncated. - JavaScript - 9. bug #734133: javascript: URLs were ignored if "javascript:" is not all lower case. - ServletUnit - 10. bug #744214: ServletUnit does not recognize subframes - - 4-Apr-2003 1.5.3 -Acknowledgements: - Thanks to Andrew Bickerton for: - correcting the handling of document.open for non-HTML pages and new pages with base tags, - correcting the document.write append problem, - identifying the javascript parent frame update problem and suggesting a fix, and - showing how to handle responses with content-length 0. - Thanks to Brendan Boesen for: - adding a method to access session IDs in ServletUnitContext, and - correcting the session invalidation problem. - Thanks to Daniel Jasmin for fixing the handling of applet loading from archives. - Thanks to Mark Luty for supplying a test for the getElementsByName function. - Thanks to Ron Webster for designing the new HttpUnit logo. - Thanks to Sergey Bondarenko for supplying a test for getElementsByTagName - Thanks to George Murnock for adding WebResponse.getMatchingTables() - -Problems Fixed: - Content and Parsing - 1. Bug #700889: Under certain cases, multiple <script> sections in a document caused a problem where - only those HTML elements defined before the first one were actually available to the scripts. - 2. Bug #709979: Select.selectedIndex was returning -1 for a normal select box with no options explicitly selected. - 3. calling Document.open() on a non-HTML page no longer throws an exception. - 4. Rewriting a document now properly handles any <base> tags in the new document. - 5. Applets were not loading properly from applets if a codebase was specified in the <applet> tag. - 6. When loading a page triggered a script function which redirected to a new page in the same frame, - the WebResponse returned from getResponse was the triggering page. It is now the redirected page. - 7. HttpUnit now handles refresh headers without explicit URLs, defaulting to refreshing the containing page. - 8. HttpUnit was delaying until a timeout when a zero-length response was received - JavaScript - 9. calling document.write on a closed document was appending to rather than replacing its contents. - 10. Following a javascript link which updated a parent frame via manipulating the location was causing a 'NoSuchFrame' - exception to be thrown. - 11. HttpUnit was chopping off javascript urls if they contained a '#' character. - ServletUnit - 12. The Content-Length header was not being sent with requests. - 13. HttpServletRequest.getIntHeader() always returned -1. - 14. ServletUnit was creating a new session if the current one was not valid, even if "create" was not specified. - 15. ServletUnit had not implemented HttpServletRequest.getContentLength(); - 16. ServletUnit had not implemented HttpServletRequest.getURL(); - 17. ServletUnit was always supplying a charset parameter in the returned Content-Type header, even when not requested. - -Additions: - Content and Parsing - 1. WebResponse and TableCell now have getMatchingTables to return all tables matching the specified criteria. - JavaScript - 2. <noscript> nodes in the body of a page now show their content if a <script> earlier in the page is not recognized. - 3. Select.value is now supported. - 4. Added WebForm.getButton() method using HTMLPredicate to permit more generalized button searches. - 5. Document.getElementsByName is now supported - 6. Added support for getElementsByTagName to Document and Form - ServletUnit - 7. You can now get at the stored session IDs in ServletUnitContext. - 8. ServletUnit now supports HttpServletRequest.getRequestDispatch() - PseudoServer - 9. PseudoServer now handles persistent connections. - Extensibility - 10. ClientProperties now supports a listener which allows for the override of DNS mapping, allowing a client - to supply an actual IP address for a host programatically. The original Host header will be retained. - 11. Added format parameter for JUnitServlet: values are "text" or "html" - -Notes: - 1. The acceptCookies, acceptGzip, autoRefresh and autoForward properties have been moved from HttpUnitOptions - to ClientProperties, permitting them to be set per WebClient rather than just globally. The old properties - have been deprecated, and now access the defaults for ClientProperties. Tests which set the HttpUnitOptions - properties before creating their WebClients will be unaffected. - - - 3-Mar-2003 1.5.2 -Acknowledgements: - Thanks to John Sinclair for noting the lack of line breaks in manifest.mf and proposing a fix - Thanks to Bernhard Wagner for simplifying some string comparison code in ParsedHTML and WebTable - Thanks to Bernhard Wagner for adding some parser customization code. - Thanks to James Howe for noting the mispelling of the getElementById method - Thanks to Alex Beggs for noting the mishandling of non-JavaScript scripts and providing a test case. - Thanks to Navid Vahdat for ServletUnit fixes for invalid session handling and request dispatcher paths - Thanks to Daniel Sheppard for identifying a problem with meta refresh tags. - Thanks to Daniel Sheppard for correcting the return status for HttpServletResponse.sendRedirect - Thanks to Daniel Sheppard, Navid Vahdat, and Ron Hanson for help in adding capabilities to the RequestDispatcher implementation. - Thanks to Ron Hanson for catching the obsolete behavior of HttpServletRequest.setAttribute. - Thanks to Raphael Corre for improving logging of transmitted headers - Thanks to Jason Bedell for supplying an implementation for HttpSession.getValueNames. - Thanks to Jianqin Qu for finding the getTableStartingWithPrefix bug when using NekoHTML - Thanks to Scott Fleischman for providing tests for missing frame handling functionality - Thanks to Artashes Aghajanyan for implementing error reporting for the NekoHTML parser - -Problems Fixed: - Packaging - 1. The manifest.mf file now has line breaks between properties - Content and Parsing - 2. get...WithID was incorrectly doing case insensitive matches. It is now case-sensitive, since that is the way - the ID attribute is defined. - 3. Forms prematurely closed because of improper nesting will now contain any controls defined before the next form. - 4. Quotes in refresh URL meta tags are now recognized and stripped. - 5. Headers defined per request were not being logged - 6. WebResponse.getTableStartingWith and getTableStartingWithPrefix was trying to match newline characters when - using the NekoHTML parser. - JavaScript - 7. Bug #680695: Button.click() is now supported. - 8. Bug #680695: Form control ids are now usable to locate components. - 9. Scripts marked as something besides JavaScript are now ignored. - 10. Calling document.close() in the middle of an immediate script no longer replaces the current page. - 11. Opening a non-HTML window via Javascript no longer raises a NotHTMLException. - ServletUnit - 12. Included and forwarded servlets now inherit parameters from their calling servlet. - 13. Included servlets now have access to their path information as attributes, as per the spec. - 14. Forwarded servlets now have access to their path information from the standard request methods, as required. - 15. All servlets within a web application now share the same instance of ServletContext, permitting attributes - set by one servlet to be visible to other servlets. - 16. ServletUnit now creates a new session if the requested session exists but is marked invalid - 17. ServletUnit was interpreting the getRequestDispatcher path as an absolute path. It now correctly treats it - as relative to the context root. - 18. ServletUnit now supports HttpSession.getValueNames(). - 19. Calling HttpServletRequest.setAttribute in ServletUnit no longer throws an IllegalStateException if the value - had previously been defined. - -Additions: - Content and Parsing - 1. You may call HTMLParserFactory.setPreserveTagCase and setReturnHTMLDocument to control whether the parser coerces - the case of tags and attributes or returns a HTMLDocument object, respectively. - 2. HTMLParserFactory now supports methods to explicitly select the parser without playing with the class path. - This includes support for additional parsers not bundled with HttpUnit. - 3. WebResponse and TableCell now support the getElementWithID method, which returns any supported HTMLElement, - given its ID. Supported HTMLElement objects include WebForm, WebLink, WebTable, WebImage, WebApplet, - FormControl, TableCell, and TableRow. - 4. Added getFragmentIdentifier() to WebRequestSource (parent of WebLink, WebForm, and WebImage) - 5. Added support for <iframe> tag. IFrames work just like regular frames, except that they are embedded in a response - without a <frameset> tag. IFrame support is controlled by the ClientProperties.iframeSupported property. - 6. WebForm.isHiddenParameter returns true if all parameters with the specified name are hidden - 7. Frame handling is now more flexible, searching within a window for a target frame rather than just below the source frame. - 8. HTMLParserListeners and parser warnings now work with the NekoHTML parser. - JavaScript - 9. All HTML elements with id attributes are now accessible - 10. The Form.target property is now supported - 11. Added support for document.getElementById - ServletUnit - 12. ServletUnit now handles https requests, marking them as "secure." - 13. ServletUnit now supports HttpServletResponse.flushBuffer() - 14. InvocationContext now supports include and forwarded servlets: calling pushIncludeRequest or pushForwardRequest - updates the servlet, request, and response properties of the context so that subsequent calls can be done from - the dispatched servlet. Calling popRequest reverts to the dispatching servlet. - 15. ServletUnit now loads and initializes servlets specified with the <load-on-startup> element. - 16. HttpServletResponse methods reset(), resetBuffer(), and setBufferSize() are now implemented. - 17. ServletRunner.shutDown() will invoke the destroy() methods of any servlets which have been invoked - through that servlet runner. - 18. ServletUnit now supports HttpServletRequest.getHeaderNames - -Notes: - 1. Upgraded NekoHTML to 0.7.2 which no longer generates superfluous <form> tags. - 2. Removed a number of deprecated methods - - -18-Dec-2002 1.5.1 - -Acknowledgements: - Thanks to Geert Bevin for fixing a problem with comparing cookies - Thanks to Troy Waldrep for pointing out the non-standard Refresh header definition accepted in popular browsers - Thanks to Raul Benito Garcia for pointing out the problem with no-action forms accessed with URL parameters - Thanks to Larry Hamel for supplying an ant target to run Example.java - Thanks to Charles Mendis for finding the bug in the proxy support - Thanks to Michael McCallum for adding handling for bad character-set headers and an ant target to build the examples - Thanks to Neville Wylie for catching the top.parent and frame name index problems - -Problems Fixed: - Content and Parsing - 1. Adding both a "global" cookie and a server-based cookie with the same name caused a NullPointerException - 2. Simply removing the NekoHTML parser jar from the classpath was not enough to re-enable JTidy. Now it is. - 3. When a form obtained using parameters as part of the URL has no action, those parameters are now sent - as part of the form submission. - 4. Bug #635273 Proxy port always interpreted as port 80 due to typo - 5. As of 1.5, HttpUnit was not building if NekoHTML was not in the classpath. This is now fixed. - 6. Bad character-set headers from servers would result in an UnsupportedEncodingException. - 7. Bug #638406 Multi-line values in form data were using the platform-specific line ending rather than CRLF. - 8. HttpUnit now ignores empty parameters on form actions, as IE and Netscape do. - 9. Table <th> elements were being handled *after* <td> elements in the same row - 10. Bug #641687: when neither NekoHTML.jar or Tidy.jar is in the classpath, a class not found exception was thrown - - JavaScript - 11. Bug #638306 Document.writeln was writing the value "13" rather than CRLF as its terminator. - 12. Bug #638304 Interframe dependancies for JavaScript at load time were causing frame data not to be found. - 13. Bug #637208 Link.click() no longer returns null when an 'onClick' event fails to return true. - 14. The parent attribute of the top frame was returning null rather than the frame. - 15. Frame names used as indexes into the Window.frames array were not being recognized. - 16. The <base> tag was not being used to find included scripts - 17. Multiple form parameters with the same name were only being treated as an array if they were checkboxes; - otherwise, they were being ignored - this would result in a "undefined value has no properties" error message. - 18. Bug #644642: changes to form parameters made from immediate scripts were being discarded - -Additions: - Content and Parsing - 1. Added support for the Refresh header - 2. Added support for applet parameters and archives - 3. There is now an ant target to run the Example program. - - JavaScript - 4. Added support for the location.href property - 5. Added support for Document.open, Document.close, and Document.write / writeln for new documents - 6. The Rhino jar now includes a patch to improve error-reporting for unsupported DOM elements - 7. Added support for most subproperties of the Location object - mostly r/o, but some read/write - 8. Added support for Document.cookie - -Notes: - 1. Upgraded NekoHTML to 0.7.1 - - - 3-Nov-2002 1.5 -Acknowledgements: - Thanks to Ken Corbin for adding tests for disabled and read-only parameters. - Thanks to Geert Bevin for fixing a problem with generation of cookie headers that affects some servers. - Thanks to Richard Harris for adding support for the title attribute for links, - for adding the JavaScript Navigator.platform property, - for adding Javascript support for the Screen object, - for pointing out the value of retaining the same ScriptingEngine instance for a ScriptableDelegate, - for adding stubs for various unimplemented JavaScript Window properties. - and for finding a case where the handling of JavaScript comments was not working. - Thanks to Stefan Renz for describing the correct way to set up proxy servers in Java 2 and later. - Thanks to Troy Waldrep for help with the new handling of response statuses and messages. - and for fixing the JavaScript / HTML end-comment bug - Thanks to Andy Clark for help using the NekoHTML filter capability. - Thanks to EdA-qa mort-ora-y for findind and fixing the MIME-encoding bug - - -Notes: - 1. The NekoHTML parser is now supported. If it is present in the classpath, it will be used in preference to JTidy. - Note that NekoHTML is a much more forgiving parser than JTidy, properly handling a lot of bad HTML that JTidy - cannot. In addition, the Document class that NekoHTML creates is of type HTMLDocument. On the other hand, - the HTMLErrorListener is not currently supporting the NekoHTML parser, although such support will be added if - it is really needed. NekoHTML is the current preferred parser and will probably be required to support certain - JavaScript enhancements. Ultimately, it is possible that JTidy support will be dropped. - 2. The version of xerces now included in the distribution is 2.2, which is required for NekoHTML. - 3. The exception HttpServerNotFoundException has been removed. When no server is found, HttpUnit now throws the - standard exception: java.net.UnknownHostException - 4. The required jars are now included in the distribution, so it is not necessary to download them separately. - This was an oversight. - - -Problems fixed: - Content and parsing - 1. The cookie header was being generated with a space after each ";" separator. - 2. AuthorizationRequiredException was being thrown even when exceptions on error status was disabled - 3. A bad certificate on an https connection was incorrectly being flagged as a no-such-server exception. This - is fixed on JDK 1.4, due to a correct in the JDK. On previous versions of the JDK, HttpUnit is using a - workaround, which cannot detect the difference. - 4. Bug #626822 Controls without names are no longer sent as part of a MIME-encoded message - Internationalization - 5. When not using Latin-1 encoding, URL string characters *, _, and - were improperly being encoded - 6. Requests created by calling the web request constructors directly, rather than being derived from an HTML page - were always using the Latin-1 encoding, rather than the user-specified default encoding. - JavaScript - 7. Repeated requests for the same JavaScript domain objects returned new and different instances, thus - preventing identity tests. - 8. Under certain circumstances, the first line of a JavaScript section was being treated as though commented out. - 9. JavaScript ending with --> rather than the proper end-comment // --> was being treated as a syntax error - 10. When a JavaScript event resulted in submitting a request and bypassed the normal mechanism, WebForm.submit and - WebLink.click() did not return the changed page. - 11. Bug #618140 JavaScript access to the file submit control value was not working - ServletUnit - 12. ServletUnit was not supporting mappings for the default servlet. - 13. ServletUnit now explicitly specifies its locale for generating dates as Locale.US to comply with RFC-1123 - - -Additions: - Content and parsing enhancements: - 1. WebForm now supports 'isReadOnlyParameter' and 'isDisabledParameter' which allow checking of the state of a - particular form parameter. Note that if multiple controls exist with the same name, these methods only return - true when all such controls are read-only or disabled, as appropriate. - 2. RFE #614397 <input> parameters with unrecognized type fields are now treated as text fields. This appears - to match the behavior in most browsers. - 3. Links, forms, and images now have a readable title property. - - Web navigation enhancements: - 4. Following the "_blank" target now creates a new web window, with its own set of frames. Following links or submitting - forms will update the window from which the request originated. Requests may also now be initiated from an open window. - The list of open windows is a property of the web client. - 5. The mechanism for searching for tables has been expanded to permit arbitrary search criteria, similar to that - for links. - 6. WebClient now supports a WebWindowListener which will be called when a new window is opened or closed. - 7. Added WebWindow.getOpenedWindow() to return a window by its name. - 8. You may now close a window by calling window.close(). This will trigger any active listeners. If the window closed - the main window, another window will be promoted to that status. - 9. Added the HeadMethodWebRequest class to support HEAD method requests - - Security and state-management enhancements: - 10. The proxy server may now be specified by calling WebClient.setProxyServer. This should also ensure that the - correct authorization header is sent. - 11. Cookies are now restricted by their origin server, rather than being sent on every request. - 12. A new package com.meterware.httpunit.cookies, now exists to support the cookie functionality. - - Scripting enhancements: - 13. The navigator object now supports the readable 'platform' property. - 14. The screen object is now supported, with properties availHeight and availWidth - 15. Added support for Location.replace() - 16. Added support for Window methods: open(), and close() - 17. Added support for Window properties: closed, frames, name, opener, top, parent, and <subframe-name> - 18. Added do-nothing stubs for the Window properties and functions: moveTo(), focus(), setTimeout() - 19. document.write and writeln are now supported for processing a page while it is being loaded. This only - works if the default NekoHTML parser is being used. - - ServletUnit enhancements: - 20. RFE #585495 ServletUnit now supports HttpServletResponse.setContentLength. - 21. ServletUnit now implements HttpServletRequest.getLocale() and getLocales() - - - 2-Oct-2002 1.4.6 -Acknowledgements: - Thanks to Ville Skytt� for removing the test dependency on xerces. - Thanks to Donald Ball for pointing out the problem with the behavior of Select.selectedIndex. - Thanks to Jin Zhao for help in expanding the search possibilities for links. - -Problems fixed: - 1. An attempt to set a non-existent parameter now correctly throws NoSuchParameterException rather - than UnusedParameterValueException. - 2. Obtaining the URL from a javascript: request no longer throws MalformedURLException. - 3. Bug #604478 - setting the form action did not always update the predefined parameter list. This could cause a request - to be sent with the wrong URL parameters. - 4. Form, Image, and Link names are now properly treated as case-sensitive within Javascript. - 5. A Javascript URL containing a question mark was incorrectly being URL-encoded. - 6. HTML comments at the start of a JavaScript were not being completely ignored - 7. Disabled form parameters were being submitted with requests and could be modified by setParameter calls. - 8. Bug #617065: using Javascript to set an option in a drop-down box does not unset other options. - -Additions: - Content and parsing enhancements: - 1. When no response is received from a server, HttpUnit will now throw HttpServerNotFoundException, which is a - subclass of HttpNotFoundException. This should aid in diagnosing response failures. - 2. When a 404 (not found status) is received from a server, the accompanying message is now available - from HttpNotFoundException.getResponseMessage(). - 3. The mechanism for search for links has been expanded to permit arbitrary search criteria and to retrieve - either the first match or all matches. - 4. Some per-client properties are now stored in a per-client object. Each new web client is initialized from the - default, but may also be configured independently by retrieving the clientProperties object. - - Scripting enhancements: - 6. It is now possible to control the handling of script errors by calling HttpUnitOptions.setExceptionsThrownOnScriptError. - If the exceptions are not thrown, the error messages will instead be available via HttpUnitOptions.getScriptErrorMessages() - 7. The forms, images, links, and Form.elements arrays now handle string indexes - 8. Select.selectedIndex is now read/write. - 9. Link.href is now read-write. - 10. The Navigator object is now supported. - - -30-Aug-2002 1.4.5 -Acknowledgements: - Thanks to Steve Heath for an example on how to make JSPs work with ServletUnit. - Thanks to Rajan Narasimhan for fixing the relative URL computation problem. - Thanks to Sebastien Rosset for pointing out the case sensitivity problem with WebResponse.isHTML - Thanks to Hans-Joerg Hessmann for a faster algorithm for the table lookups - Thanks to Peter Royal for fixing the handling of query-only relative URLs and the IllegalStateException when - scripting is disabled. - Thanks to Michael Reardon for implementing the ServletUnit header method handling code and session.getAttributeNames - Thanks to Geert Bevin for finding and fixing the ServletUnit POST parameters bug. - Thanks to Geert Bevin for implementing ServletUnit support for HttpServletRequest.getParameterMap - -Problems fixed: - 1. The "_parent" frame target should now be handled correctly. - 2. Relative URLs were not being computed properly when the base URL had a query string containing a slash. - 3. WebResponses are now recognized as HTML even if the content type is not lower case. - 4. A form request created after a call to getScriptableObject().setAction() now correctly uses the new action. - 5. Table lookups should be faster, especially for complex and large tables - 6. Embedded spaces in URLs are now encoded when a request is made - 7. Relative URLs beginning with "?" were not being handled properly. - 8. Disabling scripting result in IllegalStateException being thrown. - 9. Fixed handling of error statuses when information is still sent on input stream - 10. ServletUnit was not recognizing form parameters on a POST request which contained a query string in the URL. - 11. Submitting a request created with parameter validation disabled would send disabled parameters as well as enabled ones. - 12. WebRequest.getRequestParameterNames now returns only the names of the parameters that will be submitted with the request. - -Additions: - Content and parsing enhancements: - 1. The HttpUnitOption property 'acceptCookies' now controls whether cookies received from the server will be saved - in a web client and sent on subsequent requests. The default is true. - 2. WebResponse and WebCell now support a new method, getImages, which retu... [truncated message content] |
From: <wol...@us...> - 2008-04-19 09:54:20
|
Revision: 922 http://httpunit.svn.sourceforge.net/httpunit/?rev=922&view=rev Author: wolfgang_fahl Date: 2008-04-19 02:54:19 -0700 (Sat, 19 Apr 2008) Log Message: ----------- formatted extraction of subversion log with links Added Paths: ----------- trunk/httpunit/doc/release_notes.html Copied: trunk/httpunit/doc/release_notes.html (from rev 921, trunk/httpunit/doc/release_notes.txt) =================================================================== --- trunk/httpunit/doc/release_notes.html (rev 0) +++ trunk/httpunit/doc/release_notes.html 2008-04-19 09:54:19 UTC (rev 922) @@ -0,0 +1,1589 @@ +<html> +<head></head> +<body> +<pre> +HttpUnit release notes + +Known problems: + 1. The "accept-charset" attribute for forms is ignored; the page content character set is used to encode any response. + This behavior matches that currently used by IE and Navigator. + 2. Defining a form parameter with the same name or ID as a JavaScript Form function will cause that function not to + be callable. + +Limitations: + 1. JDK 1.4.2 or higher is required + 2. JavaScript support does not include some DOM properties + 3. The JavaScript assignment Document.cookie= does not restrict the cookie by path and domain + 4. Only table cells and explicit paragraphs are recognized as text blocks + + +Revision History: +================= + + +14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal +06-Apr-2008 bugfix 1110071: cannot increase length of a select control +</pre> +<h3>1.7 2007-04</h3> +Bug fixes and patches from 2007-12 to 2008-04: for a full subversion log you +might want to issue the subversion command:<br /> + <code> svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit</code><br /> + The following list of changes has been extracted from this subversion log with patch + and subversion repository links being inserted. + +<ol> + <li>made some controls public + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=787">r787</a>) + </li> + <li>ServletUnitHttpRequest.getDateHeader() always "returns -1"?<br />Date sent: Wed, 19 Dec 2007 11:17:36 -0700<br />by Yu Chen + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=788">r788</a>) + </li> + <li>ServletUnitHttpRequest.getDateHeader() always "returns -1"?<br />Date sent: Wed, 19 Dec 2007 11:17:36 -0700<br />by Yu Chen + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=791">r791</a>) + </li> + <li>Fix for <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1705925&group_id=6550&atid=106550">1705925</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=792">r792</a>) + </li> + <li>new tests and some comments + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=793">r793</a>) + </li> + <li>proposed patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1152036&group_id=6550&atid=306550">1152036</a> - not enabled + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=794">r794</a>) + </li> + <li>comments for some suggestions + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=795">r795</a>) + </li> + <li>fixed for abstract setProxy + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=796">r796</a>) + </li> + <li> [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=844084&group_id=6550&atid=106550">844084</a> ] Block HTTP referer added + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=797">r797</a>) + </li> + <li>IBM Websphere https protocol support + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=798">r798</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1520925&group_id=6550&atid=306550">1520925</a> ] SSL patch + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=799">r799</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1371208&group_id=6550&atid=306550">1371208</a> ] Patch for Cookie bug #1371204 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=800">r800</a>) + </li> + <li>new package plus tests + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=801">r801</a>) + </li> + <li>extended TestSuite + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=802">r802</a>) + </li> + <li>new tests + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=803">r803</a>) + </li> + <li>BR <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1843978&group_id=6550&atid=106550">1843978</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=804">r804</a>) + </li> + <li>javadoc + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=805">r805</a>) + </li> + <li>1.6.3. prep + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=806">r806</a>) + </li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=18386699&group_id=6550&atid=306550">18386699</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=807">r807</a>) + </li> + <li>pending patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155792&group_id=6550&atid=306550">1155792</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=808">r808</a>) + </li> + <li>deactivated test and deprecated function for Patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1838699&group_id=6550&atid=306550">1838699</a> ] + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=809">r809</a>) + </li> + <li>svn + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=810">r810</a>) + </li> + <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=885326&group_id=6550&atid=106550">885326</a> checked but no go + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=811">r811</a>) + </li> + <li>SR <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1288796&group_id=6550&atid=106550">1288796</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=812">r812</a>) + </li> + <li>test for Patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1838699&group_id=6550&atid=306550">1838699</a>. + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=813">r813</a>) + </li> + <li>Patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1531005&group_id=6550&atid=306550">1531005</a>. + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=814">r814</a>) + </li> + <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1518901&group_id=6550&atid=106550">1518901</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=815">r815</a>) + </li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1443333&group_id=6550&atid=306550">1443333</a> and some improved javadoc + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=816">r816</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1333390&group_id=6550&atid=306550">1333390</a> ] patch for bug 1277797 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=817">r817</a>) + </li> + <li>update website definition to point to subversion repository, list Wolfgang as committer + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=818">r818</a>) + </li> + <li>fix Wolfgang's email address + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=819">r819</a>) + </li> + <li>test proposal for Patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=820">r820</a>) + </li> + <li>added test for iFrame problem + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=821">r821</a>) + </li> + <li>some refactoring + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=822">r822</a>) + </li> + <li>added stub for testCreateElement + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=823">r823</a>) + </li> + <li>debug of java.net.MalformedURLException problems + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=824">r824</a>) + </li> + <li>improvements by Mark Childerson as mailed in<br />Message-ID: <E1J...@ma...> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=825">r825</a>) + </li> + <li>PseudoServer enhancements: better debug messages, handle request timeout + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=826">r826</a>) + </li> + <li>isEclipse added + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=827">r827</a>) + </li> + <li>error handling improved + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=828">r828</a>) + </li> + <li>javadoc and error handling + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=829">r829</a>) + </li> + <li>setProxy fix + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=830">r830</a>) + </li> + <li>null handling for openNewWindow + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=832">r832</a>) + </li> + <li>Scriptable interface + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=833">r833</a>) + </li> + <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1864072&group_id=6550&atid=306550">1864072</a> patch by Matt + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=834">r834</a>) + </li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> added + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=836">r836</a>) + </li> + <li>event and onchange parts of patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=837">r837</a>) + </li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1415415&group_id=6550&atid=306550">1415415</a> added (mime types for tiff and pdf) + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=838">r838</a>) + </li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> + refactoring around handling events + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=839">r839</a>) + </li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> by Jord Sonneveld - jsonneve + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=840">r840</a>) + </li> + <li>inspired by Ville Skytt?\195?\164's patch[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1065881&group_id=6550&atid=306550">1065881</a> ] Fix servlettest classpath + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=841">r841</a>) + </li> + <li>new interface + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=842">r842</a>) + </li> + <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1117822&group_id=6550&atid=306550">1117822</a> ] Patch for purgeEmptyCells() problem<br />by Glen Stampoultzis + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=843">r843</a>) + </li> + <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1211154&group_id=6550&atid=306550">1211154</a> ] NekoDOMParser default to lowercase by Dan Allen + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=844">r844</a>) + </li> + <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> ] Handle redirect instructions which can lead to a loop by james abley + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=846">r846</a>) + </li> + <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> ] Handle redirect instructions which can lead to a loop by james abley + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=847">r847</a>) + </li> + <li>bug [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159844&group_id=6550&atid=306550">1159844</a> ] allow parsing intercepted pages into HTMLSegment objects<br />with patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages)<br />by Rafal Krzewski + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=848">r848</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159887&group_id=6550&atid=306550">1159887</a> ] patch for RFE 1159884 by Rafal Krzewski + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=849">r849</a>) + </li> + <li>testcase for https://sourceforge.net/forum/message.php?msg_id=<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=4482660&group_id=6550&atid=106550">4482660</a><br />by kauffmann81 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=851">r851</a>) + </li> + <li>test for https://sourceforge.net/forum/message.php?msg_id=<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=3485431&group_id=6550&atid=106550">3485431</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=852">r852</a>) + </li> + <li>tried to change the url encoding for spaces - did not succeed + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=853">r853</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1176688&group_id=6550&atid=106550">1176688</a> ] Allow configuration of neko parser properties<br />but feature switched off since the test cases don't work then + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=855">r855</a>) + </li> + <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1235132&group_id=6550&atid=306550">1235132</a> ] Getter support for javascript form.name<br />by Peter Phillips + make it work for DOM engine + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=856">r856</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1246438&group_id=6550&atid=106550">1246438</a> ] For issue 1221537; ServletUnitHttpRequest.getReader not impl<br />by Tim + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=857">r857</a>) + </li> + <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1323053&group_id=6550&atid=306550">1323053</a> ] Patch for 1323031 by Hugh Winkler + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=858">r858</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1488617&group_id=6550&atid=306550">1488617</a> ] alternate patch for cookie bug #1371204<br />by Richard Lee + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=859">r859</a>) + </li> + <li>tests and start of implementation for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1870946&group_id=6550&atid=106550">1870946</a> ] getAttribute function support in HTMLElement (not fixed yet so switched off for old scripting engine) + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=860">r860</a>) + </li> + <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1895501&group_id=6550&atid=106550">1895501</a> ] Handling no codebase attribute in APPLET tag<br />change default from "/" to "." meaning from root directory to current directory + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=861">r861</a>) + </li> + <li>comment modified + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=862">r862</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1672385&group_id=6550&atid=106550">1672385</a> ] HttpOnly cookie looses all cookie info + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=863">r863</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1533762&group_id=6550&atid=306550">1533762</a> ] Valid cookies are rejected<br />by Alexey Bulat but unfortunately patch does not work + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=864">r864</a>) + </li> + <li>test case for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1508516&group_id=6550&atid=106550">1508516</a> ] Javascript method: "undefined" is not supported<br />- works ! + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=865">r865</a>) + </li> + <li>test and analysis for javaScript cloneNode feature asked for by Mark Childerson according to<br />http://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=866">r866</a>) + </li> + <li>feature request [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=796961&group_id=6550&atid=106550">796961</a> ] Support indirect invocation of JavaScript events on elements<br />by David D Kilzer<br />test added - works with no change to code + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=867">r867</a>) + </li> + <li>Bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124057&group_id=6550&atid=106550">1124057</a> ] Out of Bounds Exception should be avoided<br />by Wolfgang Fahl of 2005-02-16 17:25 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=868">r868</a>) + </li> + <li>Test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124024&group_id=6550&atid=106550">1124024</a> ] Formcontrol and isDisabled should be public<br />by Wolfgang Fahl 2005-02-16 16:39 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=869">r869</a>) + </li> + <li>inspired by e-mail Execute Javascript of span element<br />of 2008-04-01 by Christoph + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=870">r870</a>) + </li> + <li>bug fix for bug [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1289151&group_id=6550&atid=106550">1289151</a> ] Order of events in button.click() is wrong + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=871">r871</a>) + </li> + <li>patch from bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1264704&group_id=6550&atid=306550">1264704</a> ] [patch] add parent exception to HttpException by fabrizio giustina + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=872">r872</a>) + </li> + <li>fixed after comment from Mark + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=873">r873</a>) + </li> + <li>new NekoHtml 1.9.6 parser - please note one test failing:<br />testJavascriptDetectionTrick + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=874">r874</a>) + </li> + <li>test for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396877&group_id=6550&atid=106550">1396877</a> ] Javascript:properties parentNode,firstChild, .. returns null<br />by gklopp 2006-01-04 15:15 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=875">r875</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1153066&group_id=6550&atid=106550">1153066</a> ] Eternal loop while processing javascript by Serguei Khramtchenko 2005-02-27 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=876">r876</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1295782&group_id=6550&atid=306550">1295782</a> ] Method purgeEmptyCells Truncates Table by ahansen 2005-09-19 22:47<br />no fix necessary anymore - already patched + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=877">r877</a>) + </li> + <li>comments for patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1509117&group_id=6550&atid=306550">1509117</a> + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=878">r878</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] allow text/xml to be parsed as html<br />by fabrizio giustina <br />made available static accessor for validContentTypes in WebResponse + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=879">r879</a>) + </li> + <li>developers and release notes + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=880">r880</a>) + </li> + <li>Bug report by Adam Hardy via developer Mailinglist<br />of 2008-04-02 to avoid java.lang.IllegalAccessException: Class org.apache.tiles.access.TilesAccess can <br />not access a member of class com.meterware.servletunit.ServletUnitServletContext <br />with modifiers "public"<br />when working with Tiles + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=881">r881</a>) + </li> + <li>partially disabled noscript detection trick test, pending nekoHTML bugfix + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=882">r882</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1035949&group_id=6550&atid=106550">1035949</a> ] NullPointerException on Weblink.click<br />by Ute Platzer<br />historic + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=883">r883</a>) + </li> + <li>patch for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1476380&group_id=6550&atid=306550">1476380</a> ] Cookies incorrectly rejected despite valid domain<br />by Garrick Toubassi + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=884">r884</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1052037&group_id=6550&atid=106550">1052037</a> ] Semicolon not supported as URL param delimiter<br />by Luca<br />no fix yet only comments + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=885">r885</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1161922&group_id=6550&atid=106550">1161922</a> ] setting window.onload has no effect<br />by Kent Tong - no fix necessary + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=886">r886</a>) + </li> + <li>fix for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1165454&group_id=6550&atid=106550">1165454</a> ] ServletUnitHttpRequest.getScheme() returns "http" for secure<br />by Jeff Mills getScheme now returns _protocol (in lowercase) gotten from the URL of the request. Test will throw java.net.MalFormedURLException / unknown protcol for "ftps" which is considered expected at this time + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=887">r887</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] activated by chaning testTraversal + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=888">r888</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1629836&group_id=6550&atid=106550">1629836</a> ] Anchor only form actions are not properly handled<br />by Claude Brisson <br />can not reproduce - testcase runs + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=889">r889</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1055450&group_id=6550&atid=106550">1055450</a> ] Error loading included script aborts entire request<br />by Renaud Waldura<br />works already with 1.6.2 + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=890">r890</a>) + </li> + <li>comment for <br />bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1060291&group_id=6550&atid=106550">1060291</a> ] setting multiple values in selection <br />list <br />by Vladimir<br />that the existing testMultiSelect seems to fit + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=892">r892</a>) + </li> + <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1151277&group_id=6550&atid=106550">1151277</a> ] httpunit 1.6 breaks Cookie handling for ServletUnitClient<br />by Michael Corum<br />runs without change + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=896">r896</a>) + </li> + <li>trying to check <br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1113728&group_id=6550&atid=106550">1113728</a> ] getRealPath throws IndexOutOfBoundsException on empty string<br />by Adrian Baker<br />had to comment out again + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=898">r898</a>) + </li> + <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396835&group_id=6550&atid=306550">1396835</a> ] Javascript : length of a select element cannot be increased<br />by gklopp + patch + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=899">r899</a>) + </li> + <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1119205&group_id=6550&atid=306550">1119205</a> ] EOFExceptions while using a Proxy<br />patch by Ralf Bust<br />set to pending in tracker - the patch does not break any test<br />but there is no unit test for the difference of the two implementations yet + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=901">r901</a>) + </li> + <li>test for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396896&group_id=6550&atid=106550">1396896</a> ] Javascript: length property of a select element not writable<br />by gklopp <br />modified impl to throw "Not implemented exception"<br />Modal test case for new Dom Scripting Engine + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=902">r902</a>) + </li> + <li>patch for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1264706&group_id=6550&atid=306550">1264706</a> ] [patch] replace ClasspathEntityResolver<br />put into comment + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=903">r903</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1215734&group_id=6550&atid=306550">1215734</a> ] another <select> problem<br />by alex<br />patched the IllegalParameterValueException to but options in quotes to better show the "Kent, Richard" culprit<br />showed that tab and space could also lead to a problem + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=904">r904</a>) + </li> + <li>test for the bug reports <br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1216567&group_id=6550&atid=306550">1216567</a> ] Exception for large javascripts<br />by Grzegorz Lukasik <br />and bug report [ 1572117 ] ClassFormatError<br />by Walter Meier<br />set quicktest to false to run the test for scripts from<br />a thousand to a million lines for optimization levels from -2 to 9 (will take approx 30 secs)<br />patch: new function:<br />HttpUnitOptions.setJavaScriptOptimizationLevel(optimizationLevel);<br />with default optimization level of -1 (interpret) + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=905">r905</a>) + </li> + <li>test for open bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1043368&group_id=6550&atid=106550">1043368</a> ] WebTable has wrong number of columns<br />by AutoTest<br />added and disabled (warning only) + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=906">r906</a>) + </li> + <li>Formtable test added and added warnDisabled generalization for some tests + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=907">r907</a>) + </li> + <li>Id keyword property set where missing + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=908">r908</a>) + </li> + <li>Bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1122186&group_id=6550&atid=106550">1122186</a> ] Duplicate select with same name cause error<br />fixed by changing constructor for IllegalParameterValueException and getting bad value in a separate function - may later also be used to fix the ClasscastException problem when a double is in the list of values + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=909">r909</a>) + </li> + <li>should fix class cast exception for which we are waiting for junit test + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=910">r910</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1143757&group_id=6550&atid=106550">1143757</a> ] encoding of Special charcters broken with 1.6<br />by Klaus Halfmann<br />works with no change + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=911">r911</a>) + </li> + <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1156972&group_id=6550&atid=306550">1156972</a> ] isWebLink doesn't recognize all anchor tags<br />by fregienj<br />not patched yet and used warnDisabled until decision whether all <area> and <a> nodes are to be considered WebLinks no matter whether they have hrefs or not + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=912">r912</a>) + </li> + <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159810&group_id=6550&atid=106550">1159810</a> ] URL encoding problem with ServletUnit<br />by Sven Helmberger added<br />is a duplicate of the other encoding bug and works + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=913">r913</a>) + </li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1110071&group_id=6550&atid=106550">1110071</a>: javascript cannot increase length of a select control + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=914">r914</a>) + </li> + <li>Parse chunk lengths as hex + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=915">r915</a>) + </li> + <li>test for Bug Report <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1937946&group_id=6550&atid=106550">1937946</a> added (but disabled for HttpUnitSuite since it needs index.html on localhost<br />convenience addition to be able to test this bug report on a Mac + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=916">r916</a>) + </li> + <li>bug report (actually a feature request) <br /><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1942454&group_id=6550&atid=106550">1942454</a> Make ServerInfo a constant<br />by Philip Helger + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=917">r917</a>) + </li> + <li>fix for Bug report <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1212204&group_id=6550&atid=106550">1212204</a> by Brian Bonner + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=918">r918</a>) + </li> + <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1222269&group_id=6550&atid=106550">1222269</a> ] Cannot setEntityResolver on ServletRunner<br />jim - jafergus<br />add another constructor for ServletRunner as requested + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=919">r919</a>) + </li> + <li>improved + (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=921">r921</a>) + </li> +</ol> +<pre> + 5-Jul-2007: + Notes: The PostMethodWebRequest.setMimeEncoded method has been removed. Mime encoding, if desired, should now be + specified when constructing the object. + +28-Jun-2007: + Notes: WebLink.click() now only returns the contents of the frame containing the link. Previously, if there was no + event involved and the link included a frame reference, it would return the contents of the referenced frame. + +26-Dec-2006: + Additions: + Content and Parsing: + 1. Basic authentication now can support authorization only after challenge and different passwords for + different realms. + 2. Added support for rudimentary (RFC 2109) digest authentication. + + 1-Dec-2006: + Additions: + Content and Parsing: + 1. Added "overrideContextType" property to ClientProperties to permit handling of files served with the + wrong content type. +26-Nov-2006: + Notes: HttpUnit has been moved to subversion at http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit + +31-Mar-2006: + Additions: + PseudoServer: + 1. Added WebResource.suppressAutomaticContentTypeHeader to permit generation of responses without the + Content-Type header. + +28-Mar-2006: + Notes: + 1. The build now uses the ant-dependencies task (see http://www.httpunit.org/doc/dependencies.html) rather than + keeping the dependent jars in cvs. + +27-Mar-2006 + Additions: + Content and Parsing: + 1. Created a custom HttpUnit DOM + +27-Mar-2006 1.6.2: + Acknowledgements: + Thanks for Fabrizio Giustina for suggesting a way to make the TableRow object publically accessible. + + Problems fixed: + 1. bug #1063494 HTML entity replacement was looping indefinitely on strings with '&' and no ';' + 2. ServletContext.getRealPath() now handles relative paths that do not start with a "/" + + Additions: + 1. patch #1413171 Web table rows are now directly accessible in a TableRow element. + 2. Added support for Servlet API 2.4 + 3. Implemented ServletContext.getServletContextName + 4. (PseudoServer) made HttpRequest class public + + 6-Mar-2005 1.6.1 + Acknowledgements: + Thanks to Hanson Char for identifying a JDK 1.5 incompatibility. + Thanks to Satish Kolli for fixing bug #1040770 + Thanks to Fabrizio Guistina for supplying an implementation of locale handling for ServletUnitHttpResponse + Thanks to Vladimir Korenev for providing an implementation for style.visibility, element.tagName, and element.nodeName + Thanks to Yaqoub Jaiousi for identifying the problem with buttons outside of forms. + + Problems fixed: + JDK compatibility + 1. bug #1039989 Did not compile with JDK 1.3. This bug was introduced in HttpUnit 1.6 and has now been corrected. + 2. Renamed local variables which conflicted with new JDK 1.5 keyword "enum." + + Content and Parsing + 3. bug #1046597 tables nested inside paragraphs were not being seen by the enclosing page. This bug was introduced + in 1.6 and has now been corrected. + 4. bug #1074232 buttons outside of forms were only recognized if defined with the <button> tag, not <input> + + Window handling + 5. bug #1035949 Following a link from the top frame to a _parent target no longer results in a NullPointerException. + + JavaScript + 6. bug #1040508 Using the setCheckbox and toggleCheckbox methods was not triggering the onclick event + 7. bug #1040770 the Image.name JavaScript property is now supported + 8. bug #1047367 frames defined by javascript were not being detected. + 9. patch #1046516 property style.visibility is now supported + 10. bug #1073810 a null pointer exception is no longer thrown when javascript sets a control value to null + 11. bug #1052779 window.open() with javascript URL no longer throws a null pointer exception or class cast exception + 12. bug #1087180 setting a numeric value into a form parameter was appending a trailing decimal zero + + ServletUnit + 13. bug #1044820 ServletUnit now implements HttpServletResponse.getLocale() and setLocale() + 14. bug #1051123 ServletUnit handling of parameter encoding was not cleaning up url-encodings + 15. bug #1151277 only the first user-defined cookie was recognized in ServletUnit if multiple were set + + PseudoServer + 16. Made all WebResource constructors public + + +3-Oct-2004 1.6 +Acknowledgements: + Thanks to Chris Hane for making it easier to add support for javascript properties and for providing support for + getAttribute() to handle any property defined in the underlying Node. + Thanks to Patrick Lightbody for adding JavaScript support for the Style object + Thanks to Phil Zampino for finding a fixing a problem in PseudoServer's handling of very long requests. + Thanks to Andrew Bickerton for adding the following JavaScript support: + Form.length - returns the number of controls in a form + Control.type - returns a test description of the control type + Control.defaultValue - returns the default value for text controls + Initial page tokenizing now skips JavaScript while looking for header tags + Writing into an empty frame no longer corrupts all empty frames + Thanks to Jarom Smith for finding some typos in the tutorial. + Thanks to Jay Dunning for providing an implementation of HttpServletResponse.containsHeader + and implementing support for ServletContextListeners. + Thanks to Fabrizio Giustina for adding an entity-resolver to support local use of ServletUnit with a regular web.xml + Thanks to Kazuaki Matsuhashi for correcting the handling of non-Latin link parameters + Thanks to Dan Frankow for supplying an implementation of ServletContext.getMimeType and correcting the + implementation of HttpSession.setAttribute when the value is null + Thanks to Guillaume Dandurand for supplying code to get the onload event when the page + is a frameset rather than a regular page. + Thanks to Michael Corum for making the Button.disabled property settable from JavaScript. + Thanks to Darrell DeBoer for providing a patch for select box functionality + Thanks to Bart Vanhaute for finding a fixing an infinite recursion problem with frame loading. + Thanks to Dave Brosius for adding hashCode to Cookie and QuerySpec + +Additions: + Content and Parsing + 1. rfe #766768: getText() methods now translate <br> tags as newlines. + 2. rfe #901172: content-types "text/xhtml" and "application/xhtml+xml" are now recognized as valid HTML + 3. rfe #974791: WebForm now supports submitNoButton to submit a form without any of its buttons. This permits + testing of server response to a Javascript-style submit without using JavaScript. + 4. rfe #986876: The WebClient.addCookie method has been deprecated, since its behavior is actually a bit confusing + and replaced with "putCookie" allowing subsequent the replacement of a cookie value defined by a previous + call to "putCookie." + 5. patch #1026566 The Cookie class now implements hashCode properly. + 6. patch #879193: The name of a select box may now be treated as an array of options. + 7. patch #879193: Select now behaves as a multiselect listbox if it has size > 1 or if multiple is set and the size is not set to 1. + 8. Patch #795698: HTMLElement now supports a getAttribute method to return the value of any named attribute. + 9. WebResponse and TableCell now support getElementsWithAttribute to return all contained HTML elements + with a specified attribute. + 10. setCheckbox() and toggleCheckbox() have now been expanded to select one of a group of checkboxes by specifying + its name. + 11. WebForm now supports the newUnvalidatedRequest method, which should be used in preference to + HttpUnitOptions.setParametersValidated( false ). This creates a web request copied from the form + but not tied to it, so that parameters can be set without validation. + 12. Enhanced http logging to show target server, request header line, and received URL + 13. HTMLElement now supports a getText() method to return the text contents of any element + 14. WebResponse now supports getTextBlocks and getFirstMatchingTextBlock to retrieve headers and paragraphs from a page. + 15. HttpUnit now catches an attempt to load an included script from a page included with "getResource" rather than + "getResponse." + 16. Click positions on image buttons may now be specified using one of: + form.submit( button, x, y ) + button.click( x, y ) + 17. Added preliminary support for lists + 18. Added convenience method setParameter( String, File ) to simplify file uploading + 19. A username and password may now be specified when accessing a proxy server. + JavaScript + 20. Added support for javascript Input.tabindex and Text.maxlength properties (read-only) + 21. Added support for javascript HTMLElement.style property + ServletUnit + 22. Patch #890995 - Implemented ServletUnitHttpResponse.containsHeader + 23. Patch #890936 - Added ServletContextListener support + 24. Added HttpSessionListener support + 25. Added support for ServletContextAttributeListener and HttpSessionAttributeListener + 26. Added support for filters + 27. rfe #909922: ServletUnit now supports HttpServletRequest.getHeaders + 28. patch #915296: Local copies of the 2.2 and 2.3 web.xml dtds are now consulted if specified, + rather than connecting to the Sun website. + 29. ServletRunner now takes a reference to a web.xml as a File object in its constructor. + 30. ServletRunner and ServletUnitClient now support a getSession() method to return the HTTP session to be used + by the next request or modified by the last request. + 31. ServletUnit now implements HttpSession.getServletContext(). + PseudoServer + 32. PseudoServer now pools its ServerSocket's in order to be more gracious regarding system resources. Pooling can + be controlled via the properties: socketReleaseWaitTime and waitThreshhold. + 33. PseudoServer can now received chunked requests, and will not send a "Content-Length" header if a + "Transfer-Encoding: chunked" has been defined. + 34. PseudoServer now accepts a full http URL to permit testing of interaction with proxy servers. + +Problems fixed: + Documentation + 1. bug #804585: the javascript documentation referred to the old location of the + getNextAlert and popNextAlert methods + 2. bug #804559: unimplemented links have been removed from the incomplete user manual. + 3. A number of typos in the tutorial have been corrected + Content and Parsing + 4. bug #978770 Clicking on a button outside of a form is now supported + 5. bug #838947 Document.getElementById now returns null if no such element exists + 6. bug #957882: URL path elements containing leading '.' were being stripped of those periods. + 7. bug #830856: WebLink URLs broken across lines are now handled correctly + 8. bug #805921: WebForm.selectImageButtonPosition was misleadingly public and should not have been used. + It has been made package-private, and new means are provided to submit positional image buttons (see additions). + 9. bug #982097: http urls being used as request parameters were being mangled + 10. bug #803041: HTML entity & now recognized in refresh URL tag + 11. bug #803095: Absolute URLs now supported in refresh URL tag + 12. bug #986397: Subframe included fragments in their source attributes now ignore those fragments when generating requests. + 13. bug #990914: WebFrame scriptables are now accessible by getElementById + 14. patch #995853: decode link parameters based on page character set + 15. When a form has no action specified and its URL contains parameters whose names match those of parameters + in the form, the form values are used instead. + 16. Slashes in URL parameters were being misinterpeted as navigation + Request handling + 17. The HeadMethodWebRequest was actually sending the GET method, as was any HeaderOnlyWebRequest. + 18. bug #964940 The Referer header was not being sent again if the original request was redirected + 19. bug #974380 When using a DNS listener, host header no longer includes ':-1' if the port is not specified + 20. bug #1032440: An explanatory exception is now thrown on an attempt to use a mailto: URL in a form submission + Cookie handling + 21. bug #873169 - Cookie headers were generated with no space after the semicolon (unlike IE, Netscape, and Mozilla) + 22. Cookie domains without leading dots are now accepted, as per RFC 2965. + 23. bug #1025968: Cookies with max-age attribute will now expire (max-age=0 is treated as immediate expiration) + Frame handling + 24. bug #737167: Nested frame names are now as specified, previous included names of parent frames. + 25. Return from a request that wrote to a new frame is now the result of that request, was the original page. + 26. Return from a request specifying an unknown frame now opens a new window; previously created a subframe + in the requesting window. + 27. bug #1029139: infinite recursion in frameset page when a frame has src="#" + JavaScript + 28. A frameset 'onload' event is now invoked after all of its subframes have been loaded + 29. HttpUnit no longer complains about not being able to find the Rhino jar (js.jar) if scripting is disabled + before any pages are read. + 30. bug #823433: document.cookie now defaults to the empty string, like IE and Mozilla, rather than null + 31. Using JavaScript to write into an empty frame could change all empty frames to the same value + 32. Window.open() using an empty name was replacing the main window rather than creating a new one. + 33. Patch #812709: Support JavaScript changing "disabled" attribute on Buttons + 34. bug #861866: Support JavaScript changing "disabled" attribute on form controls + 35. Forms defined after a <script> section which accessed document.forms would not be found if document.forms + was also accessed in a subsequent <script> section after the new form definition. + 36. bug #974675 Javascript function Window.open did not honor "_self" tag for window name. + 37. bug #960307 meta tags within <noscript> tags were not being ignored when scripting was disabled + 38. bug #959918: Javascript setting of numeric values included trailing zeros after the decimal point. + 39. bug #1013045: Form, Link, and Image id tags are now recognizable from JavaScript where a name tag would be + ServletUnit + 40. ServletUnit now applies character encoding in interpreting post parameters + 41. Patch #873911: ServletContext.getMimeType is supported + 42. Patch #873914: HttpSession.setAttribute( name, null ) now properly removes the named attribute + 43. bug #872129: Cookie header set on a web request was ignored in servletunit + 44. HttpServletRequest.getCookies() method was only returning the first cookie defined in the request + 45. bug #1034067: ServletConfig.getServletName now returns the name specified in web.xml for registered servlets. + PseudoServer + 46. PseudoServer now supports any method handled by a PseudoServlet. Previously, it only handled GET, POST, and PUT. + It is simply necessary to override the getResponse method to make this work. + 47. PseudoServer would hang when sent a very long request. + + Notes: + 1. Upgraded NekoHTML to 0.9.1 + 2. Upgraded Xerces to 2.4.0 + 3. Upgraded Rhino to 1.5R4.1 + + +21-Aug-2003 1.5.4 +Acknowledgements: + Thanks to David D. Kilzer for: + creating thorough tests for URLs containing navigation and showing a way to handle them, and + submitting the WebLink.MATCH_TEXT predicate. + Thanks to Lloyd McKenzie for finding a problem with listing cookie names and suggesting a fix. + Thanks to Brian O'Kelley for supplying a way to disable use of the proxy server. + +Additions: + Content and Parsing + 1. WebResponse and TableCell now support getElementsWithName and getElementNames to look up HTML elements. + 2. Form.getOptions() now works for radio buttons and checkboxes - as long as the desired name is located after the control. + 3. rfe #723895: A new class CookieProperties now supports relaxing cookie matching rules for path, domain, or both. + 4. It is now possible to define a CookieListener on CookieProperties to watch for cookie rejection events + 5. rfe #751505: Add clearProxyServer() to disable the use of the proxy server + 6. rfe #744360: Added getFirstMatchingForm and getMatchingForms() methods to WebResponse and HTMLSegment + 7. rfe #756453: Made Button.isDisabled() method public + 8: rfe #717752: Added WebLink.MATCH_TEXT predicate to match link text exactly + 9. rfe #721424: You can now set checkbox values in a form via: setCheckbox(name,boolean) or toggleCheckbox(name). + These methods will throw an exception if the specified parameter is not a checkbox or if more than + one control has the name. + ServletUnit + 10. JUnitServlet now supports a value of 'xml' for the format parameter, generating a format compatible with + ant's XMLResultFormatter + 11. You can now get the value of context parameters from a ServletRunner via the getContextParameter method + PseudoServer + 12. PseudoServer now permits setting the maximum protocol level. If it is 1.0, all responses will be forced to + HTTP/1.0 no matter the protocol of the request. + +Problems fixed: + Content and Parsing + 1. bug #717280: URLs with "../" in them were not resolved properly + 2. bug #717640: <base> element was not being handled in the case when no host was specified. + 3. When setting a selection control, HttpUnit would always select a value matching its first option if possible, + rather than taking the first valid value. + 4. bug #722788: WebForm.submit() was not invoking the 'onClick' event of the specified submit button. + 5. bug #721989: scripts did not see id attributes of form controls. + 6. bug #741965: cookies with explicit domain attributes are being rejected when their host is of the form HD + where D is the explicit domain attribute and H contains a dot. Apparently, most browsers ignore this + rule. Now, so does HttpUnit, if CookieProperties.setDomainMatchingStrict( false ) is called. + 7. bug #750846: Cannot retrieve all cookie names when both global and site-specific cookies are defined. + 8. gzip'ed responses were sometimes truncated. + JavaScript + 9. bug #734133: javascript: URLs were ignored if "javascript:" is not all lower case. + ServletUnit + 10. bug #744214: ServletUnit does not recognize subframes + + 4-Apr-2003 1.5.3 +Acknowledgements: + Thanks to Andrew Bickerton for: + correcting the handling of document.open for non-HTML pages and new pages with base tags, + correcting the document.write append problem, + identifying the javascript parent frame update problem and suggesting a fix, and + showing how to handle responses with content-length 0. + Thanks to Brendan Boesen for: + adding a method to access session IDs in ServletUnitContext, and + correcting the session invalidation problem. + Thanks to Daniel Jasmin for fixing the handling of applet loading from archives. + Thanks to Mark Luty for supplying a test for the getElementsByName function. + Thanks to Ron Webster for designing the new HttpUnit logo. + Thanks to Sergey Bondarenko for supplying a test for getElementsByTagName + Thanks to George Murnock for adding WebResponse.getMatchingTables() + +Problems Fixed: + Content and Parsing + 1. Bug #700889: Under certain cases, multiple <script> sections in a document caused a problem where + only those HTML elements defined before the first one were actually available to the scripts. + 2. Bug #709979: Select.selectedIndex was returning -1 for a normal select box with no options explicitly selected. + 3. calling Document.open() on a non-HTML page no longer throws an exception. + 4. Rewriting a document now properly handles any <base> tags in the new document. + 5. Applets were not loading properly from applets if a codebase was specified in the <applet> tag. + 6. When loading a page triggered a script function which redirected to a new page in the same frame, + the WebResponse returned from getResponse was the triggering page. It is now the redirected page. + 7. HttpUnit now handles refresh headers without explicit URLs, defaulting to refreshing the containing page. + 8. HttpUnit was delaying until a timeout when a zero-length response was received + JavaScript + 9. calling document.write on a closed document was appending to rather than replacing its contents. + 10. Following a javascript link which updated a parent frame via manipulating the location was causing a 'NoSuchFrame' + exception to be thrown. + 11. HttpUnit was chopping off javascript urls if they contained a '#' character. + ServletUnit + 12. The Content-Length header was not being sent with requests. + 13. HttpServletRequest.getIntHeader() always returned -1. + 14. ServletUnit was creating a new session if the current one was not valid, even if "create" was not specified. + 15. ServletUnit had not implemented HttpServletRequest.getContentLength(); + 16. ServletUnit had not implemented HttpServletRequest.getURL(); + 17. ServletUnit was always supplying a charset parameter in the returned Content-Type header, even when not requested. + +Additions: + Content and Parsing + 1. WebResponse and TableCell now have getMatchingTables to return all tables matching the specified criteria. + JavaScript + 2. <noscript> nodes in the body of a page now show their content if a <script> earlier in the page is not recognized. + 3. Select.value is now supported. + 4. Added WebForm.getButton() method using HTMLPredicate to permit more generalized button searches. + 5. Document.getElementsByName is now supported + 6. Added support for getElementsByTagName to Document and Form + ServletUnit + 7. You can now get at the stored session IDs in ServletUnitContext. + 8. ServletUnit now supports HttpServletRequest.getRequestDispatch() + PseudoServer + 9. PseudoServer now handles persistent connections. + Extensibility + 10. ClientProperties now supports a listener which allows for the override of DNS mapping, allowing a client + to supply an actual IP address for a host programatically. The original Host header will be retained. + 11. Added format parameter for JUnitServlet: values are "text" or "html" + +Notes: + 1. The acceptCookies, acceptGzip, autoRefresh and autoForward properties have been moved from HttpUnitOptions + to ClientProperties, permitting them to be set per WebClient rather than just globally. The old properties + have been deprecated, and now access the defaults for ClientProperties. Tests which set the HttpUnitOptions + properties before creating their WebClients will be unaffected. + + + 3-Mar-2003 1.5.2 +Acknowledgements: + Thanks to John Sinclair for noting the lack of line breaks in manifest.mf and proposing a fix + Thanks to Bernhard Wagner for simplifying some string comparison code in ParsedHTML and WebTable + Thanks to Bernhard Wagner for adding some parser customization code. + Thanks to James Howe for noting the mispelling of the getElementById method + Thanks to Alex Beggs for noting the mishandling of non-JavaScript scripts and providing a test case. + Thanks to Navid Vahdat for ServletUnit fixes for invalid session handling and request dispatcher paths + Thanks to Daniel Sheppard for identifying a problem with meta refresh tags. + Thanks to Daniel Sheppard for correcting the return status for HttpServletResponse.sendRedirect + Thanks to Daniel Sheppard, Navid Vahdat, and Ron Hanson for help in adding capabilities to the RequestDispatcher implementation. + Thanks to Ron Hanson for catching the obsolete behavior of HttpServletRequest.setAttribute. + Thanks to Raphael Corre for improving logging of transmitted headers + Thanks to Jason Bedell for supplying an implementation for HttpSession.getValueNames. + Thanks to Jianqin Qu for finding the getTableStartingWithPrefix bug when using NekoHTML + Thanks to Scott Fleischman for providing tests for missing frame handling functionality + Thanks to Artashes Aghajanyan for implementing error reporting for the NekoHTML parser + +Problems Fixed: + Packaging + 1. The manifest.mf file now has line breaks between properties + Content and Parsing + 2. get...WithID was incorrectly doing case insensitive matches. It is now case-sensitive, since that is the way + the ID attribute is defined. + ... [truncated message content] |
From: <wol...@us...> - 2008-04-19 07:22:42
|
Revision: 921 http://httpunit.svn.sourceforge.net/httpunit/?rev=921&view=rev Author: wolfgang_fahl Date: 2008-04-19 00:22:37 -0700 (Sat, 19 Apr 2008) Log Message: ----------- improved Modified Paths: -------------- trunk/httpunit/doc/release_notes.txt Modified: trunk/httpunit/doc/release_notes.txt =================================================================== --- trunk/httpunit/doc/release_notes.txt 2008-04-16 15:28:35 UTC (rev 920) +++ trunk/httpunit/doc/release_notes.txt 2008-04-19 07:22:37 UTC (rev 921) @@ -15,433 +15,142 @@ Revision History: ================= -14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal + +14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal 06-Apr-2008 bugfix 1110071: cannot increase length of a select control -for a full subversion log you might want to issue the subversion command: - svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit -02-Apr-2008: ------------------------------------------------------------------------- -r879 | wolfgang_fahl | 2008-04-02 09:08:48 +0200 (Mi, 02 Apr 2008) | 3 lines - -[ 1281655 ] [patch] allow text/xml to be parsed as html -by fabrizio giustina -made available static accessor for validContentTypes in WebResponse ------------------------------------------------------------------------- -r878 | wolfgang_fahl | 2008-04-02 08:39:21 +0200 (Mi, 02 Apr 2008) | 1 line - -comments for patch 1509117 ------------------------------------------------------------------------- -r877 | wolfgang_fahl | 2008-04-02 01:41:53 +0200 (Mi, 02 Apr 2008) | 2 lines - -test for bug report [ 1295782 ] Method purgeEmptyCells Truncates Table by ahansen 2005-09-19 22:47 -no fix necessary anymore - already patched ------------------------------------------------------------------------- -r876 | wolfgang_fahl | 2008-04-02 01:31:38 +0200 (Mi, 02 Apr 2008) | 2 lines - -test for bug report [ 1153066 ] Eternal loop while processing javascript by Serguei Khramtchenko 2005-02-27 - ------------------------------------------------------------------------- -r875 | wolfgang_fahl | 2008-04-02 01:08:51 +0200 (Mi, 02 Apr 2008) | 2 lines - -test for [ 1396877 ] Javascript:properties parentNode,firstChild, .. returns null -by gklopp 2006-01-04 15:15 ------------------------------------------------------------------------- -r874 | wolfgang_fahl | 2008-04-01 19:08:32 +0200 (Di, 01 Apr 2008) | 2 lines - -new NekoHtml 1.9.6 parser - please note one test failing: -testJavascriptDetectionTrick ------------------------------------------------------------------------- -r873 | wolfgang_fahl | 2008-04-01 17:31:27 +0200 (Di, 01 Apr 2008) | 1 line - -fixed after comment from Mark ------------------------------------------------------------------------- -r872 | wolfgang_fahl | 2008-04-01 17:13:17 +0200 (Di, 01 Apr 2008) | 1 line - -patch from bug report [ 1264704 ] [patch] add parent exception to HttpException by fabrizio giustina ------------------------------------------------------------------------- -r871 | wolfgang_fahl | 2008-04-01 17:02:41 +0200 (Di, 01 Apr 2008) | 1 line - -bug fix for bug [ 1289151 ] Order of events in button.click() is wrong ------------------------------------------------------------------------- -r870 | wolfgang_fahl | 2008-04-01 14:54:23 +0200 (Di, 01 Apr 2008) | 2 lines - -inspired by e-mail Execute Javascript of span element -of 2008-04-01 by Christoph ------------------------------------------------------------------------- -r869 | wolfgang_fahl | 2008-04-01 14:05:57 +0200 (Di, 01 Apr 2008) | 2 lines - -Test for bug report [ 1124024 ] Formcontrol and isDisabled should be public -by Wolfgang Fahl 2005-02-16 16:39 ------------------------------------------------------------------------- -r868 | wolfgang_fahl | 2008-04-01 13:54:31 +0200 (Di, 01 Apr 2008) | 2 lines - -Bug report [ 1124057 ] Out of Bounds Exception should be avoided -by Wolfgang Fahl of 2005-02-16 17:25 ------------------------------------------------------------------------- -r867 | wolfgang_fahl | 2008-04-01 10:07:02 +0200 (Di, 01 Apr 2008) | 3 lines - -feature request [ 796961 ] Support indirect invocation of JavaScript events on elements -by David D Kilzer -test added - works with no change to code ------------------------------------------------------------------------- -r866 | wolfgang_fahl | 2008-04-01 09:04:28 +0200 (Di, 01 Apr 2008) | 2 lines - -test and analysis for javaScript cloneNode feature asked for by Mark Childerson according to -http://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html ------------------------------------------------------------------------- -r865 | wolfgang_fahl | 2008-03-31 20:44:32 +0200 (Mo, 31 Mrz 2008) | 2 lines - -test case for [ 1508516 ] Javascript method: "undefined" is not supported -- works ! ------------------------------------------------------------------------- -r864 | wolfgang_fahl | 2008-03-31 20:24:56 +0200 (Mo, 31 Mrz 2008) | 2 lines - -test for bug report [ 1533762 ] Valid cookies are rejected -by Alexey Bulat but unfortunately patch does not work ------------------------------------------------------------------------- -r863 | wolfgang_fahl | 2008-03-31 19:54:34 +0200 (Mo, 31 Mrz 2008) | 1 line - -[ 1672385 ] HttpOnly cookie looses all cookie info ------------------------------------------------------------------------- -r862 | wolfgang_fahl | 2008-03-31 19:37:20 +0200 (Mo, 31 Mrz 2008) | 1 line - -comment modified ------------------------------------------------------------------------- -r861 | wolfgang_fahl | 2008-03-31 18:22:40 +0200 (Mo, 31 Mrz 2008) | 2 lines - -bug report [ 1895501 ] Handling no codebase attribute in APPLET tag -change default from "/" to "." meaning from root directory to current directory ------------------------------------------------------------------------- -r860 | wolfgang_fahl | 2008-03-31 12:59:29 +0200 (Mo, 31 Mrz 2008) | 1 line - -tests and start of implementation for [ 1870946 ] getAttribute function support in HTMLElement (not fixed yet so switched off for old scripting engine) ------------------------------------------------------------------------- -r859 | wolfgang_fahl | 2008-03-31 12:17:30 +0200 (Mo, 31 Mrz 2008) | 2 lines - -[ 1488617 ] alternate patch for cookie bug #1371204 -by Richard Lee ------------------------------------------------------------------------- -r858 | wolfgang_fahl | 2008-03-31 11:58:35 +0200 (Mo, 31 Mrz 2008) | 1 line - -patch [ 1323053 ] Patch for 1323031 by Hugh Winkler ------------------------------------------------------------------------- -r857 | wolfgang_fahl | 2008-03-31 11:30:10 +0200 (Mo, 31 Mrz 2008) | 2 lines - -[ 1246438 ] For issue 1221537; ServletUnitHttpRequest.getReader not impl -by Tim ------------------------------------------------------------------------- -r856 | wolfgang_fahl | 2008-03-31 11:09:12 +0200 (Mo, 31 Mrz 2008) | 2 lines - -patch [ 1235132 ] Getter support for javascript form.name -by Peter Phillips + make it work for DOM engine ------------------------------------------------------------------------- -r855 | wolfgang_fahl | 2008-03-31 10:54:13 +0200 (Mo, 31 Mrz 2008) | 2 lines - -[ 1176688 ] Allow configuration of neko parser properties -but feature switched off since the test cases don't work then ------------------------------------------------------------------------- -r854 | wolfgang_fahl | 2008-03-30 18:54:19 +0200 (So, 30 Mrz 2008) | 1 line - -comments fixed ------------------------------------------------------------------------- -r853 | wolfgang_fahl | 2008-03-30 18:53:49 +0200 (So, 30 Mrz 2008) | 1 line - -tried to change the url encoding for spaces - did not succeed ------------------------------------------------------------------------- -r852 | wolfgang_fahl | 2008-03-30 17:14:31 +0200 (So, 30 Mrz 2008) | 1 line - -test for https://sourceforge.net/forum/message.php?msg_id=3485431 ------------------------------------------------------------------------- -r851 | wolfgang_fahl | 2008-03-30 16:42:37 +0200 (So, 30 Mrz 2008) | 2 lines - -testcase for https://sourceforge.net/forum/message.php?msg_id=4482660 -by kauffmann81 ------------------------------------------------------------------------- -r850 | wolfgang_fahl | 2008-03-30 15:54:48 +0200 (So, 30 Mrz 2008) | 1 line - -Copyright year changed ------------------------------------------------------------------------- -r849 | wolfgang_fahl | 2008-03-30 15:54:16 +0200 (So, 30 Mrz 2008) | 1 line - -[ 1159887 ] patch for RFE 1159884 by Rafal Krzewski ------------------------------------------------------------------------- -r848 | wolfgang_fahl | 2008-03-30 15:36:54 +0200 (So, 30 Mrz 2008) | 3 lines - -bug [ 1159844 ] allow parsing intercepted pages into HTMLSegment objects -with patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages) -by Rafal Krzewski ------------------------------------------------------------------------- -r847 | wolfgang_fahl | 2008-03-30 15:24:17 +0200 (So, 30 Mrz 2008) | 1 line - -patch [ 1155415 ] Handle redirect instructions which can lead to a loop by james abley ------------------------------------------------------------------------- -r846 | wolfgang_fahl | 2008-03-30 15:21:11 +0200 (So, 30 Mrz 2008) | 1 line - -patch [ 1155415 ] Handle redirect instructions which can lead to a loop by james abley ------------------------------------------------------------------------- -r845 | wolfgang_fahl | 2008-03-30 14:25:35 +0200 (So, 30 Mrz 2008) | 1 line - -copyright year changed ------------------------------------------------------------------------- -r844 | wolfgang_fahl | 2008-03-30 14:23:00 +0200 (So, 30 Mrz 2008) | 1 line - -patch [ 1211154 ] NekoDOMParser default to lowercase by Dan Allen ------------------------------------------------------------------------- -r843 | wolfgang_fahl | 2008-03-30 14:02:11 +0200 (So, 30 Mrz 2008) | 2 lines - -patch [ 1117822 ] Patch for purgeEmptyCells() problem -by Glen Stampoultzis ------------------------------------------------------------------------- -r842 | wolfgang_fahl | 2008-03-30 13:31:47 +0200 (So, 30 Mrz 2008) | 1 line - -new interface ------------------------------------------------------------------------- -r841 | wolfgang_fahl | 2008-03-30 13:20:44 +0200 (So, 30 Mrz 2008) | 1 line - -inspired by Ville Skytt?\195?\164's patch[ 1065881 ] Fix servlettest classpath ------------------------------------------------------------------------- -r840 | wolfgang_fahl | 2008-03-30 00:53:21 +0100 (So, 30 Mrz 2008) | 1 line - -patch 1030851 by Jord Sonneveld - jsonneve ------------------------------------------------------------------------- -r839 | wolfgang_fahl | 2008-03-30 00:30:13 +0100 (So, 30 Mrz 2008) | 1 line - -patch 884146 + refactoring around handling events ------------------------------------------------------------------------- -r838 | wolfgang_fahl | 2008-03-29 19:22:38 +0100 (Sa, 29 Mrz 2008) | 1 line - -patch 1415415 added (mime types for tiff and pdf) ------------------------------------------------------------------------- -r837 | wolfgang_fahl | 2008-03-29 18:43:35 +0100 (Sa, 29 Mrz 2008) | 1 line - -event and onchange parts of patch 1653410 ------------------------------------------------------------------------- -r836 | wolfgang_fahl | 2008-03-29 16:53:36 +0100 (Sa, 29 Mrz 2008) | 1 line - -patch 1653410 added ------------------------------------------------------------------------- -r835 | wolfgang_fahl | 2008-03-29 10:20:17 +0100 (Sa, 29 Mrz 2008) | 1 line - -comment added ------------------------------------------------------------------------- -r834 | wolfgang_fahl | 2008-03-29 09:07:21 +0100 (Sa, 29 Mrz 2008) | 1 line - -1864072 patch by Matt ------------------------------------------------------------------------- -r833 | wolfgang_fahl | 2008-03-28 13:24:08 +0100 (Fr, 28 Mrz 2008) | 1 line - -Scriptable interface ------------------------------------------------------------------------- -r832 | wolfgang_fahl | 2008-03-28 12:39:44 +0100 (Fr, 28 Mrz 2008) | 1 line - -null handling for openNewWindow ------------------------------------------------------------------------- -r831 | wolfgang_fahl | 2008-03-28 11:48:28 +0100 (Fr, 28 Mrz 2008) | 1 line - -comment ------------------------------------------------------------------------- -r830 | wolfgang_fahl | 2008-03-28 11:47:18 +0100 (Fr, 28 Mrz 2008) | 1 line - -setProxy fix ------------------------------------------------------------------------- -r829 | wolfgang_fahl | 2008-03-28 11:17:35 +0100 (Fr, 28 Mrz 2008) | 1 line - -javadoc and error handling ------------------------------------------------------------------------- -r828 | wolfgang_fahl | 2008-03-28 10:49:25 +0100 (Fr, 28 Mrz 2008) | 1 line - -error handling improved ------------------------------------------------------------------------- -r827 | wolfgang_fahl | 2008-03-28 10:09:12 +0100 (Fr, 28 Mrz 2008) | 1 line - -isEclipse added ------------------------------------------------------------------------- -r826 | russgold | 2008-03-28 01:30:12 +0100 (Fr, 28 Mrz 2008) | 1 line - -PseudoServer enhancements: better debug messages, handle request timeout ------------------------------------------------------------------------- -r825 | wolfgang_fahl | 2008-03-27 20:54:12 +0100 (Do, 27 Mrz 2008) | 3 lines - -improvements by Mark Childerson as mailed in -Message-ID: <E1J...@ma...> - ------------------------------------------------------------------------- -r824 | wolfgang_fahl | 2008-03-27 20:34:55 +0100 (Do, 27 Mrz 2008) | 1 line - -debug of java.net.MalformedURLException problems ------------------------------------------------------------------------- -r823 | wolfgang_fahl | 2008-03-27 08:14:54 +0100 (Do, 27 Mrz 2008) | 1 line - -added stub for testCreateElement ------------------------------------------------------------------------- -r822 | wolfgang_fahl | 2008-03-26 19:36:27 +0100 (Mi, 26 Mrz 2008) | 1 line - -some refactoring ------------------------------------------------------------------------- -r821 | wolfgang_fahl | 2008-03-26 09:19:24 +0100 (Mi, 26 Mrz 2008) | 1 line - -added test for iFrame problem ------------------------------------------------------------------------- -r820 | wolfgang_fahl | 2008-01-10 12:36:06 +0100 (Do, 10 Jan 2008) | 1 line - -test proposal for Patch 1653410 ------------------------------------------------------------------------- -r819 | russgold | 2008-01-03 14:35:21 +0100 (Do, 03 Jan 2008) | 1 line - -fix Wolfgang's email address ------------------------------------------------------------------------- -r818 | russgold | 2008-01-02 18:23:57 +0100 (Mi, 02 Jan 2008) | 1 line - -update website definition to point to subversion repository, list Wolfgang as committer ------------------------------------------------------------------------- -r817 | wolfgang_fahl | 2007-12-31 17:06:45 +0100 (Mo, 31 Dez 2007) | 2 lines - -[ 1333390 ] patch for bug 1277797 - ------------------------------------------------------------------------- -r816 | wolfgang_fahl | 2007-12-31 15:09:41 +0100 (Mo, 31 Dez 2007) | 1 line - -patch 1443333 and some improved javadoc ------------------------------------------------------------------------- -r815 | wolfgang_fahl | 2007-12-31 12:43:52 +0100 (Mo, 31 Dez 2007) | 1 line - -1518901 ------------------------------------------------------------------------- -r814 | wolfgang_fahl | 2007-12-30 18:49:24 +0100 (So, 30 Dez 2007) | 1 line - -Patch 1531005. ------------------------------------------------------------------------- -r813 | wolfgang_fahl | 2007-12-30 18:33:18 +0100 (So, 30 Dez 2007) | 1 line - -test for Patch 1838699. ------------------------------------------------------------------------- -r812 | wolfgang_fahl | 2007-12-30 13:58:45 +0100 (So, 30 Dez 2007) | 1 line - -SR 1288796 ------------------------------------------------------------------------- -r811 | wolfgang_fahl | 2007-12-30 13:41:38 +0100 (So, 30 Dez 2007) | 1 line - -885326 checked but no go ------------------------------------------------------------------------- -r810 | wolfgang_fahl | 2007-12-30 13:29:18 +0100 (So, 30 Dez 2007) | 1 line - -svn ------------------------------------------------------------------------- -r809 | wolfgang_fahl | 2007-12-30 12:53:42 +0100 (So, 30 Dez 2007) | 1 line - -deactivated test and deprecated function for Patch [ 1838699 ] ------------------------------------------------------------------------- -r808 | wolfgang_fahl | 2007-12-30 12:07:01 +0100 (So, 30 Dez 2007) | 1 line - -pending patch 1155792 ------------------------------------------------------------------------- -r807 | wolfgang_fahl | 2007-12-30 11:13:55 +0100 (So, 30 Dez 2007) | 1 line - -patch 18386699 ------------------------------------------------------------------------- -r806 | wolfgang_fahl | 2007-12-30 10:38:33 +0100 (So, 30 Dez 2007) | 1 line - -1.6.3. prep ------------------------------------------------------------------------- -r805 | wolfgang_fahl | 2007-12-30 10:34:54 +0100 (So, 30 Dez 2007) | 1 line - -javadoc ------------------------------------------------------------------------- -r804 | wolfgang_fahl | 2007-12-30 10:30:39 +0100 (So, 30 Dez 2007) | 1 line - -BR 1843978 ------------------------------------------------------------------------- -r803 | wolfgang_fahl | 2007-12-30 09:11:21 +0100 (So, 30 Dez 2007) | 1 line - -new tests ------------------------------------------------------------------------- -r802 | wolfgang_fahl | 2007-12-28 17:32:11 +0100 (Fr, 28 Dez 2007) | 1 line - -extended TestSuite ------------------------------------------------------------------------- -r801 | wolfgang_fahl | 2007-12-28 17:24:44 +0100 (Fr, 28 Dez 2007) | 1 line - -new package plus tests ------------------------------------------------------------------------- -r800 | wolfgang_fahl | 2007-12-28 16:59:12 +0100 (Fr, 28 Dez 2007) | 2 lines - -[ 1371208 ] Patch for Cookie bug #1371204 - ------------------------------------------------------------------------- -r799 | wolfgang_fahl | 2007-12-28 16:50:28 +0100 (Fr, 28 Dez 2007) | 2 lines - -[ 1520925 ] SSL patch - ------------------------------------------------------------------------- -r798 | wolfgang_fahl | 2007-12-28 16:35:45 +0100 (Fr, 28 Dez 2007) | 1 line - -IBM Websphere https protocol support ------------------------------------------------------------------------- -r797 | wolfgang_fahl | 2007-12-28 16:16:07 +0100 (Fr, 28 Dez 2007) | 1 line - - [ 844084 ] Block HTTP referer added ------------------------------------------------------------------------- -r796 | wolfgang_fahl | 2007-12-28 15:39:07 +0100 (Fr, 28 Dez 2007) | 1 line - -fixed for abstract setProxy ------------------------------------------------------------------------- -r795 | wolfgang_fahl | 2007-12-28 15:10:41 +0100 (Fr, 28 Dez 2007) | 1 line - -comments for some suggestions ------------------------------------------------------------------------- -r794 | wolfgang_fahl | 2007-12-28 14:49:11 +0100 (Fr, 28 Dez 2007) | 1 line - -proposed patch 1152036 - not enabled ------------------------------------------------------------------------- -r793 | wolfgang_fahl | 2007-12-28 14:15:50 +0100 (Fr, 28 Dez 2007) | 1 line - -new tests and some comments ------------------------------------------------------------------------- -r792 | wolfgang_fahl | 2007-12-24 09:07:36 +0100 (Mo, 24 Dez 2007) | 1 line - -Fix for 1705925 ------------------------------------------------------------------------- -r791 | wolfgang_fahl | 2007-12-21 14:24:12 +0100 (Fr, 21 Dez 2007) | 3 lines - -ServletUnitHttpRequest.getDateHeader() always "returns -1"? -Date sent: Wed, 19 Dec 2007 11:17:36 -0700 -by Yu Chen ------------------------------------------------------------------------- -r790 | wolfgang_fahl | 2007-12-21 14:23:51 +0100 (Fr, 21 Dez 2007) | 1 line - -CVS headers don't work in Subversion ------------------------------------------------------------------------- -r789 | wolfgang_fahl | 2007-12-21 14:21:45 +0100 (Fr, 21 Dez 2007) | 1 line - -Header added ------------------------------------------------------------------------- -r788 | wolfgang_fahl | 2007-12-21 14:21:10 +0100 (Fr, 21 Dez 2007) | 3 lines - -ServletUnitHttpRequest.getDateHeader() always "returns -1"? -Date sent: Wed, 19 Dec 2007 11:17:36 -0700 -by Yu Chen ------------------------------------------------------------------------- -r787 | wolfgang_fahl | 2007-12-06 20:14:14 +0100 (Do, 06 Dez 2007) | 1 line - -made some controls public ------------------------------------------------------------------------- -r786 | wolfgang_fahl | 2007-11-23 19:36:23 +0100 (Fr, 23 Nov 2007) | 1 line - -improved index out of bounds handling for options - -30-Dec-2007: - 1853311 [PATCH] setExceptionsThrownOnScriptError not working 2007-12-18 17:53 5 Closed wolfgang_fahl gwrba - 1853073 [PATCH] getElementByID support 2007-12-18 15:29 5 Closed wolfgang_fahl gcc - 1853071 [PATCH] Comment DOM support 2007-12-18 15:28 5 Closed wolfgang_fahl gcc - 1853053 [PATCH] ServletContext requires getContextPath() 2007-12-18 14:38 5 Closed wolfgang_fahl gcc - 1843978 Accessing Options in a form is in lower case 2007-12-04 11:35 5 Closed wolfgang_fahl mkempa - 1791608 failed: TypeError: undefined is not a function. * 2007-09-10 16:20 5 Closed wolfgang_fahl thisisananth - 1705925 Bug in URL-decoding of GET-Request-Parameters * 2007-04-23 16:30 5 Closed wolfgang_fahl sthuebner - 1516007 Default SSL provider not being used * 2006-07-02 23:05 5 Closed wolfgang_fahl trajanoAccepting Donations - 1449658 Problems setting value of a select-box in a XHTML document * 2006-03-14 16:25 5 Closed wolfgang_fahl bkuser - 1243721 SSL doesn't work with IBM JDK * 2005-07-23 23:21 5 Closed wolfgang_fahl jherbst +1.7 Bug fixes and patches from 2007-12 to 2008-04: for a full subversion log you might want to issue the subversion command: + svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit + The following list of changes has been extracted from this subversion log automatically. You might want to look at + http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=920 + inserting the revision number mentioned below to see the full details of each change. E.g. the details for + (r788) can be found at + http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=788 + + + 1. improved index out of bounds handling for options (r786) + 2. made some controls public (r787) + 3. ServletUnitHttpRequest.getDateHeader() always "returns -1"?Date sent: Wed, 19 Dec 2007 11:17:36 -0700by Yu Chen (r788) + 4. ServletUnitHttpRequest.getDateHeader() always "returns -1"?Date sent: Wed, 19 Dec 2007 11:17:36 -0700by Yu Chen (r791) + 5. Fix for 1705925 (r792) + 6. new tests and some comments (r793) + 7. proposed patch 1152036 - not enabled (r794) + 8. comments for some suggestions (r795) + 9. fixed for abstract setProxy (r796) + 10. [ 844084 ] Block HTTP referer added (r797) + 11. IBM Websphere https protocol support (r798) + 12. [ 1520925 ] SSL patch (r799) + 13. [ 1371208 ] Patch for Cookie bug #1371204 (r800) + 14. new package plus tests (r801) + 15. extended TestSuite (r802) + 16. new tests (r803) + 17. BR 1843978 (r804) + 18. javadoc (r805) + 19. 1.6.3. prep (r806) + 20. patch 18386699 (r807) + 21. pending patch 1155792 (r808) + 22. deactivated test and deprecated function for Patch [ 1838699 ] (r809) + 23. svn (r810) + 24. 885326 checked but no go (r811) + 25. SR 1288796 (r812) + 26. test for Patch 1838699. (r813) + 27. Patch 1531005. (r814) + 28. 1518901 (r815) + 29. patch 1443333 and some improved javadoc (r816) + 30. [ 1333390 ] patch for bug 1277797 (r817) + 31. update website definition to point to subversion repository, list Wolfgang as committer (r818) + 32. fix Wolfgang's email address (r819) + 33. test proposal for Patch 1653410 (r820) + 34. added test for iFrame problem (r821) + 35. some refactoring (r822) + 36. added stub for testCreateElement (r823) + 37. debug of java.net.MalformedURLException problems (r824) + 38. improvements by Mark Childerson as mailed inMessage-ID: <E1J...@ma...> (r825) + 39. PseudoServer enhancements: better debug messages, handle request timeout (r826) + 40. isEclipse added (r827) + 41. error handling improved (r828) + 42. javadoc and error handling (r829) + 43. setProxy fix (r830) + 44. comment (r831) + 45. null handling for openNewWindow (r832) + 46. Scriptable interface (r833) + 47. 1864072 patch by Matt (r834) + 48. patch 1653410 added (r836) + 49. event and onchange parts of patch 1653410 (r837) + 50. patch 1415415 added (mime types for tiff and pdf) (r838) + 51. patch 884146 + refactoring around handling events (r839) + 52. patch 1030851 by Jord Sonneveld - jsonneve (r840) + 53. inspired by Ville Skytt?\195?\164's patch[ 1065881 ] Fix servlettest classpath (r841) + 54. new interface (r842) + 55. patch [ 1117822 ] Patch for purgeEmptyCells() problemby Glen Stampoultzis (r843) + 56. patch [ 1211154 ] NekoDOMParser default to lowercase by Dan Allen (r844) + 57. patch [ 1155415 ] Handle redirect instructions which can lead to a loop by james abley (r846) + 58. patch [ 1155415 ] Handle redirect instructions which can lead to a loop by james abley (r847) + 59. bug [ 1159844 ] allow parsing intercepted pages into HTMLSegment objectswith patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages)by Rafal Krzewski (r848) + 60. [ 1159887 ] patch for RFE 1159884 by Rafal Krzewski (r849) + 61. testcase for https://sourceforge.net/forum/message.php?msg_id=4482660by kauffmann81 (r851) + 62. test for https://sourceforge.net/forum/message.php?msg_id=3485431 (r852) + 63. tried to change the url encoding for spaces - did not succeed (r853) + 64. [ 1176688 ] Allow configuration of neko parser propertiesbut feature switched off since the test cases don't work then (r855) + 65. patch [ 1235132 ] Getter support for javascript form.nameby Peter Phillips + make it work for DOM engine (r856) + 66. [ 1246438 ] For issue 1221537; ServletUnitHttpRequest.getReader not implby Tim (r857) + 67. patch [ 1323053 ] Patch for 1323031 by Hugh Winkler (r858) + 68. [ 1488617 ] alternate patch for cookie bug #1371204by Richard Lee (r859) + 69. tests and start of implementation for [ 1870946 ] getAttribute function support in HTMLElement (not fixed yet so switched off for old scripting engine) (r860) + 70. bug report [ 1895501 ] Handling no codebase attribute in APPLET tagchange default from "/" to "." meaning from root directory to current directory (r861) + 71. comment modified (r862) + 72. [ 1672385 ] HttpOnly cookie looses all cookie info (r863) + 73. test for bug report [ 1533762 ] Valid cookies are rejectedby Alexey Bulat but unfortunately patch does not work (r864) + 74. test case for [ 1508516 ] Javascript method: "undefined" is not supported- works ! (r865) + 75. test and analysis for javaScript cloneNode feature asked for by Mark Childerson according tohttp://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html (r866) + 76. feature request [ 796961 ] Support indirect invocation of JavaScript events on elementsby David D Kilzertest added - works with no change to code (r867) + 77. Bug report [ 1124057 ] Out of Bounds Exception should be avoidedby Wolfgang Fahl of 2005-02-16 17:25 (r868) + 78. Test for bug report [ 1124024 ] Formcontrol and isDisabled should be publicby Wolfgang Fahl 2005-02-16 16:39 (r869) + 79. inspired by e-mail Execute Javascript of span elementof 2008-04-01 by Christoph (r870) + 80. bug fix for bug [ 1289151 ] Order of events in button.click() is wrong (r871) + 81. patch from bug report [ 1264704 ] [patch] add parent exception to HttpException by fabrizio giustina (r872) + 82. fixed after comment from Mark (r873) + 83. new NekoHtml 1.9.6 parser - please note one test failing:testJavascriptDetectionTrick (r874) + 84. test for [ 1396877 ] Javascript:properties parentNode,firstChild, .. returns nullby gklopp 2006-01-04 15:15 (r875) + 85. test for bug report [ 1153066 ] Eternal loop while processing javascript by Serguei Khramtchenko 2005-02-27 (r876) + 86. test for bug report [ 1295782 ] Method purgeEmptyCells Truncates Table by ahansen 2005-09-19 22:47no fix necessary anymore - already patched (r877) + 87. comments for patch 1509117 (r878) + 88. [ 1281655 ] [patch] allow text/xml to be parsed as htmlby fabrizio giustina made available static accessor for validContentTypes in WebResponse (r879) + 89. developers and release notes (r880) + 90. Bug report by Adam Hardy via developer Mailinglistof 2008-04-02 to avoid java.lang.IllegalAccessException: Class org.apache.tiles.access.TilesAccess can not access a member of class com.meterware.servletunit.ServletUnitServletContext with modifiers "public"when working with Tiles (r881) + 91. partially disabled noscript detection trick test, pending nekoHTML bugfix (r882) + 92. [ 1035949 ] NullPointerException on Weblink.clickby Ute Platzerhistoric (r883) + 93. patch for [ 1476380 ] Cookies incorrectly rejected despite valid domainby Garrick Toubassi (r884) + 94. [ 1052037 ] Semicolon not supported as URL param delimiterby Lucano fix yet only comments (r885) + 95. test for bug report [ 1161922 ] setting window.onload has no effectby Kent Tong - no fix necessary (r886) + 96. fix for bug report [ 1165454 ] ServletUnitHttpRequest.getScheme() returns "http" for secureby Jeff Mills getScheme now returns _protocol (in lowercase) gotten from the URL of the request. Test will throw java.net.MalFormedURLException / unknown protcol for "ftps" which is considered expected at this time (r887) + 97. [ 1281655 ] [patch] activated by chaning testTraversal (r888) + 98. [ 1629836 ] Anchor only form actions are not properly handledby Claude Brisson can not reproduce - testcase runs (r889) + 99. [ 1055450 ] Error loading included script aborts entire requestby Renaud Walduraworks already with 1.6.2 (r890) + 100. comment for bug report [ 1060291 ] setting multiple values in selection list by Vladimirthat the existing testMultiSelect seems to fit (r892) + 101. test case for bug report [ 1151277 ] httpunit 1.6 breaks Cookie handling for ServletUnitClientby Michael Corumruns without change (r896) + 102. trying to check [ 1113728 ] getRealPath throws IndexOutOfBoundsException on empty stringby Adrian Bakerhad to comment out again (r898) + 103. bug report [ 1396835 ] Javascript : length of a select element cannot be increasedby gklopp + patch (r899) + 104. bug report [ 1119205 ] EOFExceptions while using a Proxypatch by Ralf Bustset to pending in tracker - the patch does not break any testbut there is no unit test for the difference of the two implementations yet (r901) + 105. test for [ 1396896 ] Javascript: length property of a select element not writableby gklopp modified impl to throw "Not implemented exception"Modal test case for new Dom Scripting Engine (r902) + 106. patch for bug report [ 1264706 ] [patch] replace ClasspathEntityResolverput into comment (r903) + 107. test for bug report [ 1215734 ] another <select> problemby alexpatched the IllegalParameterValueException to but options in quotes to better show the "Kent, Richard" culpritshowed that tab and space could also lead to a problem (r904) + 108. test for the bug reports [ 1216567 ] Exception for large javascriptsby Grzegorz Lukasik and bug report [ 1572117 ] ClassFormatErrorby Walter Meierset quicktest to false to run the test for scripts froma thousand to a million lines for optimization levels from -2 to 9 (will take approx 30 secs)patch: new function:HttpUnitOptions.setJavaScriptOptimizationLevel(optimizationLevel);with default optimization level of -1 (interpret) (r905) + 109. test for open bug report [ 1043368 ] WebTable has wrong number of columnsby AutoTestadded and disabled (warning only) (r906) + 110. Formtable test added and added warnDisabled generalization for some tests (r907) + 111. Id keyword property set where missing (r908) + 112. Bug report [ 1122186 ] Duplicate select with same name cause errorfixed by changing constructor for IllegalParameterValueException and getting bad value in a separate function - may later also be used to fix the ClasscastException problem when a double is in the list of values (r909) + 113. should fix class cast exception for which we are waiting for junit test (r910) + 114. test for bug report [ 1143757 ] encoding of Special charcters broken with 1.6by Klaus Halfmannworks with no change (r911) + 115. bug report [ 1156972 ] isWebLink doesn't recognize all anchor tagsby fregienjnot patched yet and used warnDisabled until decision whether all <area> and <a> nodes are to be considered WebLinks no matter whether they have hrefs or not (r912) + 116. test for bug report [ 1159810 ] URL encoding problem with ServletUnitby Sven Helmberger addedis a duplicate of the other encoding bug and works (r913) + 117. bug #1110071: javascript cannot increase length of a select control (r914) + 118. Parse chunk lengths as hex (r915) + 119. test for Bug Report 1937946 added (but disabled for HttpUnitSuite since it needs index.html on localhostconvenience addition to be able to test this bug report on a Mac (r916) + 120. bug report (actually a feature request) 1942454 Make ServerInfo a constantby Philip Helger (r917) + 121. fix for Bug report 1212204 by Brian Bonner (r918) + 122. [ 1222269 ] Cannot setEntityResolver on ServletRunnerjim - jafergusadd another constructor for ServletRunner as requested (r919) 5-Jul-2007: Notes: The PostMethodWebRequest.setMimeEncoded method has been removed. Mime encoding, if desired, should now be This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-16 15:28:37
|
Revision: 920 http://httpunit.svn.sourceforge.net/httpunit/?rev=920&view=rev Author: wolfgang_fahl Date: 2008-04-16 08:28:35 -0700 (Wed, 16 Apr 2008) Log Message: ----------- comment added Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/dom/HTMLElementTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/dom/HTMLElementTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/dom/HTMLElementTest.java 2008-04-15 17:56:49 UTC (rev 919) +++ trunk/httpunit/test/com/meterware/httpunit/dom/HTMLElementTest.java 2008-04-16 15:28:35 UTC (rev 920) @@ -68,6 +68,10 @@ } + /** + * test base element attributes + * @throws Exception + */ public void testBaseElementAttributes() throws Exception { Element element = createElement( "code", new String[][] { { "class", "special" }, { "dir", "rtl" }, { "id", "sample" }, { "lang", "hb" }, { "title", "psalm 83"} } ); assertTrue( "node should be an HTMLElement but is " + element.getClass(), element instanceof HTMLElement ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-15 17:56:59
|
Revision: 919 http://httpunit.svn.sourceforge.net/httpunit/?rev=919&view=rev Author: wolfgang_fahl Date: 2008-04-15 10:56:49 -0700 (Tue, 15 Apr 2008) Log Message: ----------- [ 1222269 ] Cannot setEntityResolver on ServletRunner jim - jafergus add another constructor for ServletRunner as requested Modified Paths: -------------- trunk/httpunit/src/com/meterware/servletunit/ServletRunner.java Modified: trunk/httpunit/src/com/meterware/servletunit/ServletRunner.java =================================================================== --- trunk/httpunit/src/com/meterware/servletunit/ServletRunner.java 2008-04-15 17:51:21 UTC (rev 918) +++ trunk/httpunit/src/com/meterware/servletunit/ServletRunner.java 2008-04-15 17:56:49 UTC (rev 919) @@ -32,6 +32,7 @@ import com.meterware.httpunit.FrameSelector; import org.w3c.dom.Document; +import org.xml.sax.EntityResolver; import org.xml.sax.InputSource; import org.xml.sax.SAXException; @@ -105,8 +106,24 @@ _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ), webXml.getParentFile().getParentFile(), contextPath ); completeInitialization( contextPath ); } + + /** + * constructor with entity Resolver + * as asked for in Bug report 1222269 by jim - jafergus + * @param webXMLFileSpec + * @param resolver + * @throws IOException + * @throws SAXException + * @since 1.7 + */ + public ServletRunner( String webXMLFileSpec,EntityResolver resolver ) throws IOException, SAXException { + DocumentBuilder parser = HttpUnitUtils.newParser(); + parser.setEntityResolver(resolver); + _application = new WebApplication( parser.parse( + webXMLFileSpec ) ); + completeInitialization( null ); + } - /** * Constructor which expects an input stream containing the web.xml for the application. **/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-15 17:51:26
|
Revision: 918 http://httpunit.svn.sourceforge.net/httpunit/?rev=918&view=rev Author: wolfgang_fahl Date: 2008-04-15 10:51:21 -0700 (Tue, 15 Apr 2008) Log Message: ----------- fix for Bug report 1212204 by Brian Bonner Modified Paths: -------------- trunk/httpunit/src/com/meterware/httpunit/UncheckedParameterHolder.java trunk/httpunit/test/com/meterware/servletunit/HttpServletRequestTest.java Modified: trunk/httpunit/src/com/meterware/httpunit/UncheckedParameterHolder.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/UncheckedParameterHolder.java 2008-04-15 17:37:31 UTC (rev 917) +++ trunk/httpunit/src/com/meterware/httpunit/UncheckedParameterHolder.java 2008-04-15 17:51:21 UTC (rev 918) @@ -2,7 +2,7 @@ /******************************************************************************************************************** * $Id$ * - * Copyright (c) 2002-2003, 2007, Russell Gold + * Copyright (c) 2002-2003, 2007-2008 Russell Gold * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation @@ -105,7 +105,7 @@ String name = (String) e.nextElement(); Object[] values = (Object[]) _parameters.get( name ); for (int i = 0; i < values.length; i++) { - if (values[i] instanceof String) { + if (values[i] instanceof String || values[i] == null) { processor.addParameter( name, (String) values[i], _characterSet ); } else if (values[i] instanceof UploadFileSpec) { processor.addFile( name, (UploadFileSpec) values[i] ); Modified: trunk/httpunit/test/com/meterware/servletunit/HttpServletRequestTest.java =================================================================== --- trunk/httpunit/test/com/meterware/servletunit/HttpServletRequestTest.java 2008-04-15 17:37:31 UTC (rev 917) +++ trunk/httpunit/test/com/meterware/servletunit/HttpServletRequestTest.java 2008-04-15 17:51:21 UTC (rev 918) @@ -209,6 +209,34 @@ } + /** + * test Bug report 1212204 + * by Brian Bonner + * @throws Exception + */ + public void testBug1212204() throws Exception { + WebRequest request = new + GetMethodWebRequest("http://localhost/pathinfo?queryString"); + //assertEquals("queryString", request.getQueryString()); + request = new + GetMethodWebRequest("http://localhost/pathinfo?queryString"); + request.setParameter("queryString",""); + assertEquals("queryString=", request.getQueryString()); + request = new + GetMethodWebRequest("http://localhost/pathinfo?queryString"); + request.setParameter("queryString",(String)null); + assertEquals("queryString", request.getQueryString()); + WebRequest wr = new + GetMethodWebRequest("http://localhost?wsdl"); + wr.setParameter("abc","def"); + wr.setParameter("def",""); + wr.setParameter("test",(String)null); + wr.setParameter("wsdl", (String)null); + + assertEquals("wsdl&abc=def&def=&test",wr.getQueryString()); + } + + public void testInlineSingleValuedParameter() throws Exception { WebRequest wr = new GetMethodWebRequest( "http://localhost/simple?color=red&color=blue&age=12" ); HttpServletRequest request = new ServletUnitHttpRequest( NULL_SERVLET_REQUEST, wr, _context, new Hashtable(), NO_MESSAGE_BODY ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-15 17:37:33
|
Revision: 917 http://httpunit.svn.sourceforge.net/httpunit/?rev=917&view=rev Author: wolfgang_fahl Date: 2008-04-15 10:37:31 -0700 (Tue, 15 Apr 2008) Log Message: ----------- bug report (actually a feature request) 1942454 Make ServerInfo a constant by Philip Helger Modified Paths: -------------- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java Modified: trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java =================================================================== --- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-15 16:55:53 UTC (rev 916) +++ trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-15 17:37:31 UTC (rev 917) @@ -243,8 +243,9 @@ public String getRealPath( String path ) { return _application.getResourceFile( path ).getAbsolutePath(); } + + public static final String DEFAULT_SERVER_INFO="ServletUnit test framework"; - /** * Returns the name and version of the servlet container on which the servlet is running. @@ -255,7 +256,7 @@ * Dev Kit/1.0 (JDK 1.1.6; Windows NT 4.0 x86). **/ public String getServerInfo() { - return "ServletUnit test framework"; + return DEFAULT_SERVER_INFO; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-04-15 16:56:12
|
Revision: 916 http://httpunit.svn.sourceforge.net/httpunit/?rev=916&view=rev Author: wolfgang_fahl Date: 2008-04-15 09:55:53 -0700 (Tue, 15 Apr 2008) Log Message: ----------- test for Bug Report 1937946 added (but disabled for HttpUnitSuite since it needs index.html on localhost convenience addition to be able to test this bug report on a Mac Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-14 19:39:44 UTC (rev 915) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-04-15 16:55:53 UTC (rev 916) @@ -571,6 +571,35 @@ assertEquals( "File from unvalidated request", file.getAbsolutePath(), wr.getParameterValues( "File" )[0] ); } + + + /** + * test for BugReport 1937946 (different result on Mac than on other platforms + * @throws Exception + * to activate test download + * https://sourceforge.net/tracker/download.php?group_id=6550&atid=106550&file_id=274135&aid=1937946 + * and copy as index.html (or whatever - change url if necessary) to local host + * tested with real browser so deactivated for HttpUnitSuite + */ + public void xtestBugReport1937946Mac() throws Exception { + String url = "http://localhost/index.html"; + WebConversation conversation = new WebConversation(); + WebRequest request = new GetMethodWebRequest( url ); + WebResponse response = conversation.getResponse( request ); + + HttpUnitOptions.setExceptionsThrownOnScriptError( false ); + + assertNotNull( "Kein Response von URL '" + url + "'.", response ); + System.out.println( "\nResponse von URL '" + url + "'." ); + + WebForm form = response.getFormWithID( "suchen" ); + String param[] = form.getParameterNames(); + + for (int i = 0; i < param.length; i++) { + System.err.println(param[i]); + } + assertTrue("expecting 5 params but found "+param.length,param.length==5); + } //---------------------------------------------- private members ------------------------------------------------ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-04-14 19:39:56
|
Revision: 915 http://httpunit.svn.sourceforge.net/httpunit/?rev=915&view=rev Author: russgold Date: 2008-04-14 12:39:44 -0700 (Mon, 14 Apr 2008) Log Message: ----------- Parse chunk lengths as hex Modified Paths: -------------- trunk/httpunit/doc/release_notes.txt trunk/httpunit/src/com/meterware/httpunit/HttpUnitOptions.java trunk/httpunit/src/com/meterware/pseudoserver/ReceivedHttpMessage.java trunk/httpunit/test/com/meterware/pseudoserver/PseudoServerTest.java Modified: trunk/httpunit/doc/release_notes.txt =================================================================== --- trunk/httpunit/doc/release_notes.txt 2008-04-06 16:35:03 UTC (rev 914) +++ trunk/httpunit/doc/release_notes.txt 2008-04-14 19:39:44 UTC (rev 915) @@ -15,6 +15,8 @@ Revision History: ================= +14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal + 06-Apr-2008 bugfix 1110071: cannot increase length of a select control for a full subversion log you might want to issue the subversion command: Modified: trunk/httpunit/src/com/meterware/httpunit/HttpUnitOptions.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/HttpUnitOptions.java 2008-04-06 16:35:03 UTC (rev 914) +++ trunk/httpunit/src/com/meterware/httpunit/HttpUnitOptions.java 2008-04-14 19:39:44 UTC (rev 915) @@ -42,9 +42,12 @@ public static final String ORIGINAL_SCRIPTING_ENGINE_FACTORY = "com.meterware.httpunit.javascript.JavaScriptEngineFactory"; private static final String NEW_SCRIPTING_ENGINE_FACTORY = "com.meterware.httpunit.dom.DomBasedScriptingEngineFactory"; - // comment out the scripting engine not to be used + // comment out the scripting engine not to be used by allowing the appropriate number of asterisks in the comment on the next line (1 or 2) + /**/ final static public String DEFAULT_SCRIPT_ENGINE_FACTORY = ORIGINAL_SCRIPTING_ENGINE_FACTORY; - //final static public String DEFAULT_SCRIPT_ENGINE_FACTORY = NEW_SCRIPTING_ENGINE_FACTORY; + /*/ + final static public String DEFAULT_SCRIPT_ENGINE_FACTORY = NEW_SCRIPTING_ENGINE_FACTORY; + /*/ /** Modified: trunk/httpunit/src/com/meterware/pseudoserver/ReceivedHttpMessage.java =================================================================== --- trunk/httpunit/src/com/meterware/pseudoserver/ReceivedHttpMessage.java 2008-04-06 16:35:03 UTC (rev 914) +++ trunk/httpunit/src/com/meterware/pseudoserver/ReceivedHttpMessage.java 2008-04-14 19:39:44 UTC (rev 915) @@ -133,7 +133,7 @@ private int getNextChunkLength( InputStream inputStream ) throws IOException { try { - return Integer.parseInt( readHeaderLine( inputStream ) ); + return Integer.parseInt( readHeaderLine( inputStream ), 16 ); } catch (NumberFormatException e) { throw new IOException( "Unabled to read chunk length: " + e ); } Modified: trunk/httpunit/test/com/meterware/pseudoserver/PseudoServerTest.java =================================================================== --- trunk/httpunit/test/com/meterware/pseudoserver/PseudoServerTest.java 2008-04-06 16:35:03 UTC (rev 914) +++ trunk/httpunit/test/com/meterware/pseudoserver/PseudoServerTest.java 2008-04-14 19:39:44 UTC (rev 915) @@ -282,10 +282,10 @@ conn.startChunkedResponse( "POST", "/chunkedServlet" ); conn.sendChunk( "This " ); conn.sendChunk( "is " ); - conn.sendChunk( "also " ); + conn.sendChunk( "also (and with a greater size) " ); conn.sendChunk( "chunked."); SocketConnection.SocketResponse response2 = conn.getResponse(); - assertEquals( "retrieved body", "This is also chunked.", new String( response2.getBody() ) ); + assertEquals( "retrieved body", "This is also (and with a greater size) chunked.", new String( response2.getBody() ) ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-04-06 16:35:15
|
Revision: 914 http://httpunit.svn.sourceforge.net/httpunit/?rev=914&view=rev Author: russgold Date: 2008-04-06 09:35:03 -0700 (Sun, 06 Apr 2008) Log Message: ----------- bug #1110071: javascript cannot increase length of a select control Modified Paths: -------------- trunk/httpunit/build.xml trunk/httpunit/doc/release_notes.txt trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java trunk/httpunit/test/com/meterware/httpunit/javascript/FormScriptingTest.java Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-04-06 07:42:13 UTC (rev 913) +++ trunk/httpunit/build.xml 2008-04-06 16:35:03 UTC (rev 914) @@ -98,7 +98,7 @@ <target name="prepare_repository_classpath" depends="check_jars_dir" unless="have.local.jars"> <echo message="using repository classpath"/> <!-- Russell's proxy --> - <setproxy proxyhost="www-proxy.us.oracle.com" proxyport="80"/> + <!--<setproxy proxyhost="www-proxy.us.oracle.com" proxyport="80"/>--> <typedef classpath="${jars.dir}/ant-dependencies.jar" resource="dependencies.properties" /> <dependencies pathId="base.classpath" fileSetId="distributed.jars"> <!-- get from http://www.ibiblio.org/maven/rhino/jars/ --> Modified: trunk/httpunit/doc/release_notes.txt =================================================================== --- trunk/httpunit/doc/release_notes.txt 2008-04-06 07:42:13 UTC (rev 913) +++ trunk/httpunit/doc/release_notes.txt 2008-04-06 16:35:03 UTC (rev 914) @@ -15,6 +15,8 @@ Revision History: ================= +06-Apr-2008 bugfix 1110071: cannot increase length of a select control + for a full subversion log you might want to issue the subversion command: svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit 02-Apr-2008: Modified: trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java 2008-04-06 07:42:13 UTC (rev 913) +++ trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java 2008-04-06 16:35:03 UTC (rev 914) @@ -185,7 +185,7 @@ public static class Option extends ScriptableDelegate implements SelectionOption { - private String _text; + private String _text =""; private String _value; private boolean _defaultSelected; private boolean _selected; @@ -385,21 +385,16 @@ * Bug corrected : The length can be greater than the original length */ public void setLength( int length ) { - if (length < 0) return; - Option[] newArray = new Option[length ]; - if (length <= _options.length) { - System.arraycopy( _options, 0, - newArray, 0, length ); - } else { - System.arraycopy( _options, 0, newArray, 0, _options.length ); - for (int i = _options.length; i < length; i++) { - newArray[i] = new Option(); - newArray[i].setIndex(this, i); - } - } - _options = newArray; + if (length < 0) return; + Option[] newArray = new Option[ length ]; + System.arraycopy( _options, 0, newArray, 0, Math.min( length, _options.length ) ); + for (int i = _options.length; i < length; i++) { + newArray[i] = new Option(); + } + _options = newArray; } + public void put( int i, SelectionOption option ) { if (i < 0) return; Modified: trunk/httpunit/test/com/meterware/httpunit/javascript/FormScriptingTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/FormScriptingTest.java 2008-04-06 07:42:13 UTC (rev 913) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/FormScriptingTest.java 2008-04-06 16:35:03 UTC (rev 914) @@ -1154,6 +1154,8 @@ response.getLinks()[0].mouseOver(); assertEquals( "after change message", "selected #0", wc.popNextAlert() ); } + + /** * test that in case of an Index out of bounds problem an exception is thrown * with a meaningful message (not nullpointer exception) @@ -1601,6 +1603,43 @@ } /** + * Verifies that it is possible to increase the size of a select control. + * @throws Exception on any unexpected error + */ + public void testIncreaseSelectLength() throws Exception { + defineWebPage("Default", "<script language=JavaScript>\n" + + "function extend()\n"+ + "{\n"+ + "document.myForm.jobRoleID.options.length=2;\n" + + "document.myForm.jobRoleID.options[1].text='here';" + + "return true;\n" + + "}\n" + + "function viewSelect( choice ) {\n" + + " alert ('select has ' + choice.options.length + ' options' );\n" + + " alert ('last option is ' + choice.options[choice.options.length-1].text );\n" + + "}\n" + + "</script>" + + "<form name=myForm method=POST>" + + " <select name=\"jobRoleID\">" + + " <option value=\"0\" selected=\"selected\">Select Job Role</option>" + + " </select>" + + " <input type=\"text\" name=\"last_name\" value=\"Bloggs\">" + + "</form>" + + "<a href='#' onClick='viewSelect(document.myForm.jobRoleID); return false;'>a</href>\n" + + "<a href='#' onClick='extend(); return false;'>a</href>\n"); + WebConversation wc = new WebConversation(); + WebResponse wr = wc.getResponse( getHostPath() + "/Default.html" ); + wr.getLinks()[ 0 ].click(); + assertEquals( "1st message", "select has 1 options", wc.popNextAlert() ); + assertEquals( "2nd message", "last option is Select Job Role", wc.popNextAlert() ); + wr.getLinks()[ 1 ].click(); + wr.getLinks()[ 0 ].click(); + assertEquals( "3rd message", "select has 2 options", wc.popNextAlert() ); + assertEquals( "4th message", "last option is here", wc.popNextAlert() ); + } + + + /** * Test that the JavaScript 'value' and 'defaultValue' properties of a text input are distinct. * 'defaultValue' should represent the 'value' attribute of the input element. * 'value' should initially match 'defaultValue', but setting it should not affect the 'defaultValue'. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |