rlubke | 5 Nov 2002 23:15
Picon
Favicon

cvs commit: jakarta-watchdog-4.0/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Error ServletToJSPError502PageTest.html ServletToJSPErrorPageTest.html ServletToServletError501PageTest.html ServletToServletErrorPageTest.html

rlubke      2002/11/05 14:15:21

  Modified:    src/clients/org/apache/jcheck/servlet/client/javax_servlet/Error
                        ServletToJSPError502PageTest.html
                        ServletToJSPErrorPageTest.html
                        ServletToServletError501PageTest.html
                        ServletToServletErrorPageTest.html
  Log:
   - fixed a bug in the goldenfiles for the error page tests.  The request uri was incorrect.

  Revision  Changes    Path
  1.3       +1 -1      jakarta-watchdog-4.0/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Error/ServletToJSPError502PageTest.html

  Index: ServletToJSPError502PageTest.html
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Error/ServletToJSPError502PageTest.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ServletToJSPError502PageTest.html	30 Aug 2002 17:23:58 -0000	1.2
  +++ ServletToJSPError502PageTest.html	5 Nov 2002 22:15:21 -0000	1.3
   <at>  <at>  -3,5 +3,5  <at>  <at> 
   exception_type=null<br>
   message=the 502 message<br>
   exception=null<br>
  -request_uri=/servlet-tests/tests/javax_servlet/Error/ServletToJSPError502PageTestServlet<br>
  +request_uri=/servlet-tests/ServletToJSPError502PageTest<br>
   servlet_name=ServletToJSPError502PageTest<br>

  
(Continue reading)

rlubke | 30 Oct 2002 15:05
Picon
Favicon

cvs commit: jakarta-watchdog-4.0/src/conf jsp-gtest.xml

rlubke      2002/10/30 06:05:22

  Modified:    src/conf jsp-gtest.xml
  Log:
  Replaced gtest taskes in individual test targets with watchdog.
  
  Revision  Changes    Path
  1.22      +181 -181  jakarta-watchdog-4.0/src/conf/jsp-gtest.xml
  
  Index: jsp-gtest.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/conf/jsp-gtest.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- jsp-gtest.xml	18 Jul 2002 12:33:08 -0000	1.21
  +++ jsp-gtest.xml	30 Oct 2002 14:05:22 -0000	1.22
   <at>  <at>  -1603,7 +1603,7  <at>  <at> 
       <!-- individual targets -->
   
           <target name="positiveContentTypeTest">
  -        <gtest request="GET /jsp_coresyntx_direct_pg_content/jsp/core_syntax/directives/page/content/positiveContenttype.jsp HTTP/1.0"
  +        <watchdog request="GET /jsp_coresyntx_direct_pg_content/jsp/core_syntax/directives/page/content/positiveContenttype.jsp HTTP/1.0"
               testName="positiveContentTypeTest" debug="0"
               host="${host}" port="${port}" exactMatch="false"
               expectHeaders="Content-Type:text/plain;charset=ISO-8859-1"
   <at>  <at>  -1613,7 +1613,7  <at>  <at> 
       </target>
   
       <target name="negativeDuplicateContentFatalTranslationErrorTest">
(Continue reading)

jean-frederic clere | 30 Oct 2002 14:47

Running a single jsp test with 4.0.0.

Hi,

I am trying to run a single jsp test but it fails:
+++
jakarta <at> vtxclere:~/jakarta-watchdog-4.0.0 > ant 
-Djtest=negativeFatalTranslationErrorTest jsp
Buildfile: build.xml

jsp:

execute:
      [java] Buildfile: conf/jsp-gtest.xml

      [java] negativeFatalTranslationErrorTest:

      [java] BUILD FAILED
      [java] /home/jakarta/jakarta-watchdog-4.0.0/conf/jsp-gtest.xml:1672: Could 
not create task or type of type: gtest.

      [java] Ant could not find the task or a class this task relies upon.
+++

What am I doing wrong?
Where is gtest defined?

Cheers

Jean-frederic
Craig R. McClanahan | 8 Oct 2002 00:30
Picon
Favicon

Re: Tomcat vs Websphere sendRedirect (fwd)

Sounds like a good opportunity for an additional Watchdog (and ultimately
CTS) test ...

Craig

---------- Forwarded message ----------
Date: Mon, 7 Oct 2002 15:21:17 -0700 (PDT)
From: Craig R. McClanahan <craigmcc <at> apache.org>
Reply-To: Tomcat Users List <tomcat-user <at> jakarta.apache.org>
To: Tomcat Users List <tomcat-user <at> jakarta.apache.org>
Subject: Re: Tomcat vs Websphere sendRedirect

On Mon, 7 Oct 2002, Jared Reeve wrote:

> Date: Mon, 7 Oct 2002 14:56:36 -0700 (PDT)
> From: Jared Reeve <jaawohl <at> yahoo.com>
> Reply-To: Tomcat Users List <tomcat-user <at> jakarta.apache.org>
> To: tomcat-user <at> jakarta.apache.org
> Subject: Tomcat vs Websphere sendRedirect
>
>
> In WebSphere I do a sendRedirect("/servlet/MyServlet") within a servlet
> and it works successfully.  It prepends the host and root URI.  Why
> can't I do the same thing in Tomcat?  It does not prepend the root URI.
> Do I not have something configured correctly?  I would like to port this
> application without changing any code.  Thanks. function SetDomain(d) {
> document.domain = d; }
>

Websphere appears to be broken in this respect.  See the last sentence of
(Continue reading)

A. Gunes Koru | 2 Oct 2002 10:58

A survey about handling bugs


Hello all Watchdog contributors,

I am conducting a survey about the way defects (or bugs-I use these two
words interchangeably) are handled in open source software projects. It is
very easy to fill out. It consists of three short sections which can be
completed at once or in different sessions. The survey can be found in the
address:

http://www.seas.smu.edu/~gkoru/surveys/dhsurvey.html

This survey includes questions that can be answered by developers,testers,
bug fixers, bug database owners, and project managers. I would greatly
appreciate if you could visit the above web page and fill out the survey.
I am sure you will find the questions very interesting and thought
provoking.  We need the help of all contributors of Watchdog in the above
roles to understand how we can use bugs data collected in your project for
software engineering research.

Nowadays, there is a huge amount of bug data on the Internet collected
during the development of all open source products. A bug database include
useful information to identify high-risk, problem-prone modules
(components) in the software. It is also possible to measure these
problem-prone components using several complexity metrics (McCabe's
cyclomatic complexity, Halstead's metrics, etc.), since the source code is
available. If a characterization, which is generalizable across many
projects (sub-projects) could be made in terms of complexity, focused
quality improvement would become possible in the future projects. So far,
in the literature, there is quite amount of evidence that 80 percent of
the problems occur from 20 percent of the modules (or software
(Continue reading)

Ryan Lubke | 25 Sep 2002 16:52
Picon

[Fwd: Re: Testing SRV 4.7 (SSL Attributes)]


> Comments inline ...
> On Tuesday 24 September 2002 11:21 pm, Ryan Lubke wrote:
> > Hi Jason,
> >
> > Comments inline....
> >
> > Jason Hunter wrote:
> > >Thanks for the fast response, Ryan.
> > >
> > >Here's how I read the spec.  Simple servlet containers (outside J2EE)
> > >aren't required to support SSL/HTTPS.  However *if a container does
> > >choose to support SSL/HTTPS* then they're required to expose those
> > >attributes.
> > >
> > >Per SRV.4.7: "If a request has been transmitted over a secure protocol,
> > >such as HTTPS, this information must be exposed via the isSecure method
> > >of the ServletRequest interface. The web container must expose the
> > >following attributes to the servlet programmer: ..."
> > >
> > >So the rule for implementors is either (a) don't do SSL or (b) do it
> > >correctly.  I don't think it's appropriate to assume that since
> > >something is optional then we shouldn't test that when present the item
> > >behaves as it should
> >
> > I don't disagree that when using SSL, there are strict requirements that
> > must be followed, but as far as the TCK goes the functionality is
> > optional per the spec and won't be tested (unless there is a shift in
> > testing philosophy).
> >
(Continue reading)

Jason Hunter | 25 Sep 2002 01:07
Picon
Favicon

Testing SRV 4.7 (SSL Attributes)

Hi all,

It's come to my attention that most servlet container vendors totally
ignore the requirements laid out Servlet API 2.3 SRV 4.7.  These
requirements are to expose various attributes of an SSL connection via
the javax.servlet.request.cipher_suite, javax.servlet.request.key_size,
and javax.servlet.request.X509Certificate request attributes.

My theory is that server vendors don't support this requirement because
Watchdog (and presumably the official TCK) don't actually check it, thus
giving server vendors a false sense of compatibility.  Whether my
theory's true or not, I'm confident that if Watchdog (and thus the
official TCK) started checking this requirement then soon enough all
servlet container vendors would support it.  I think that's pretty
important because banks and such need access to these attributes to
ensure a secure connection.

To that end, I'd like to get a sense of the thoughts here for if
Watchdog can add these sorts of tests.  I don't actually see any
SSL-based tests happening right now, but perhaps I'm not looking in the
right place.  Was that intentional, because of the difficulty setting up
an SSL server?  Is there another reason not to test for the SSL-related
requirements?  How much work would it be to add SSL-related testing? 
I'm happy to help to the extent I have time, but would appreciate
hearing the conventional wisdom surrounding these issues.

-jh-
rlubke | 13 Sep 2002 16:56
Picon
Favicon

cvs commit: jakarta-watchdog-4.0/src/conf servlet-gtest.xml

rlubke      2002/09/13 07:56:45

  Modified:    src/conf servlet-gtest.xml
  Log:
   - Commented out the two getHeaders() tests that have been failing.  The spec's handling of headers in this
case is being made clear for the 2.4 specification.

  Revision  Changes    Path
  1.48      +8 -8      jakarta-watchdog-4.0/src/conf/servlet-gtest.xml

  Index: servlet-gtest.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/conf/servlet-gtest.xml,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- servlet-gtest.xml	5 Aug 2002 02:44:59 -0000	1.47
  +++ servlet-gtest.xml	13 Sep 2002 14:56:44 -0000	1.48
   <at>  <at>  -1663,14 +1663,14  <at>  <at> 
               testStrategy="A negative test for HttpServletRequest.getHeader() method."
           />

  -        <watchdog request="GET /servlet-tests/GetHeadersTest HTTP/1.0"
  +       <!-- <watchdog request="GET /servlet-tests/GetHeadersTest HTTP/1.0"
               testName="GetHeadersTest" debug="0"
               host="${host}" port="${port}" exactMatch="true"
               requestHeaders="Accept-Language:en-us|Accept-Language:ga-us"
               goldenFile="${wgdir}/javax_servlet_http/HttpServletRequest/GetHeadersTest.html"
               assertion="Returns all the values of the specified request header as an Enumeration of String
objects.,specified in the Java Servlet Pages Specification v2.3, Sec 14"
(Continue reading)

rlubke | 6 Sep 2002 16:49
Picon
Favicon

cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequestWrapper HttpServletRequestWrapperGetRequestURLTestServlet.java

rlubke      2002/09/06 07:49:18

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequestWrapper
                        HttpServletRequestWrapperGetRequestURLTestServlet.java
  Log:
  Fix for bug 11616.

  Made header name check case insensitive.

  Revision  Changes    Path
  1.4       +7 -7      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequestWrapper/HttpServletRequestWrapperGetRequestURLTestServlet.java

  Index: HttpServletRequestWrapperGetRequestURLTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequestWrapper/HttpServletRequestWrapperGetRequestURLTestServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HttpServletRequestWrapperGetRequestURLTestServlet.java	5 Aug 2002 02:33:32 -0000	1.3
  +++ HttpServletRequestWrapperGetRequestURLTestServlet.java	6 Sep 2002 14:49:18 -0000	1.4
   <at>  <at>  -96,16 +96,16  <at>  <at> 
           for (Enumeration e = request.getHeaderNames(); e.hasMoreElements(); ) {
               String temp = (String) e.nextElement();

  -            if ( temp.equals( "prefix" ) ) {
  +            if ( temp.equalsIgnoreCase( "prefix" ) ) {
                   prefix = request.getHeader( temp );
                   found1 = true;
  -            } else if ( temp.equals( "server" ) ) {
  +            } else if ( temp.equalsIgnoreCase( "server" ) ) {
(Continue reading)

morgand | 3 Sep 2002 22:03
Picon
Favicon

cvs commit: jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog Watchdog.java

morgand     2002/09/03 13:03:48

  Modified:    latka-scratch/src/java/org/apache/watchdog Watchdog.java
  Log:
  allows execution of 1 or more entities

  Revision  Changes    Path
  1.4       +8 -5      jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog/Watchdog.java

  Index: Watchdog.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog/Watchdog.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Watchdog.java	3 Sep 2002 19:48:10 -0000	1.3
  +++ Watchdog.java	3 Sep 2002 20:03:48 -0000	1.4
   <at>  <at>  -32,8 +32,8  <at>  <at> 
       public static void main(String args[]) throws Exception {

           Watchdog watchdog = new Watchdog();
  -        if (args.length == 1) {
  -            watchdog.runTests(args[0]);
  +        if (args.length >= 1) {
  +            watchdog.runTests(args);
           } else {
               watchdog.runTests();
           }
   <at>  <at>  -45,7 +45,7  <at>  <at> 
           return watchdogProps;
(Continue reading)

morgand | 3 Sep 2002 21:48
Picon
Favicon

cvs commit: jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog Watchdog.java

morgand     2002/09/03 12:48:10

  Modified:    latka-scratch/src/java/org/apache/watchdog Watchdog.java
  Log:
  removed debug line

  Revision  Changes    Path
  1.3       +0 -2      jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog/Watchdog.java

  Index: Watchdog.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/latka-scratch/src/java/org/apache/watchdog/Watchdog.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Watchdog.java	3 Sep 2002 19:47:28 -0000	1.2
  +++ Watchdog.java	3 Sep 2002 19:48:10 -0000	1.3
   <at>  <at>  -64,8 +64,6  <at>  <at> 
               XMLOutputter outputter = new XMLOutputter("  ", true);
               String xmlDoc = outputter.outputString(doc);

  -            System.out.println(xmlDoc);
  -
               StringReader reader = new StringReader(xmlDoc);
               Suite suite = new Suite(reader);
               runTests(suite,watchdogProps);

Gmane