You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by "Magnus Grimsell (JIRA)" <ca...@jakarta.apache.org> on 2005/02/10 16:04:13 UTC

[jira] Created: (CACTUS-189) cactifywar cannot merge servlets run-as element

cactifywar cannot merge servlets run-as element
-----------------------------------------------

         Key: CACTUS-189
         URL: http://issues.apache.org/jira/browse/CACTUS-189
     Project: Cactus
        Type: Bug
  Components: Ant Integration  
    Reporter: Magnus Grimsell


To have the tests run as a certain principal I merge in a web.xml file containing the following snippet:

    <servlet>
        <servlet-name>ServletRedirector</servlet-name>
        <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
        <run-as>
            <role-name>myTrustedUser</role-name>
        </run-as>
    </servlet>

However the run-as element does not end up in the merged web.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Resolved: (CACTUS-189) cactifywar cannot merge servlets run-as element

Posted by "Vincent Massol (JIRA)" <ca...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/CACTUS-189?page=history ]
     
Vincent Massol resolved CACTUS-189:
-----------------------------------

      Assign To: Vincent Massol
     Resolution: Fixed
    Fix Version: 1.8

Applied. Thanks! If you have some time for writing some unit tests too that would be very cool ;-) (hint: there's an existing WebXmlTest file that could be updated with a test which proves it works).

> cactifywar cannot merge servlets run-as element
> -----------------------------------------------
>
>          Key: CACTUS-189
>          URL: http://issues.apache.org/jira/browse/CACTUS-189
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Reporter: Magnus Grimsell
>     Assignee: Vincent Massol
>      Fix For: 1.8
>  Attachments: cactus-patch.txt
>
> To have the tests run as a certain principal I merge in a web.xml file containing the following snippet:
>     <servlet>
>         <servlet-name>ServletRedirector</servlet-name>
>         <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
>         <run-as>
>             <role-name>myTrustedUser</role-name>
>         </run-as>
>     </servlet>
> However the run-as element does not end up in the merged web.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Closed: (CACTUS-189) cactifywar cannot merge servlets run-as element

Posted by "Vincent Massol (JIRA)" <ca...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/CACTUS-189?page=history ]
     
Vincent Massol closed CACTUS-189:
---------------------------------


> cactifywar cannot merge servlets run-as element
> -----------------------------------------------
>
>          Key: CACTUS-189
>          URL: http://issues.apache.org/jira/browse/CACTUS-189
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Reporter: Magnus Grimsell
>     Assignee: Vincent Massol
>      Fix For: 1.8
>  Attachments: cactus-patch.txt
>
> To have the tests run as a certain principal I merge in a web.xml file containing the following snippet:
>     <servlet>
>         <servlet-name>ServletRedirector</servlet-name>
>         <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
>         <run-as>
>             <role-name>myTrustedUser</role-name>
>         </run-as>
>     </servlet>
> However the run-as element does not end up in the merged web.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Updated: (CACTUS-189) cactifywar cannot merge servlets run-as element

Posted by "Magnus Grimsell (JIRA)" <ca...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/CACTUS-189?page=history ]

Magnus Grimsell updated CACTUS-189:
-----------------------------------

    Attachment: cactus-patch.txt

I have made a patch to fix this problem by letting the WebXmlMerger acknowledge run-as elements.

> cactifywar cannot merge servlets run-as element
> -----------------------------------------------
>
>          Key: CACTUS-189
>          URL: http://issues.apache.org/jira/browse/CACTUS-189
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Reporter: Magnus Grimsell
>  Attachments: cactus-patch.txt
>
> To have the tests run as a certain principal I merge in a web.xml file containing the following snippet:
>     <servlet>
>         <servlet-name>ServletRedirector</servlet-name>
>         <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
>         <run-as>
>             <role-name>myTrustedUser</role-name>
>         </run-as>
>     </servlet>
> However the run-as element does not end up in the merged web.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org