DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41045>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41045

           Summary: path attribute wrongly encoded in the stop task
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


There's a problem with Catalina Ant tasks, in the path attribute.

Define in an Ant build file the stop task.

<taskdef name="stop" classname="org.apache.catalina.ant.StopTask">      
        <classpath refid="ant.classpath" />             
</taskdef>      

Then include a task that perform a stop of a running web application

<stop url="${tomcat.manager.url}" username="${tomcat.manager.username}"
password="${tomcat.manager.password}" path="/myapp"/>

What you obtain is:

BUILD FAILED
C:\app\build.xml:258: java.io.IOException: Server returned HTTP response code:
401 for URL: http://10.212.21.130:5050/manager/stop?path=%2Fmyapp

I think what is wrong is that the the character '/' is encoded by the stop task,
and used when the manager application URL is called.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to