You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <de...@tuscany.apache.org> on 2009/04/23 16:48:30 UTC

[jira] Created: (TUSCANY-2984) Potential IndexOutOfBounds in DojoModuleActivator

Potential IndexOutOfBounds in DojoModuleActivator
-------------------------------------------------

                 Key: TUSCANY-2984
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2984
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Widget
            Reporter: Brent Daniel


DojoModuleActivator  attempts to load the first ServletHost from the ServletHostExtensionPoint. However, in most (all?) cases it will be another ModuleActivator that is adding the ServletHost to the extension point. Potentially, the DojoModuleActivator can run before the relevant ServletHost module activator, resulting in an IndexOutOfBounds on line 42 of DojoModuleActivator:

  this.servletHost = servletHosts.getServletHosts().get(0);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TUSCANY-2984) Potential IndexOutOfBounds in DojoModuleActivator

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende reassigned TUSCANY-2984:
----------------------------------------

    Assignee: Luciano Resende

> Potential IndexOutOfBounds in DojoModuleActivator
> -------------------------------------------------
>
>                 Key: TUSCANY-2984
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2984
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Widget
>            Reporter: Brent Daniel
>            Assignee: Luciano Resende
>
> DojoModuleActivator  attempts to load the first ServletHost from the ServletHostExtensionPoint. However, in most (all?) cases it will be another ModuleActivator that is adding the ServletHost to the extension point. Potentially, the DojoModuleActivator can run before the relevant ServletHost module activator, resulting in an IndexOutOfBounds on line 42 of DojoModuleActivator:
>   this.servletHost = servletHosts.getServletHosts().get(0);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TUSCANY-2984) Potential IndexOutOfBounds in DojoModuleActivator

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende resolved TUSCANY-2984.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-1.5.1

Fixed by allowing defining ordering when starting module activators.

> Potential IndexOutOfBounds in DojoModuleActivator
> -------------------------------------------------
>
>                 Key: TUSCANY-2984
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2984
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Widget
>            Reporter: Brent Daniel
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-1.5.1
>
>
> DojoModuleActivator  attempts to load the first ServletHost from the ServletHostExtensionPoint. However, in most (all?) cases it will be another ModuleActivator that is adding the ServletHost to the extension point. Potentially, the DojoModuleActivator can run before the relevant ServletHost module activator, resulting in an IndexOutOfBounds on line 42 of DojoModuleActivator:
>   this.servletHost = servletHosts.getServletHosts().get(0);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.