cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r479712 - /cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/util/BlockCallHttpServletRequest.java
Date Mon, 27 Nov 2006 18:28:04 GMT
Author: joerg
Date: Mon Nov 27 10:28:03 2006
New Revision: 479712

URL: http://svn.apache.org/viewvc?view=rev&rev=479712
Log:
COCOON-1957: prevent stack overflow resulting from recursive call (thanks to Alexander Klimetschek)

Modified:
    cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/util/BlockCallHttpServletRequest.java

Modified: cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/util/BlockCallHttpServletRequest.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/util/BlockCallHttpServletRequest.java?view=diff&rev=479712&r1=479711&r2=479712
==============================================================================
--- cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/util/BlockCallHttpServletRequest.java
(original)
+++ cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/util/BlockCallHttpServletRequest.java
Mon Nov 27 10:28:03 2006
@@ -34,9 +34,6 @@
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpSessionContext;
 
-import org.apache.commons.collections.map.AbstractHashedMap;
-
-
 /**
  * Create a HttpServletRequest from an URL, that is used while calling e.g. a block.
  * 
@@ -314,14 +311,16 @@
      * @see javax.servlet.ServletRequest#getServerName()
      */
     public String getServerName() {
-        return this.getServerName();
+        // TODO implement this
+        return "";
     }
 
     /* (non-Javadoc)
      * @see javax.servlet.ServletRequest#getServerPort()
      */
     public int getServerPort() {
-        return this.getServerPort();
+        // TODO implement this
+        return 80;
     }
 
     /* (non-Javadoc)



Mime
View raw message