Simplify

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1639902 13f79535-47bb-0310-9956-ffa450edef68
Correct attribute name as reported on users list

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640010 13f79535-47bb-0310-9956-ffa450edef68
Fix BZ 57215. Ensure that the value returned by
HttpServletRequest.getContextPath() is not decoded which also implies it
has not been normalized.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640083 13f79535-47bb-0310-9956-ffa450edef68
Fix BZ 57172. Throw an ISE with appropriate message if an attempt is
made to load a resource from a web application class loader than has
been stopped.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640084 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57216
Catch "/" as an invalid setting for context path and improve handling of
null values.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640088 13f79535-47bb-0310-9956-ffa450edef68
Add CredentialHandler support to storeconfig.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640186 13f79535-47bb-0310-9956-ffa450edef68
Set native EOL.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640187 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57216
Followup to r1640089. Correct implementation typo.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640275 13f79535-47bb-0310-9956-ffa450edef68
Remove unneeded taskdef for <setproxy> task.

The announcement for Ant 1.8.2 said,
* distinction between core tasks and optional tasks is abolished"
[http://mail-archives.apache.org/mod_mbox/ant-dev/201012.mbox/%3C4D18C53F.3060700%40gmx.de%3E]


git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640322 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57216
Warn and correct invalid context paths that end with a '/'

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640347 13f79535-47bb-0310-9956-ffa450edef68
Correct tests to use the correct context path for ROOT webapp.
Those were printing the warning
"StandardContext.setPath A context path must either be an empty string or start with a '/'"...

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640361 13f79535-47bb-0310-9956-ffa450edef68
A better message text. Followup to r1640363.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640365 13f79535-47bb-0310-9956-ffa450edef68
Revert unwanted change from r1640087 (r1640084 in trunk) that was a fix for BZ 57172

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640403 13f79535-47bb-0310-9956-ffa450edef68
Further fix for BZ 57172 - followup to r1640087 (r1640084 in trunk).
Be consistent with "webappClassLoader.stopped" message handling and throw an ISE from findResourceInternal

In all call chains (findClass() / findResource() public methods) there is a checkStateForResourceLoading()/checkStateForClassLoading() check at the start of that public method, so it is unlikely to hit an ISE here unless there is some kind of race.  Throwing an ISE is a more consistent behaviour, and calling a common method is better than a custom rarely used if() block.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640410 13f79535-47bb-0310-9956-ffa450edef68
Correct message that is logged when load-on-startup servlet fails to load.
It was logging context name instead of servlet name.
Also correct message key. The message belongs to StandardContext. It is not used anywhere else. It is not used by StandardWrapper.

To test: uncomment CGIServlet and its mapping in conf/web.xml and look for messages in localhost.$DATE.log file.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640652 13f79535-47bb-0310-9956-ffa450edef68
Update CGI-howto.
Recommend to copy the servlet into one's own web application instead of uncommenting it globally.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640655 13f79535-47bb-0310-9956-ffa450edef68
Correct documentation for CGI servlet:
The default value for cgiPathPrefix is null. The "WEB-INF/cgi" value is the recommended one and used in conf/web.xml example.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640658 13f79535-47bb-0310-9956-ffa450edef68
Fix various problems identified with flushing batched messages:
- Flush triggered by disabling batching failed to flip buffer before writing and also failed to clear the buffer after writing was complete. This resulted in duplicated and/or corrupted messages.
- The flush triggered by session close was too late since no writes are permitted once the close process starts. This resulted in an exception being thrown.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640688 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57239
Fix typo. Patch by vladk.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1640700 13f79535-47bb-0310-9956-ffa450edef68