ASF Bugzilla – Attachment 26626 Details for
Bug 50734
400 Bad Request when there are no web applications deployed on Tomcat 6.0.32
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
400 Bad Request issue - patch proposal
400BadRequest.patch (text/plain), 899 bytes, created by
Violeta Georgieva
on 2011-02-09 04:42:50 UTC
(
hide
)
Description:
400 Bad Request issue - patch proposal
Filename:
MIME Type:
Creator:
Violeta Georgieva
Created:
2011-02-09 04:42:50 UTC
Size:
899 bytes
patch
obsolete
>Index: CoyoteAdapter.java >=================================================================== >--- CoyoteAdapter.java (revision 1068423) >+++ CoyoteAdapter.java (working copy) >@@ -507,6 +507,15 @@ > request.getMappingData()); > request.setContext((Context) request.getMappingData().context); > >+ // If there is no context at this point, it is likely no ROOT context >+ // has been deployed >+ if (request.getContext() == null) { >+ res.setStatus(404); >+ res.setMessage("Not found"); >+ connector.getService().getContainer().logAccess(request, response, 0, true); >+ return false; >+ } >+ > // Had to do this after the context was set. > // Unfortunately parseSessionId is still necessary as it > // affects the final URL. Safe as session cookies still
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50734
: 26626