Return-Path: Delivered-To: apmail-incubator-beehive-commits-archive@www.apache.org Received: (qmail 62885 invoked from network); 14 Sep 2004 20:02:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Sep 2004 20:02:02 -0000 Received: (qmail 47940 invoked by uid 500); 14 Sep 2004 20:02:00 -0000 Delivered-To: apmail-incubator-beehive-commits-archive@incubator.apache.org Received: (qmail 47852 invoked by uid 500); 14 Sep 2004 20:01:59 -0000 Mailing-List: contact beehive-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Dev" Delivered-To: mailing list beehive-commits@incubator.apache.org Received: (qmail 47580 invoked by uid 500); 14 Sep 2004 20:01:55 -0000 Delivered-To: apmail-incubator-beehive-cvs@incubator.apache.org Received: (qmail 47554 invoked by uid 99); 14 Sep 2004 20:01:54 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 14 Sep 2004 13:01:52 -0700 Received: (qmail 62699 invoked by uid 65534); 14 Sep 2004 20:01:50 -0000 Date: 14 Sep 2004 20:01:50 -0000 Message-ID: <20040914200150.62695.qmail@minotaur.apache.org> From: dolander@apache.org To: beehive-cvs@incubator.apache.org Subject: svn commit: rev 46036 - in incubator/beehive/trunk/netui: src/tags-html/org/apache/beehive/netui/tags/html test/webapps/drt/coreWeb/bugs/cr193645 test/webapps/drt/testRecorder/config test/webapps/drt/testRecorder/tests X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: dolander Date: Tue Sep 14 13:01:50 2004 New Revision: 46036 Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/Controller.jpf incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/index.jsp incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Cr193645.xml Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml Log: Fix an issue where an empty body in the tag caused "null" to be output to the response. Created a BVT Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java ============================================================================== --- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java (original) +++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Body.java Tue Sep 14 13:01:50 2004 @@ -233,7 +233,8 @@ reportErrors(); } - results.append(_text); + if (_text != null) + results.append(_text); IScriptReporter sr = getScriptReporter(); if (sr != null) { Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/Controller.jpf ============================================================================== --- (empty file) +++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/Controller.jpf Tue Sep 14 13:01:50 2004 @@ -0,0 +1,41 @@ +/* + * Copyright 2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Header:$ + */ +package bugs.cr193645; + +import org.apache.beehive.netui.pageflow.FormData; +import org.apache.beehive.netui.pageflow.PageFlowController; +import org.apache.beehive.netui.pageflow.Forward; +import org.apache.beehive.netui.pageflow.annotations.Jpf; + +/** + * This is the default controller for a blank web application. + */ +@Jpf.Controller +public class Controller extends PageFlowController +{ + @Jpf.Action( + forwards={ + @Jpf.Forward(name="index", path="index.jsp") + } + ) + protected Forward begin() + { + return new Forward("index"); + } + +} Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/index.jsp ============================================================================== --- (empty file) +++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/cr193645/index.jsp Tue Sep 14 13:01:50 2004 @@ -0,0 +1,13 @@ +<%@ page language="java" contentType="text/html;charset=UTF-8"%> +<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%> +<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%> +<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%> + + + + + + + Hello World! + + \ No newline at end of file Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml ============================================================================== --- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml (original) +++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml Tue Sep 14 13:01:50 2004 @@ -1661,6 +1661,18 @@ + Cr193645 + Empty Body was creating a "null" inside the response. + coreWeb + + bvt + clarifyBugs + + + Body + + + CtAnchorNullBinding Binding to null in the Anchor attributes coreWeb Added: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Cr193645.xml ============================================================================== --- (empty file) +++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/Cr193645.xml Tue Sep 14 13:01:50 2004 @@ -0,0 +1,71 @@ + + + Cr193645 + Daryl + 14 Sep 2004, 01:54:25.680 PM MDT + Verify the function of a null <body> tag. + + + 1 + + HTTP + 1.1 + localhost + 8080 + /coreWeb/bugs/cr193645/Controller.jpf + GET + + + + JSESSIONID + 386D063332410E4972D246710F7B2374 + + + + + accept + image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* + + + accept-encoding + gzip, deflate + + + accept-language + en-us + + + connection + Keep-Alive + + + cookie + JSESSIONID=386D063332410E4972D246710F7B2374 + + + host + localhost:8080 + + + user-agent + Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.40607) + + + + + 200 + + + + + + + Hello World! +]]> + + + + 14 Sep 2004, 01:54:30.197 PM MDT + 1 +