You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2006/11/27 17:59:21 UTC

[jira] Created: (COCOON-1957) [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())

[Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())
---------------------------------------------------------------------------------------------

                 Key: COCOON-1957
                 URL: http://issues.apache.org/jira/browse/COCOON-1957
             Project: Cocoon
          Issue Type: Bug
          Components: - Blocks Framework
    Affects Versions: 2.2-dev (Current SVN)
            Reporter: Alexander Klimetschek
            Priority: Critical


The methods BlockCallHttpRequest.getServerName() and getServerPort() are implemented purely recursively which leads to a straight stack overflow when they are called.

The patch returns an empty string and the port number 80 as long as there is no general request information stack in the blocks-fw.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (COCOON-1957) [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1957?page=all ]

Jörg Heinicke reassigned COCOON-1957:
-------------------------------------

    Assignee: Jörg Heinicke

> [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())
> ---------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1957
>                 URL: http://issues.apache.org/jira/browse/COCOON-1957
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>         Assigned To: Jörg Heinicke
>            Priority: Critical
>             Fix For: 2.2-dev (Current SVN)
>
>         Attachments: cocoon-blockrequest-stack-overflow.patch
>
>
> The methods BlockCallHttpRequest.getServerName() and getServerPort() are implemented purely recursively which leads to a straight stack overflow when they are called.
> The patch returns an empty string and the port number 80 as long as there is no general request information stack in the blocks-fw.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (COCOON-1957) [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1957?page=all ]

Alexander Klimetschek updated COCOON-1957:
------------------------------------------

    Attachment: cocoon-blockrequest-stack-overflow.patch

Affects the blocks-fw module only.

> [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())
> ---------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1957
>                 URL: http://issues.apache.org/jira/browse/COCOON-1957
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>            Priority: Critical
>         Attachments: cocoon-blockrequest-stack-overflow.patch
>
>
> The methods BlockCallHttpRequest.getServerName() and getServerPort() are implemented purely recursively which leads to a straight stack overflow when they are called.
> The patch returns an empty string and the port number 80 as long as there is no general request information stack in the blocks-fw.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (COCOON-1957) [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1957?page=all ]

Jörg Heinicke closed COCOON-1957.
---------------------------------

    Fix Version/s: 2.2-dev (Current SVN)
       Resolution: Fixed

> [Patch] Stack overflow in BlockCallHttpRequest (recursive implementations of getServerName())
> ---------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1957
>                 URL: http://issues.apache.org/jira/browse/COCOON-1957
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>         Assigned To: Jörg Heinicke
>            Priority: Critical
>             Fix For: 2.2-dev (Current SVN)
>
>         Attachments: cocoon-blockrequest-stack-overflow.patch
>
>
> The methods BlockCallHttpRequest.getServerName() and getServerPort() are implemented purely recursively which leads to a straight stack overflow when they are called.
> The patch returns an empty string and the port number 80 as long as there is no general request information stack in the blocks-fw.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira