It should be 404, but since the management console is registered as the ROOT webapp, the requests to non-existing webapps gets redirected to that. Hence, you are seeing a 302 redirect rather than a 404.
If you need to get rid of this behavior, you need to set the WebContextRoot under carbon.xml to change the context of the mgt console webapp. On Sun, Jul 19, 2015 at 3:46 PM, Suhan Dharmasuriya <[email protected]> wrote: > Hi, > > We are running a cluster test automation for an AS cluster to test the Dep > Sync functionality. > In AS cluster we have a manger node and two worker nodes fronted by an > Nginx load balancer. > > When testing the web app undeployment, we are following the below steps. > > 1. Undeploy the webapp from the manager node; webapp removed from svn repo > and cluster > message is sent. > 2. Worker node receive the cluster message and undeploy the web app with > an svn update. > 3. At this point, we are sending an HTTP request to the webapp in a worker > node to see whether > the undeployment has taken place as expected in worker nodes. > 4. We are expecting an HTTP 404 (Not Found) response from the worker node. > > This test was passing initially and now got failed the reason being that > worker node response > sending the HTTP 302 (Moved Temporarily) response instead of HTTP 404. > > What should be the correct behaviour? > After undeploying the webapp and further HTTP requests are received to the > removed webapp, > what should be the node response; HTTP 302 or HTTP 404? > > Thanks, > Suhan > > -- > Suhan Dharmasuriya > Software Engineer - Test Automation > > *WSO2, Inc. * > > lean . enterprise . middleware > Tel: +94 112 145345 > Mob: +94 779 869138 > Blog: http://suhan-opensource.blogspot.com/ > -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
