issue_id
int64 2.03k
426k
| title
stringlengths 9
251
| body
stringlengths 1
32.8k
⌀ | status
stringclasses 6
values | after_fix_sha
stringlengths 7
7
| updated_files
stringlengths 29
34.1k
| project_name
stringclasses 6
values | repo_url
stringclasses 6
values | repo_name
stringclasses 6
values | language
stringclasses 1
value | issue_url
null | before_fix_sha
null | pull_url
null | commit_datetime
unknown | report_datetime
unknown |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51,324 | Bug 51324 When OutputBuffer.doFlush gets Exception, doFlush gets stuck to true | null | resolved fixed | 1bbbdb2 | ["java/org/apache/catalina/connector/OutputBuffer.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-06-07T14:00:16Z" | "2011-06-05T10:33:20Z" |
51,251 | Bug 51251 Patch to add version parameter to ant task | null | resolved fixed | d19daf5 | ["java/org/apache/catalina/ant/AbstractCatalinaCommandTask.java", "java/org/apache/catalina/ant/ReloadTask.java", "java/org/apache/catalina/ant/SessionsTask.java", "java/org/apache/catalina/ant/StartTask.java", "java/org/apache/catalina/ant/StopTask.java", "java/org/apache/catalina/ant/UndeployTask.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-06-03T22:22:35Z" | "2011-05-24T04:06:40Z" |
51,276 | Bug 51276 Startup time is too high if there are few JARs in "lib/" and a few webapps. | Startup time in tomcat 7.0.14 is 10x higher than 7.0.12, if there are a few shared JARs in tomcat/lib and a few webapps. The issue is very simple to reproduce, simply add 10 empty directories in tomcat/webapps and (for example) the Metro webservices jars in tomcat/lib. On my machine the startup time increase from 0.5 secs (default installation) to 35.2 secs. When using tomcat 7.0.12 the startup time is about 3 secs on my machine in this test case. | resolved fixed | 5109678 | ["java/org/apache/catalina/startup/ContextConfig.java", "java/org/apache/catalina/startup/TldConfig.java", "java/org/apache/jasper/compiler/TldLocationsCache.java", "java/org/apache/tomcat/util/scan/FileUrlJar.java", "java/org/apache/tomcat/util/scan/Jar.java", "java/org/apache/tomcat/util/scan/JarFactory.java", "java/org/apache/tomcat/util/scan/UrlJar.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-06-02T11:12:04Z" | "2011-05-27T15:26:40Z" |
51,277 | Bug 51277 NPE during the form authentication when form-login-config is missed | null | resolved fixed | 5b0919c | ["java/org/apache/catalina/authenticator/FormAuthenticator.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-31T13:06:11Z" | "2011-05-27T15:26:40Z" |
51,240 | Bug 51240 maxConnections not honors config when acceptorThreadCount > 1 | null | resolved fixed | 73f9592 | ["java/org/apache/tomcat/util/net/AbstractEndpoint.java", "java/org/apache/tomcat/util/net/AprEndpoint.java", "java/org/apache/tomcat/util/net/JIoEndpoint.java", "java/org/apache/tomcat/util/net/NioEndpoint.java", "java/org/apache/tomcat/util/threads/CounterLatch.java", "java/org/apache/tomcat/util/threads/LimitLatch.java", "test/org/apache/tomcat/util/threads/TestCounterLatch.java", "test/org/apache/tomcat/util/threads/TestLimitLatch.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-26T15:27:52Z" | "2011-05-23T00:20:00Z" |
51,226 | Bug 51226 [Patch] to add FindLeaks ant task | There is no ant task for FindLeaks. | resolved fixed | 1cd5e7b | ["java/org/apache/catalina/ant/FindLeaksTask.java", "java/org/apache/catalina/manager/HTMLManagerServlet.java", "java/org/apache/catalina/manager/ManagerServlet.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-24T16:04:08Z" | "2011-05-19T10:13:20Z" |
27,122 | Bug 27122 IE plugins cannot access components through Tomcat 5 over SSL | SSL seems to be failing when the Content-Type header is set to "image/svg+xml". I've only seen this failure when SSL was running on a Solaris machine. (uname -a: SunOS [hostname removed] 5.8 Generic_108528-18 sun4u sparc SUNW,Ultra-60) When attempted on Windows, we were unable to duplicate the error. This reliably fails when attempted on this specific Solaris machine. If I get a chance, I'll try to create a test-case and see if I can reproduce this on other Solaris machines. Unfortunately, this was a show-stopper for a release that's being made today so I'm pressed for time. Basically, what happens is that we're using a JSP page to create an SVG file. Because of this, we have to set the Content-Type header to "image/svg+xml". When the MIME type is set to this value, the page fails to load in Internet Explorer 6 (SP1) with a message of "connection failed" or something similar. When an attempt was made in Opera, Opera responded by crashing. Mozilla successfully downloaded the file, though. However, when resetting the MIME type in the page to "text/plain" all three browsers can access the page without failure. By back-revving Tomcat to version 4.1.29, we were able to resolve this issue and access the page in all three browsers. I'll try and create a test-case later today and verify that it isn't just our SVG JSP that's failing but any that creates SVG but I'm currently pressed for time - sorry. | resolved fixed | 4161179 | ["java/org/apache/catalina/authenticator/AuthenticatorBase.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-22T22:54:15Z" | "2004-02-21T02:20:00Z" |
51,185 | Bug 51185 Performance : DataSourceProxy#createPool should use more fine grained synchronisation | null | resolved fixed | 4bdd8d0 | ["modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-20T22:03:39Z" | "2011-05-11T13:20:00Z" |
35,054 | Bug 35054 warn if appBase is not existing as a File or directory | otherwise, it may very hard to find what is wrong | resolved fixed | 9bb6e4f | ["java/org/apache/catalina/startup/HostConfig.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-20T18:11:53Z" | "2005-05-25T14:06:40Z" |
51,220 | Bug 51220 Add system property that makes it possible for jsp pages with the extends page directive to take advantage of tag pooling | null | resolved fixed | c46e56c | ["java/org/apache/jasper/compiler/Generator.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-19T10:44:12Z" | "2011-05-18T20:20:00Z" |
51,229 | Bug 51229 Some async examples are not work correctly | null | resolved fixed | 55d8b72 | ["webapps/examples/WEB-INF/classes/async/Async0.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-19T08:55:43Z" | "2011-05-19T10:13:20Z" |
51,212 | Bug 51212 QueryStats has synchornisation issues | null | resolved fixed | b24b17c | ["modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/SlowQueryReport.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-18T17:46:01Z" | "2011-05-17T19:20:00Z" |
51,208 | Bug 51208 SVN TRUNK : JDBC interceptor options are not taken into account | null | resolved fixed | 2bb247a | ["modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PoolProperties.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-17T14:41:09Z" | "2011-05-17T13:46:40Z" |
51,156 | Bug 51156 "Expire sessions" button not visible for context configured in server.xml | If app is configured in server.xml like this: {code} <Host name="www.myapp.pl" appBase="/usr/lib/tomcat/webapps" unpackWARs="false" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false" > <Context docBase="/var/www/myapp" path="" cacheMaxSize="5120" cacheTTL="60000" cachingAllowed="true" > </Context> <Context path="/manager" privileged="true" docBase="/usr/lib/tomcat/webapps/manager"> </Context> </Host> {code} In Tomcat Manager, on the application list, there is a button "Expire sessions" available only for "/manager" application. There is no button "Expire sessions" for "/" path. I think bug is in HTMLManagerServlet.java in this part: {code} if (context.getPath().equals(this.context.getPath())) { writer.print(MessageFormat.format( MANAGER_APP_ROW_BUTTON_SECTION, args)); } else if (context.getAvailable() && isDeployed) { writer.print(MessageFormat.format( STARTED_DEPLOYED_APPS_ROW_BUTTON_SECTION, args)); } else if (context.getAvailable() && !isDeployed) { writer.print(MessageFormat.format( STARTED_NONDEPLOYED_APPS_ROW_BUTTON_SECTION, args)); } else if (!context.getAvailable() && isDeployed) { writer.print(MessageFormat.format( STOPPED_DEPLOYED_APPS_ROW_BUTTON_SECTION, args)); } else { writer.print(MessageFormat.format( STOPPED_NONDEPLOYED_APPS_ROW_BUTTON_SECTION, args)); } {code} | resolved fixed | de7f0e1 | ["java/org/apache/catalina/manager/HTMLManagerServlet.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-06T09:22:38Z" | "2011-05-06T05:33:20Z" |
51,155 | Bug 51155 Missing @deprecated comments | null | resolved fixed | f477068 | ["java/javax/servlet/jsp/el/ELException.java", "java/javax/servlet/jsp/el/ELParseException.java", "java/javax/servlet/jsp/el/Expression.java", "java/javax/servlet/jsp/el/ExpressionEvaluator.java", "java/javax/servlet/jsp/el/FunctionMapper.java", "java/javax/servlet/jsp/el/VariableResolver.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-06T08:05:42Z" | "2011-05-06T00:00:00Z" |
51,154 | Bug 51154 Spurious @deprecated tags in ServletContext | null | resolved fixed | 01e1850 | ["java/javax/servlet/ServletContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-06T07:54:53Z" | "2011-05-06T00:00:00Z" |
50,950 | Bug 50950 NotSerializableException: org.apache.catalina.realm.GenericPrincipal | null | resolved fixed | 0559491 | ["java/org/apache/catalina/ha/session/DeltaSession.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-05T12:38:44Z" | "2011-03-20T16:53:20Z" |
51,099 | Bug 51099 SPNEGO loginConfigName does not work | As reported by fhanik on the dev list: 2. com.sun.security.jgss.krb5.accept is not configurable While the authenticator has the attribute loginConfigName, there seems to be a place in the code where it omits this entry. renaming this entry in jaas.conf and setting the loginConfigName will fail to validate a ticket The problem code is here: gssContext = manager.createContext(manager.createCredential(null, GSSCredential.DEFAULT_LIFETIME, new Oid("1.3.6.1.5.5.2"), GSSCredential.ACCEPT_ONLY)); should look like final GSSManager manager = GSSManager.getInstance(); final PrivilegedExceptionAction<GSSCredential> action = new PrivilegedExceptionAction<GSSCredential>() { public GSSCredential run() throws GSSException { return manager.createCredential(null, GSSCredential.DEFAULT_LIFETIME, new Oid("1.3.6.1.5.5.2"), GSSCredential.ACCEPT_ONLY); } }; gssContext = manager.createContext(Subject.doAs(lc.getSubject(), action));|| best Filip | resolved fixed | 343a609 | ["java/org/apache/catalina/authenticator/SpnegoAuthenticator.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-04T21:47:09Z" | "2011-04-21T10:00:00Z" |
51,119 | Bug 51119 extras - JmxRemoteLifecycleListener does not support JAAS based authentication and authorisation | (Also true in Tomcat 7) The JmxRemoteLifecycleListener does not support JAAS based authentication. That is, when authentication is required, it only supports file based authentication. | resolved fixed | 2ffa0f7 | ["java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-04T20:22:08Z" | "2011-04-26T09:26:40Z" |
51,124 | Bug 51124 ArrayIndexOutOfBoundsException after setting org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true | First of all, I know that there has been a bug regarding a similar problem before and that it was fixed. But currently this bugs occurs even with tomcat version 6.0.32. We have a problem with the tomcat runnign with the parameter org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true. After the tomcat has just started, everything is fine but after one or two days a lot of ArrayIndexOutOfBoundsException occur on random pages of the application. Tomcats started without this parameter don't seem to have that problem. Unfortunately we weren't able reproduce the bug locally, It appears only on our production system. Could there be a concurrency problem, that only shows if a lot it going on on the platform? I can provide two small stackstraces that can show the classes where the problem occurs: 1. Caused by: java.lang.ArrayIndexOutOfBoundsException at org.apache.jasper.runtime.BodyContentImpl.write(Unknown Source) at java.io.PrintWriter.write(PrintWriter.java:382) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown Source) at org.apache.jasper.runtime.PageContextImpl.release(Unknown Source) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(Unknown Source) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(Unknown Source) at org.apache.jsp.members.lists.short_.incomingShortList_jsp._jspService(incomingShortList_jsp.java:796) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(Unknown Source) 2. Caused by: java.lang.ArrayIndexOutOfBoundsException at java.lang.String.getChars(String.java:854) at org.apache.jasper.runtime.BodyContentImpl.write(Unknown Source) at org.apache.jasper.runtime.BodyContentImpl.write(Unknown Source) at org.apache.jasper.runtime.BodyContentImpl.print(Unknown Source) at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag(MessageSupport.java:203) at org.apache.jsp.members.profiles.profile_jsp._jspx_meth_fmt_005fmessage_005f2(profile_jsp.java:4897) at org.apache.jsp.members.profiles.profile_jsp._jspService(profile_jsp.java:481) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(Unknown Source) | resolved fixed | 2cdbcd5 | ["java/org/apache/jasper/runtime/BodyContentImpl.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-04T19:53:54Z" | "2011-04-27T10:26:40Z" |
51,136 | Bug 51136 Allow to set the context name through Tomcat's embeded class before adding it to the host | org.apache.catalina.startup.Tomcat creates contexts and add them to the host directly. It would be nice if we could set the name of the context before adding it to the host. I'm including a patch that overloads the methods "addWebapp" and "addContext" to take that name as a parameter. | resolved fixed | 2dc54c4 | ["java/org/apache/catalina/startup/Tomcat.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-05-04T08:48:26Z" | "2011-04-29T20:46:40Z" |
51,095 | Bug 51095 NPE in AprEndpoint.java | null | resolved fixed | 75d28d4 | ["java/org/apache/tomcat/util/net/AprEndpoint.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-04-23T21:57:58Z" | "2011-04-20T17:20:00Z" |
50,173 | Bug 50173 JDBCSampler discards ResultSet from a PreparedStatement. | Hi, I am using JMeter with a Test Plan that uses a JDBC Request with a PreparedStatement query type. When running this I am getting the following error in the jmeter.log file 2010/10/28 11:30:31 INFO - jmeter.threads.JMeterThread: Thread started: JDBC Users 1-1 2010/10/28 12:13:38 ERROR - jmeter.threads.JMeterThread: Error while processing sampler 'PREPARED SELECT Customer JDBC Request' : java.lang.NullPointerException at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.getStringFromResultSet(JDBCSampler.java:415) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.resultSetsToString(JDBCSampler.java:268) at org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:208) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:348) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243) at java.lang.Thread.run(Thread.java:619) The query (below) can be expected to return a number of records SELECT * FROM Customer WHERE ID=?; the param is set to 1 If I use instead a SelectStatement results are returned so the query itself is not at fault. I have retrieved the code for the v2_4 tag to identify the root cause for the NPE and create a patch. This bug report includes a patch against trunk as the issue is also in trunk. The root cause is due to: org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(Entry e) The code path for PreparedStatements types starting on line 204 has in it a call to org.hsqldb.jdbc.JDBCPreparedStatement.executeUpdate() which returns a ResultSet. The side effect of the call is to set the JDBCPreparedStatement.currentResultSet field member to null. JDBCSampler does not keep the ResultSet reference. Instead it is discarded. The call on the next line (208) String sb = resultSetsToString(pstmt,true,null) again tries to get the ResultSet on line 267. This causes a NullPointerException because the JDBCPreparedStatement.currentResultSet field was set to null earlier. Looking at the code path for a CALLABLE statement type (line 190) shows better handling for queries that return ResultSet. The two lines 207,208 replaced with boolean hasResultSet = pstmt.execute(); String sb = resultSetsToString(pstmt,hasResultSet,null); fixes the defect. Regards, Jeremy Whiting Red Hat | resolved fixed | 3a847c7 | ["java/org/apache/tomcat/util/net/AprEndpoint.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-04-17T00:02:29Z" | "2010-10-28T15:33:20Z" |
51,042 | Bug 51042 HttpSessionListener.sessionCreated() is called a second time when user is authenticated with no matching sessionDestroyed() call. | When my web application has a HttpSessionListener configured in its web.xml, then that classes sessionCreated() is called when a user is assigned a new session. However, that method is *also* called when that user authenticates itself and the session is assigned a new ID (whether or not this is actually a "new session" can be disputed, but that's not the point of this bug). When the session is removed (due to a timeout, for example), then a single sessionDestroyed() call is executed. When the HttpSessionListener manages some kind of external resource, this behaviour leads to a resource leak, because sessionCreated() is called twice, while sessionRemoved() is only called once! I'm aware of the reason for changing the session ID and (somehow) understand why sessionCreated() is called again (after all there's a new session ID), but there must be *some* way for the SessionListener to be notified that the "old session" no longer exists. The same behaviour is seen in Tomcat 6.0 (and probably 5.5 as well, but I didn't test that). | resolved fixed | dc3758e | ["java/org/apache/catalina/Session.java", "java/org/apache/catalina/ha/session/DeltaManager.java", "java/org/apache/catalina/ha/session/DeltaSession.java", "java/org/apache/catalina/ha/session/JvmRouteBinderValve.java", "java/org/apache/catalina/manager/DummyProxySession.java", "java/org/apache/catalina/session/ManagerBase.java", "java/org/apache/catalina/session/StandardSession.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-04-16T22:25:28Z" | "2011-04-08T10:53:20Z" |
51,038 | Bug 51038 No access logs for Servlet 3.0 async requests | Access logs written by org.apache.catalina.valves.AccessLogValve are not being written for servlet 3.0 async requests. To reproduce: - Handle a request asynchronously by marking the servlet with @WebServlet(asyncSupported=true) - Send some traffic and notice that nothing is being written to the access logs. AccessLogValve.log() is called by org.apache.catalina.Context.logAccess(). From the source for version 7.0.11, in org.apache.catalina.connector.CoyoteAdapter.java, line 416: AsyncContextImpl asyncConImpl = (AsyncContextImpl)request.getAsyncContext(); if (asyncConImpl != null) { async = true; } else if (!comet) { response.finishResponse(); if (postParseSuccess) { // Log only if processing was invoked. // If postParseRequest() failed, it has already logged it. ((Context) request.getMappingData().context).logAccess( request, response, System.currentTimeMillis() - req.getStartTime(), false); } req.action(ActionCode.POST_REQUEST , null); } In the async case logAccess() isn't called here. I've searched through the code and don't see logAccess() being called anywhere else, except in error cases. So, it looks like the async case is missing a call to logAccess() somewhere. | resolved fixed | dc3dff4 | ["java/org/apache/catalina/connector/CoyoteAdapter.java", "test/org/apache/catalina/core/TestAsyncContextImpl.java", "test/org/apache/catalina/valves/TesterAccessLogValve.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-04-16T21:22:58Z" | "2011-04-07T15:26:40Z" |
50,997 | Bug 50997 StandardJarScanner ignores web-fragment.xml files in unpacked jars if they are not ending with ".jar" | null | resolved fixed | 62ddb9e | ["java/org/apache/catalina/startup/ContextConfig.java", "java/org/apache/tomcat/util/scan/StandardJarScanner.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-30T20:06:25Z" | "2011-03-30T15:46:40Z" |
50,927 | Bug 50927 [patch] More specific error message for missing SSLCertificateFile | null | resolved fixed | e34f848 | ["java/org/apache/tomcat/util/net/AprEndpoint.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-16T09:30:10Z" | "2011-03-14T13:40:00Z" |
50,929 | Bug 50929 [patch] Ensure rethrown exceptions retain the original cause | null | resolved fixed | 0c96676 | ["java/javax/servlet/http/HttpUtils.java", "java/org/apache/catalina/connector/CoyoteInputStream.java", "java/org/apache/catalina/realm/JDBCRealm.java", "java/org/apache/catalina/valves/JDBCAccessLogValve.java", "java/org/apache/naming/resources/WARDirContext.java", "java/org/apache/tomcat/util/digester/NodeCreateRule.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-15T23:05:53Z" | "2011-03-14T16:26:40Z" |
50,903 | Bug 50903 Current keep-alive request processed after connector.stop() | When the connector is stopped, if a connection is in a keep-alive state the next request received by that connection will be processed and then the connection will be closed. When the request is received, it should be rejected. Outstanding questions: - What return code (if any) should be sent back to the client? - If the reading of a request starts before the connector is stopped, should that request be allowed to complete or should it be rejected? | resolved fixed | c8ea62e | ["java/org/apache/coyote/ajp/AjpProcessor.java", "java/org/apache/coyote/http11/Http11AprProcessor.java", "java/org/apache/coyote/http11/Http11NioProcessor.java", "java/org/apache/coyote/http11/Http11Processor.java", "test/org/apache/catalina/connector/TestConnector.java", "test/org/apache/catalina/startup/TesterServlet.java", "test/org/apache/catalina/startup/TomcatBaseTest.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-15T17:48:15Z" | "2011-03-09T19:46:40Z" |
50,887 | Bug 50887 Enhancement to set security-provider within AjpAprProcessor | null | resolved fixed | 552c4b7 | ["java/org/apache/catalina/valves/SSLValve.java", "java/org/apache/coyote/AbstractProtocolHandler.java", "java/org/apache/coyote/ajp/AbstractAjpProcessor.java", "java/org/apache/coyote/ajp/AjpAprProtocol.java", "java/org/apache/coyote/ajp/AjpProtocol.java", "java/org/apache/coyote/http11/Http11AprProcessor.java", "java/org/apache/coyote/http11/Http11AprProtocol.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-13T14:01:34Z" | "2011-03-08T10:26:40Z" |
50,895 | Bug 50895 JSP compiler initializes classes during compile which can result in failures | null | resolved fixed | 5d61212 | ["java/org/apache/jasper/compiler/ELFunctionMapper.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-09T13:52:07Z" | "2011-03-08T21:33:20Z" |
25,060 | Bug 25060 Reloading context orphans currently open jndi datasource connections | I fiddled around with this a while and have determined to the best of my ability that this is a real bug. I have a jndi datasource connected to a postgresql server. I have two jndi resources (a reader and writer) so that later I can implement a system with replication etc and deal with writes and reads to different connections. To summarize, after using the system, there are two connections to postgres that get reused -- one reader and writer. Under load, this number increases and will slowly go back down. I usually end up with two idle connections (one reader and one writer) left under no load. If you reload the context where the datasource is at (it's a context specific datasource), the number of connections will jump by two when used. Each reload produces 2 more connections min until I restart the server. It appears that after a reload, the 'persisted connections' get abandoned / orphaned. Eventually, I hit my max connections and cannot aquire any more and the system fails. I have tried the abandond collection parameters and have added debug logging to my code to ensure that I am indeed calling close on the connections I checkout, even on exceptions and error cases. Under normal useage without reloads, no connection leakage happens. This is on a solaris 8 machine with the 4.1.27-hotfix-22096.tar.gz applied. Let me know if more information is required. I have this in a development environment and can let somone attach in jdb and hammer on the thing since it's not a production system -- if that will help in getting a repro. Wayne | resolved fixed | 1211dbe | ["java/org/apache/catalina/core/StandardContext.java", "java/org/apache/catalina/deploy/NamingResources.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-08T22:15:34Z" | "2003-11-28T03:26:40Z" |
26,701 | Bug 26701 Enabling web applications to register their own stream handlers | A stream handler factory can be registered once per VM and tomcat registers the DirContextStreamHandlerFactory for the jndi protocol. However if there are web applications running inside that want to register handlers for custom scheme currently it is not possible. Can the DirContextStreamHandlerFactory be enhanced to allow applications to register stream handler for custom schemes they might have. Or better can this be a made a property in the context.xml file ? Is this already there - or can this enhanced in the future? | resolved fixed | f622e3a | ["java/org/apache/catalina/loader/WebappLoader.java", "java/org/apache/naming/resources/Constants.java", "java/org/apache/naming/resources/DirContextURLStreamHandlerFactory.java", "test/org/apache/naming/resources/TestDirContextURLStreamHandlerFactory.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-06T22:12:10Z" | "2004-02-06T01:13:20Z" |
50,855 | Bug 50855 NullPointerException thrown in AuthenticatorBase.register method for null principal | null | resolved fixed | b24b0c0 | ["java/org/apache/catalina/authenticator/AuthenticatorBase.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-06T07:33:58Z" | "2011-03-02T15:33:20Z" |
50,857 | Bug 50857 Test failures on Windows 7, 24 thread system | testPoolThreads20Connections10FairAsync [junit] java.sql.SQLException: [tomcat-pool-10] NoWait: Pool empty. Unable to fetch a connection, none available[10 in use]. [junit] at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:615) [junit] at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnectionAsync(ConnectionPool.java:143) [junit] at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnectionAsync(DataSourceProxy.java:122) [junit] at org.apache.tomcat.jdbc.test.FairnessTest$TestThread.run(FairnessTest.java:231) | resolved fixed | ef547fb | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-02T21:15:07Z" | "2011-03-02T21:06:40Z" |
27,988 | Bug 27988 Unhelpful FileNotFoundException raised | org.apache.naming.resources.DirContextURLConnection raises FileNotFoundException on lines 311, 344, 382 and 396. It would be more helpful if these provided a message string. For example, change line 344 to throw new FileNotFoundException(getURL().getFile()); This would make it easier to diagnose mistakes in server configurations. | resolved fixed | 4a4d86e | ["java/org/apache/naming/resources/DirContextURLConnection.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-03-02T13:23:37Z" | "2004-03-26T22:26:40Z" |
28,852 | Bug 28852 failonerror attribute on Ant tasks | failonerror boolean attribute on manager Ant tasks would be a nice have to allow for more flexible operation within Ant build files. I will attach a patch next week that also fixes unecessary CRs during response read/print and missing url encoding in some tasks. | resolved fixed | e1bf740 | ["java/org/apache/catalina/ant/JMXGetTask.java", "java/org/apache/catalina/ant/JMXQueryTask.java", "java/org/apache/catalina/ant/JMXSetTask.java", "java/org/apache/catalina/ant/ResourcesTask.java", "java/org/apache/catalina/ant/UndeployTask.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-28T18:15:48Z" | "2004-05-08T23:46:40Z" |
31,027 | Bug 31027 major error from minor whitespace error in properties file | A developer accidentally placed a tab character after the port number in the properties file for a tomcat instance. This prevented tomcat from listening on that port, but it was difficult to track down whether tomcat was running. Seems like the properties-file reader could easily trim excess whitespace before trying to use entries. | resolved wontfix | 4b4ef0c | ["java/org/apache/catalina/startup/CatalinaProperties.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-27T13:19:22Z" | "2004-09-03T02:53:20Z" |
50,836 | Bug 50836 LifecycleState#isAvailable() to be more restrictive | I think some of the values returned by LifecycleState#isAvailable() are wrong. 1. I am certain that MUST_DESTROY should return false, because it is a state that is later than stopped. 2. I think that STOPPING_PREP should return false, because we can get there from the FAILED state. 3. I think that STARTING should return false, because it is too early to return true there. As a result, the following is the complete list of states are to return true in #isAvailable(): STARTED, MUST_STOP | resolved fixed | 92ff888 | ["java/org/apache/catalina/Lifecycle.java", "java/org/apache/catalina/LifecycleListener.java", "java/org/apache/catalina/LifecycleState.java", "java/org/apache/catalina/util/LifecycleBase.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-27T11:00:12Z" | "2011-02-26T19:53:20Z" |
49,284 | Bug 49284 Implement SSL renegotiation for the NIO connector | Summary says it all. Entered as a reminder that it would be good to do this. | resolved fixed | dcda15d | ["java/org/apache/coyote/http11/Http11NioProcessor.java", "java/org/apache/tomcat/util/net/NioChannel.java", "java/org/apache/tomcat/util/net/SecureNioChannel.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-25T19:19:13Z" | "2010-05-13T00:20:00Z" |
50,826 | Bug 50826 (Embedded) Tomcat.destroy() throws java.lang.IllegalArgumentException | Embedded Tomcat sometimes throws this exception when calling destroy() method: java.lang.IllegalArgumentException: null source at java.util.EventObject.<init>(EventObject.java:56) at javax.management.Notification.<init>(Notification.java:184) at org.apache.catalina.core.StandardContext.destroyInternal(StandardContext.java:5433) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:969) at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1108) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:969) at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1108) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285) at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285) at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:786) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285) at org.apache.catalina.startup.Tomcat.destroy(Tomcat.java:323) at su.msk.jet.nioproxy.rule.config.EmbeddedWebserver.stop(EmbeddedWebserver.java:26) I think that StandardContext.destroyInternal() misses check that this.getObjectName()!=null | resolved fixed | 9d542ed | ["java/org/apache/catalina/core/StandardContext.java", "test/org/apache/catalina/startup/TestTomcat.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-24T17:25:38Z" | "2011-02-24T15:06:40Z" |
21,669 | Bug 21669 JNDIRealm roleBase pattern enahncement | Currently the roleBase attribute must be a fxed location in the directory. A simple change would allow the role base to be specified relative to the user DN. My enhancement suggestion would change the roleBase definition as follows: roleBase - the base entry for the role search. If not specified, the search base is the top level directory context. If specified it may optionally include pattern replacements "{0}".."{n}" corrosponding to the name parts of the user's distinguished name (as returned by javax.naming.Name.get()). For example, in the <Realm> defintion in server.xml you could specify the roleBase as: roleBase="ou=Groups,{1},{0}" The majority of the code to accomplish this would be in JNDIRealm.getRoles() and could look like this: String base = null; if ( roleBaseFormat != null ) { NameParser np = context.getNameParser(""); Name name = np.parse(dn); String nameParts[] = new String[name.size()]; for ( int idx = 0 ; idx < name.size() ; idx++ ) nameParts[idx] = name.get(idx); base = roleBaseFormat.format(nameParts); } // Perform the configured search and process the results if (debug >= 3) { log(" Searching role base '" + base + "' for attribute '" + roleName + "'"); log(" With filter expression '" + filter + "'"); } NamingEnumeration results = context.search(base, filter, controls); Thank You, Art | resolved fixed | f22600c | ["java/org/apache/catalina/realm/JNDIRealm.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-22T11:48:09Z" | "2003-07-17T02:46:40Z" |
19,444 | Bug 19444 JNDI Authentication roles must be anonymous accessible | It appears that for the JNDIRealm to be able to locate roles, they must be anonymous accessible. I believe that for security purposes this should not be necessary if we are validating the user by binding to the directory. In that case the roles could be accessible to any bound user or that particular user. I discussed this very briefly on the Tomcat user list. It sounds like this had been discussed previously and for whatever reason, the idea rejected. Anyhow I submit that there is a bug, either in the code - which requires the roles to be anonymous, or in the documentation which does not make it clear that this is the case (at least in "Tomcat 4 Servlet/JSP Container - Realm Configuration HOW- TO). It seems reasonable to me that if we are binding to the directory to authenticate, we would have that user's access to roles. Perhaps the documentation should more explicetly state that this is not the case. In the hope that it would be accepted as an enhancement, I am going to attempt to attach a modified JNDIRealm that uses the authenticated connection to obtain the roles. Thank You, Art | resolved fixed | a085c4a | ["java/org/apache/catalina/realm/JNDIRealm.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-22T11:08:42Z" | "2003-04-30T02:33:20Z" |
50,189 | Bug 50189 AJP connector sends GET BODY CHUNK when reading after response closed | If a servlet (probably incorrectly) closes the writer/outputstream of a response, and then attempts to read from the request, the AJP connector sends GET BODY CHUNK to the mod_jk worker. This then starts a series of very confusing communication between the worker and tomcat. The worker doesn't read it until it makes its next request. After making its next request, it reads it, and then sends a response with 0 length. At the same time, Tomcat responds to the request made by the worker with another GET BODY CHUNK, which the worker also responds with a message of 0 length. Then the really weird thing happens, Tomcat replays the first request made by that worker. At this point, based on what I'm looking at with tcpdump, I get too confused to work out exactly what is happening. | resolved fixed | 514e713 | ["java/org/apache/catalina/connector/OutputBuffer.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-18T16:24:36Z" | "2010-11-01T02:53:20Z" |
50,802 | Bug 50802 Deviation from servlet3 spec concerning resource lookup from META-INF/resources | null | resolved fixed | a9c3193 | ["java/org/apache/naming/resources/BaseDirContext.java", "java/org/apache/naming/resources/FileDirContext.java", "java/org/apache/naming/resources/VirtualDirContext.java", "java/org/apache/naming/resources/WARDirContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-17T20:38:49Z" | "2011-02-17T19:13:20Z" |
50,780 | Bug 50780 AjpConnectionHandler keeps many connections causing memory leak | Hi, Sorry for my english. I use Tomcat 7.0.6 with APR 1.1.20. I noticed (from heap dump) many org.apache.tomcat.util.net.SocketWrapper objects, which are kept by "connections" atribute in org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler object. I don't understand, why there are so many objects representing old connections which are not active. In my example it was 300000 objects created, after 7 days of Tomcat work. Has someone forgotten to clean this HashMap from time to time? best regards Sergiusz Brzezinski | resolved fixed | b56bf50 | ["java/org/apache/coyote/ajp/AjpAprProtocol.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-17T16:08:08Z" | "2011-02-15T08:53:20Z" |
50,789 | Bug 50789 custom error pages and CDI/weld problem | null | resolved fixed | 3810b04 | ["java/org/apache/catalina/Context.java", "java/org/apache/catalina/core/ApplicationDispatcher.java", "java/org/apache/catalina/core/StandardContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-17T10:32:07Z" | "2011-02-15T17:13:20Z" |
50,790 | Bug 50790 EL parser needs to be more dynamic | String.containes(CharSequence) is not being resolved correctly in the following situation: <span class="#{(facesContext.externalContext.request.requestURI.contains(item.url)) ? 'activepage' : ''}">#{template[item.labelKey]}</span> Exception: javax.el.ELException: /faces/template/mainLayout.xhtml: java.lang.NoSuchMethodException: java.lang.String.contains(java.lang.String) at com.sun.faces.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:87) at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:75) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:285) at com.sun.faces.renderkit.html_basic.OutputLinkRenderer.encodeChildren(OutputLinkRenderer.java:125) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at com.sun.faces.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:97) at com.sun.faces.facelets.component.UIRepeat.process(UIRepeat.java:496) at com.sun.faces.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:926) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126) at com.ocpsoft.pretty.faces.application.PrettyViewHandler.renderView(PrettyViewHandler.java:157) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.reardeninc.tigris.ui.facesutil.FacesFilter.doFilter(FacesFilter.java:86) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:100) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:383) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NoSuchMethodException: java.lang.String.contains(java.lang.String) at java.lang.Class.getMethod(Class.java:1605) at javax.el.BeanELResolver.invoke(BeanELResolver.java:405) at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:161) at org.apache.el.parser.AstValue.getValue(AstValue.java:159) at org.apache.el.parser.AstChoice.getValue(AstChoice.java:45) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) at com.sun.faces.facelets.el.ELText$ELTextVariable.toString(ELText.java:207) at com.sun.faces.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:82) ... 46 more | resolved fixed | cfab791 | ["java/javax/el/BeanELResolver.java", "java/org/apache/el/parser/AstValue.java", "test/org/apache/el/TestMethodExpressionImpl.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-17T09:59:30Z" | "2011-02-15T20:00:00Z" |
50,793 | Bug 50793 Invalid DispatchType in ServletRequestListener on async dispatch | If a ServletRequestListener is defined, when is invoked after a call to AsyncContext#dispatch() the DispatcherType returned from the ServletRequest is REQUEST rather than ASYNC. When the actual servlet is invoked, the type is correctly set to ASYNC. If the listener is intended to be invoked for each dispatch, then the DispatcherType should match the value returned in the filter/servlet. | closed fixed | 72418ba | ["java/org/apache/catalina/connector/CoyoteAdapter.java", "java/org/apache/catalina/core/StandardContext.java", "java/org/apache/catalina/core/StandardContextValve.java", "test/org/apache/catalina/core/TestAsyncContextImpl.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-16T17:35:24Z" | "2011-02-16T04:20:00Z" |
50,713 | Bug 50713 The "roles" command doesn't work | null | resolved fixed | 4b21973 | ["java/org/apache/catalina/ant/RolesTask.java", "java/org/apache/catalina/manager/ManagerServlet.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-16T13:43:39Z" | "2011-02-03T08:00:00Z" |
50,700 | Bug 50700 Context parameters are being overridden with parameters from the web application deployment descriptor | Context parameters are being overridden with parameters from the web application deployment descriptor even through "override" attribute is set to "false" For example: lines from context file <Context path="/path" docBase="/path/to/docbase" cookies="true"> <Parameter name="parameter_name" value="test1" override="false"/> .... </Context> lines from web.xml <context-param> <description>default value for parameter_name</description> <param-name>parameter_name</param-name> <param-value>test2</param-value> </context-param> Now servletContext.getInitParameter("parameter_name") returns "test2" | resolved fixed | a073ac8 | ["java/org/apache/catalina/core/StandardContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-14T19:05:25Z" | "2011-02-01T17:06:40Z" |
50,771 | Bug 50771 HttpServletRequest#getAuthType() returns null though the request is authenticated. | null | resolved fixed | 877a3df | ["java/org/apache/catalina/ha/session/DeltaRequest.java", "java/org/apache/catalina/ha/session/DeltaSession.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-14T08:47:49Z" | "2011-02-14T07:53:20Z" |
50,726 | Bug 50726 Jasper can generate uncompilable source code if genStringAsCharArray is turned on | Our jsp pages are compiled at build time. If I turn on genStringAsCharArray optimization switch, in some cases there will be longer lines in the generated java code than the javac compiler can process. It provides the following error message: [javac] Compiling 1609 source files to d:\...\jspc\classes [javac] d:\...\jspc\src\org\apache\jsp\WEB_002dINF\..._005fAPP\pages\termsconditions\TermsAndConditions_005fms_005fMY_jsp.java:96: constant string too long | resolved fixed | d0f3899 | ["java/org/apache/jasper/compiler/Generator.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-12T19:35:26Z" | "2011-02-07T12:00:00Z" |
50,759 | Bug 50759 ValidatorClassName Validation fails to set lastValidated timestamp | null | resolved fixed | 50f16fe | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/PooledConnection.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-11T16:32:41Z" | "2011-02-10T23:20:00Z" |
50,751 | Bug 50751 JNDIRealm invokes getAttributes with no attribute ids. Prevents using DOMAIN\{0} to login. | null | resolved fixed | 0313ded | ["java/org/apache/catalina/realm/JNDIRealm.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-11T14:49:41Z" | "2011-02-10T17:46:40Z" |
50,752 | Bug 50752 Typo in Embedded.java log message | There's a debug log message in Embedded.java with a typo in it: "INITIAL_CONTEXT_FACTORY alread set " Attached is a patch against the 6_0_29 tag, but the issue exists in tc6.0.x/trunk | resolved fixed | 272e30c | ["java/org/apache/catalina/startup/Embedded.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-11T12:24:47Z" | "2011-02-10T17:46:40Z" |
50,720 | Bug 50720 When using jsp mapped as servlet in web.xml, cyrillic characters are not allowed in web.xml | null | resolved fixed | e4bc803 | ["java/org/apache/jasper/compiler/WebXml.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-10T18:59:43Z" | "2011-02-04T14:33:20Z" |
50,721 | Bug 50721 RequestUtil.URLDecode() throws IllegalArgumentException for URLs with %xx-Code as last character | null | resolved fixed | 5c9e352 | ["java/org/apache/catalina/util/RequestUtil.java", "test/org/apache/catalina/util/TestRequestUtil.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-09T23:41:32Z" | "2011-02-05T01:40:00Z" |
50,709 | Bug 50709 Make class org.apache.catalina.core.ApplicationContextFacade non-final | Please make class org.apache.catalina.core.ApplicationContextFacade non-final so it can be subclassed. Need to extend ApplicationContextFacade so Mobicents Sip Servlet, working on top of Tomcat 7, to integrate with Weld. Thanks George | resolved fixed | 9f41c91 | ["java/org/apache/catalina/core/ApplicationContextFacade.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-04T10:30:36Z" | "2011-02-02T18:06:40Z" |
50,673 | Bug 50673 Error when stopping Tomcat using services.msc | When stopping Tomcat using services.msc, an error message is displayed: "Windows could not stop the Apache Tomcat 7 service on Local Computer. Error 109: The pipe has been ended." Despite this error, Tomcat appears to stop normally. No such problem was encountered in 6.0.29. | resolved fixed | 6ac4a27 | ["java/org/apache/catalina/core/StandardServer.java", "java/org/apache/catalina/startup/Catalina.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-02T02:45:46Z" | "2011-01-27T14:53:20Z" |
50,631 | Bug 50631 InternalNioInputBuffer should honor maxHttpHeadSize | InternalNioInputBuffer automatically expands its buffer while reading in request line, effectively ignoring the maxHttpHeaderSize setting. | resolved fixed | 0084470 | ["java/org/apache/coyote/http11/InternalNioInputBuffer.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-02-01T07:55:45Z" | "2011-01-21T17:13:20Z" |
50,325 | Bug 50325 Update Tomcat to use JRE provided solutions for CVE-2009-3555 if available | null | resolved fixed | b4e9488 | ["java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-31T23:43:38Z" | "2010-11-24T12:00:00Z" |
50,683 | Bug 50683 Servlet 3.0 annotations not scanned if unpackWars="false" | null | resolved fixed | d21437e | ["java/org/apache/naming/resources/WARDirContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-29T00:15:34Z" | "2011-01-29T00:13:20Z" |
46,819 | Bug 46819 Remove redundant object instantiations in JspRuntimeLibrary | null | resolved fixed | 20ace41 | ["java/org/apache/jasper/runtime/JspRuntimeLibrary.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-28T23:24:23Z" | "2009-03-08T05:26:40Z" |
50,680 | Bug 50680 NPE in TagFileProcessor when tag file is in an expanded directory "jar" | null | resolved fixed | af4549f | ["java/org/apache/jasper/compiler/TagFileProcessor.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-28T21:21:02Z" | "2011-01-28T13:06:40Z" |
50,679 | Bug 50679 FarmDeployer doesn't support parallel deployment | Version: Tomcat 7.0.6 Component: Catalina OS: Windows 7 64bit Overview: Parallel deployment works like a charm in a non-clustered environment. But when deploying a versioned app (APPNAME##VERSION.war) to a farm deployer directory, it seems that the filename encoding of the ## delimiter is not translated correctly to identify the war file on the file system: ## is translated to %23%23 Reproduce: 1. Create a version app file 2. Deploy file to watched farm deployer directory Expected result: - Versioned app is copyied to cluster members and deployed Actual result: - Versioned app is NOT copyied to cluster members. catalina.log displays the following error messages: [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO org.apache.catalina.ha.deploy.FarmWarDeployer- Installing webapp[/Shop##201101261] from C:\Apache\Tomcat7\cluster\webapps\Shop##201101261.war [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO org.apache.catalina.ha.deploy.FarmWarDeployer- Cluster wide remove of web app /Shop##201101261 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.apache.catalina.ha.deploy.FarmWarDeployer- Unable to install WAR file java.io.FileNotFoundException: C:\Apache\Tomcat7\cluster\webapps\Shop%23%23201101261.war (Das System kann die angegebene Datei nicht finden) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.apache.catalina.ha.deploy.FileMessageFactory.<init>(FileMessageFactory.java:152) at org.apache.catalina.ha.deploy.FileMessageFactory.getInstance(FileMessageFactory.java:175) at org.apache.catalina.ha.deploy.FarmWarDeployer.install(FarmWarDeployer.java:372) at org.apache.catalina.ha.deploy.FarmWarDeployer.fileModified(FarmWarDeployer.java:468) at org.apache.catalina.ha.deploy.WarWatcher.check(WarWatcher.java:95) at org.apache.catalina.ha.deploy.FarmWarDeployer.backgroundProcess(FarmWarDeployer.java:591) at org.apache.catalina.ha.tcp.SimpleTcpCluster.backgroundProcess(SimpleTcpCluster.java:627) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1200) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1393) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1403) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1382) at java.lang.Thread.run(Thread.java:662) [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO org.apache.catalina.startup.HostConfig- Deploying web application archive Shop##201101261.war Relevant configuration in server.xml: ... <Host name="sbwebapp1" appBase="${catalina.base}/cluster/webapps" unpackWARs="true" autoDeploy="true"> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8"> <Manager className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="true" notifyListenersOnReplication="false" stateTransferTimeout="5"/> <Channel className="org.apache.catalina.tribes.group.GroupChannel"> <Membership className="org.apache.catalina.tribes.membership.McastService" address="228.0.0.4" port="45564" frequency="500" dropTime="3000"/> <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver" address="192.168.222.220" port="4000" autoBind="100" selectorTimeout="5000" maxThreads="6"/> <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> </Sender> <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/> <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> <Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/> </Channel> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.swf;.*\.flv;"/> <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/> <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/> <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer" tempDir="${catalina.base}/cluster/temp/" deployDir="${catalina.base}/cluster/webapps/" watchDir="${catalina.base}/cluster/deploy/" watchEnabled="true"/> </Cluster> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="ajp_access_" suffix=".log" pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/> </Host> ... | resolved fixed | 2377f51 | ["java/org/apache/catalina/ha/ClusterDeployer.java", "java/org/apache/catalina/ha/deploy/FarmWarDeployer.java", "java/org/apache/catalina/ha/deploy/FileMessage.java", "java/org/apache/catalina/ha/deploy/FileMessageFactory.java", "java/org/apache/catalina/ha/deploy/UndeployMessage.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-28T21:04:55Z" | "2011-01-28T07:33:20Z" |
50,642 | Bug 50642 keepAliveProtection doesn't work | null | resolved fixed | 5c13d8c | ["java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java", "java/org/apache/catalina/core/StandardContext.java", "java/org/apache/catalina/loader/WebappClassLoader.java", "java/org/apache/catalina/loader/WebappLoader.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-28T13:03:57Z" | "2011-01-24T14:40:00Z" |
50,646 | Bug 50646 Tribes ByteMessage will get corrupted if message size exceeds the underlying buffer size | The Tribes ByteMessage class is used to transfer byte payloads in the context of the tribes communication framework. Due to how the message is deserialized, there will be data loss (and hence corruption) if the message size exceeds the underlying buffer size. The solution is to replace an ObjectInput#read(byte[]) call by ObjectInput#readFully(byte[]). Fix is attached. | resolved fixed | 0119483 | ["java/org/apache/catalina/tribes/ByteMessage.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-26T18:28:31Z" | "2011-01-25T12:53:20Z" |
50,629 | Bug 50629 Make the bindThread/unbindThread method protected | In the latest Tomcat codes, I saw that a new thread is created for listener start, filter start and loadOnStartup. But the two methods bindThread and unbindThread is marked as private, how about making those methods protected ? So that other containers could use those two methods for their own initialization works. Thanks. | resolved fixed | 3898ed0 | ["java/org/apache/catalina/core/StandardContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-21T13:17:12Z" | "2011-01-21T11:40:00Z" |
50,620 | Bug 50620 Session related errors prevent clean recycle of Request and Response objects by CoyoteAdapter | null | resolved fixed | fbd0110 | ["java/org/apache/catalina/connector/Request.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-20T18:34:18Z" | "2011-01-19T20:46:40Z" |
50,606 | Bug 50606 Error running CGI executable in Tomcat 6.0.30 | null | resolved fixed | c0cd721 | ["java/org/apache/catalina/servlets/CGIServlet.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-20T17:43:35Z" | "2011-01-18T08:40:00Z" |
50,613 | Bug 50613 ConnectionPool.size corruption when evictions enabled: | When (the various forms of) eviction run on the connection pool, ConnectionPool.size goes negative. This appears to be a concurrency problem. Attached is a unit test that illustrates the issue. | resolved fixed | 5cb0b7a | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java", "modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestSizePreservation.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-19T21:25:08Z" | "2011-01-18T22:33:20Z" |
50,601 | Bug 50601 Redundant null checks before instanceof in equals() | null | resolved fixed | d95db3f | ["java/org/apache/catalina/core/ApplicationTaglibDescriptor.java", "java/org/apache/catalina/deploy/LoginConfig.java", "java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java", "java/org/apache/el/parser/SimpleNode.java", "java/org/apache/naming/NamingEntry.java", "java/org/apache/tomcat/util/net/URL.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-19T19:08:36Z" | "2011-01-17T13:13:20Z" |
50,598 | Bug 50598 Sample build.xml uses wrong manager.url | null | resolved fixed | de188ad | ["java/org/apache/catalina/ant/AbstractCatalinaTask.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-17T17:19:37Z" | "2011-01-16T17:46:40Z" |
50,597 | Bug 50597 Class.newInstance is used for Dynamic instance filters causing InstantiationException | Class.newInstance is called even when the following method ServletContext.addFilter method is called: javax.servlet.FilterRegistration.Dynamic addFilter(java.lang.String s, javax.servlet.Filter filter); This leads to an InstantiationException at runtime if there is no no-args constructor for the filter (pasted below). I'll supply a simple patch that fixes the issue for me. SEVERE: Exception starting filter testFilter java.lang.InstantiationException: test.TestFilter at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultIn stanceManager.java:119) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(Applicatio nFilterConfig.java:252) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica tionFilterConfig.java:372) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFi lterConfig.java:98) at org.apache.catalina.core.StandardContext.filterStart(StandardContext. java:4382) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java: 5040) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5035) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) | resolved fixed | 30468b7 | ["java/org/apache/catalina/core/ApplicationFilterConfig.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-17T17:12:36Z" | "2011-01-16T17:46:40Z" |
50,600 | Bug 50600 ConcurrentModificationException removing WAR via FarmWarDeployer | The following exception was reported via $work WARNING: Exception processing cluster org.apache.catalina.ha.tcp.SimpleTcpCluster@68e4e358 background process java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810) at java.util.HashMap$EntryIterator.next(HashMap.java:851) at java.util.HashMap$EntryIterator.next(HashMap.java:849) at org.apache.catalina.ha.deploy.WarWatcher.check(WarWatcher.java:87) at org.apache.catalina.ha.deploy.FarmWarDeployer.backgroundProcess(FarmWarDeployer.java:609) at org.apache.catalina.ha.tcp.SimpleTcpCluster.backgroundProcess(SimpleTcpCluster.java:596) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1302) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:636) The root cause is removing the entry directly from the Map rather than from the iterator. I have a patch that I'll apply shortly. | resolved fixed | d269ce3 | ["java/org/apache/catalina/ha/deploy/WarWatcher.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-17T11:26:56Z" | "2011-01-17T10:26:40Z" |
50,582 | Bug 50582 Small JSPs do not set Content-Length (and use chunked encoding) if AccessLogValve is configured | null | resolved fixed | 35a84d1 | ["java/org/apache/catalina/connector/CoyoteAdapter.java", "java/org/apache/catalina/valves/AccessLogValve.java", "java/org/apache/catalina/valves/JDBCAccessLogValve.java", "java/org/apache/coyote/http11/AbstractOutputBuffer.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-16T12:55:55Z" | "2011-01-14T07:26:40Z" |
50,591 | Bug 50591 NPE in ReplicationValve in 7.0.6 | null | resolved fixed | d8f8be1 | ["java/org/apache/catalina/ha/tcp/ReplicationValve.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-15T17:43:46Z" | "2011-01-15T16:46:40Z" |
18,797 | Bug 18797 MemoryUserRule doesn't validate user attributes | The implementation of org.apache.catalina.realm.MemoryRuleSet.begin dosen't validate the attribute values before adding a user to the MemoryRealm. If username or name are not present then a null username is used which can cause odd problems later on. Basically the method should check that parameters passed to MemoryRealm.addUser are not null before calling the method. | resolved fixed | 51650a1 | ["java/org/apache/catalina/users/MemoryUserDatabase.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-13T17:55:55Z" | "2003-04-08T11:06:40Z" |
18,462 | Bug 18462 System.err gets overriden to output to System.out | I am using Eclipse to do my development and I am running tomcat 4.1.24 from within eclipse. One of the nice features of eclipse is that anything you display with System.out comes out in blue and anything you send to System.err is displayed in red. However when tomcat is running Catalina overrides System.err and makes it point to System.out. This is very inconvinient because its much harder to search for severe error messages in a list of millions of trivial ones. | resolved fixed | 164fd40 | ["java/org/apache/catalina/startup/Catalina.java", "java/org/apache/catalina/startup/Embedded.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-13T00:55:02Z" | "2003-03-28T16:46:40Z" |
15,688 | Bug 15688 full-qualified names instead of imports | Hi, Jasper generated *.java-files that are compiled. The template for those files is very "unaesthetic". I could demonstrate nice side-effects using a simple <%@ page import="mypackage.Jspfactory" %> You should use full qualified names instead of a bunch of import-staments. For example _jspxFactory = JspFactory.getDefaultFactory(); would become _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); and if you don't already do, you should use the this-reference where possible. I don't know what the spec says about that conflict, but it shouldn't be a bad idea to use full-qualified names instead of imports. | resolved fixed | e69347b | ["java/org/apache/jasper/compiler/Generator.java", "java/org/apache/jasper/compiler/JspUtil.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-12T12:08:16Z" | "2002-12-28T04:33:20Z" |
50,333 | Bug 50333 IllegalArgumentException occurs when setting maxActive to smaller than 1. | null | resolved fixed | 0ccff07 | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/PoolProperties.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-10T16:41:43Z" | "2010-11-25T04:40:00Z" |
49,953 | Bug 49953 Missing @Override annotations | null | resolved wontfix | fd990a4 | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/interceptor/StatementCache.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-10T16:38:08Z" | "2010-09-17T19:00:00Z" |
21,157 | Bug 21157 CookieExample is setting cookie after writing data | A servlet can not set the headers and cookies after writing data to the servlet's output stream. Once the servlet writes data, headers are committed. However CookieExample writes some data first before doing addCookie on the response. The reason why this code works at all even with the above bug is: The CookieExample is only writing a small amount of data before doing response.addCookie. That data is still held in buffer and not yet sent over the wire. Hence the headers are not yet committed. So it is pure luck that this example works. You can easily expose the bug by writing say 20K characters in this example before response.addCookie is called. You will see that the cookies that are adding to response are not actually sent back to client. Fix is simple. Move up the response.addCookie() before response.getWriter() | resolved fixed | 4ce656a | ["webapps/examples/WEB-INF/classes/CookieExample.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-08T22:27:26Z" | "2003-06-28T03:13:20Z" |
50,552 | Bug 50552 Ant Tasks give a null pointer exception when an error occurs, masking true error | null | resolved fixed | a6b37af | ["java/org/apache/catalina/ant/BaseRedirectorHelperTask.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-07T11:24:36Z" | "2011-01-06T18:53:20Z" |
50,554 | Bug 50554 Bad use of getClass() could potentially lead to concurrency bugs in future | null | resolved fixed | 06b8609 | ["java/org/apache/naming/java/javaURLContextFactory.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-07T10:31:59Z" | "2011-01-06T18:53:20Z" |
50,477 | Bug 50477 If you set 0 to initialSize, can't obtain Connection by using getConnectionAsync method. | null | resolved fixed | 869c6f4 | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java", "modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Async0IdleTestBug50477.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-06T23:53:11Z" | "2010-12-15T10:46:40Z" |
49,543 | Bug 49543 Request for a "shared" datasource configuration as in DBCP | The ability to configure the datasource at the server level and have it shared amongst all applications on that server with each application supplying their own credentials for the datasource. This type of configuration is supported by DBCP and is called a "shared" datasource configuration. | resolved fixed | 3560f39 | ["java/org/apache/naming/factory/DataSourceLinkFactory.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-06T18:22:34Z" | "2010-07-02T19:46:40Z" |
50,550 | Bug 50550 PropFind 404 error after MkCol succes | null | resolved fixed | 5c2742c | ["java/org/apache/naming/resources/ProxyDirContext.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-06T18:09:23Z" | "2011-01-06T13:20:00Z" |
47,319 | Bug 47319 With APR, getRemoteHost() returns NULL for unknown clients | null | resolved fixed | ce64f9b | ["java/org/apache/coyote/http11/Http11AprProcessor.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-06T17:02:27Z" | "2009-06-05T08:20:00Z" |
50,547 | Bug 50547 The CHANGE_SESSION_ID message that received during cluster session synchronization is dropped. | Neither CHANGE_SESSION_ID message nor SESSION_EXPIRED message set timestamp. If these messages are received during cluster sessions synchronization in DeltaManager startup, because the timestamp is not set, they are dropped. I made a patch that add timestamp for CHANGE_SESSION_ID and SESSION_EXPIRED message. Best Regards. | resolved fixed | a0ef3e6 | ["java/org/apache/catalina/ha/session/DeltaManager.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-06T09:17:28Z" | "2011-01-06T07:46:40Z" |
50,453 | Bug 50453 Multiple X-Forwarded-For headers not handled by RemoteIP valve | null | resolved fixed | 3541fc6 | ["java/org/apache/catalina/filters/RemoteIpFilter.java", "java/org/apache/catalina/valves/RemoteIpValve.java", "test/org/apache/catalina/filters/TestRemoteIpFilter.java", "test/org/apache/catalina/valves/TestRemoteIpValve.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-05T15:05:42Z" | "2010-12-10T14:06:40Z" |
50,467 | Bug 50467 Occasional NIO connector lockups on high load | We've been running Tomcat 6.0.29 on FC8 2.6.21 with tens of thousands of long polling threads which usually work fine. Every few days though we will experience a sudden lockup of the NIO connector and it has to be restarted. These have been seen to be accompanied by the following stack trace: Exception in thread "http-8082-ClientPoller-0" java.lang.NullPointerException at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1620) at java.lang.Thread.run(Thread.java:662) Looking at the source it seems the issue is likely to be a race condition where access() is called on a null attachment, probably while it's in the process of being cancelled: while (iterator != null && iterator.hasNext()) { SelectionKey sk = (SelectionKey) iterator.next(); KeyAttachment attachment = (KeyAttachment)sk.attachment(); /*NPE*/ attachment.access(); iterator.remove(); processKey(sk, attachment); }//while | resolved fixed | 688e61e | ["java/org/apache/tomcat/util/net/NioEndpoint.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-05T13:51:48Z" | "2010-12-13T19:53:20Z" |
50,541 | Bug 50541 JNDIRealm: support configuring LDAP sizeLimit (countLimit in SearchControls) | null | resolved fixed | 76b6415 | ["java/org/apache/catalina/realm/JNDIRealm.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-04T17:35:06Z" | "2011-01-04T16:53:20Z" |
50,500 | Bug 50500 EL evaluation of floating-point String value vs BigInteger loses precision | According to the EL spec ch.1.7.1, the A+B,A-B,A*B expressions when A is a "String containing ., e, or E" and B is a BigInteger have to be evaluated as follows: "coerce both A and B to BigDecimal and apply operator" The actual implementation though, instead of coercing A as String -> BigDecimal, does two coercions: String -> Double -> BigDecimal, which produces a different result. To reproduce, run the following JSP page: <% pageContext.setAttribute("a", "1.1"); pageContext.setAttribute("b", new java.math.BigInteger("1000000000000000000000")); // "c" is used to explicitly coerce arguments to BigDecimal pageContext.setAttribute("c", new java.math.BigDecimal("0")); %>${a + b}<br> ${(a+c) + (b+c)}<br> ${a - b}<br> ${(a+c) - (b+c)}<br> ${a * b}<br> ${(a+c) * (b+c)} Actual result: 1000000000000000000001.100000000000000088817841970012523233890533447265625 1000000000000000000001.1 -999999999999999999998.899999999999999911182158029987476766109466552734375 -999999999999999999998.9 1100000000000000088817.841970012523233890533447265625000000000000000000000 1100000000000000000000.0 Expected result: 1000000000000000000001.1 1000000000000000000001.1 -999999999999999999998.9 -999999999999999999998.9 1100000000000000000000.0 1100000000000000000000.0 I think it is a minor issue, though. This is reproducible in the current tc6.0.x as well. Maybe o.a.el.lang.ELArithmetic#add(Object, Object) should delegate to BIGDECIMAL instead of DOUBLE with these types of arguments. | resolved fixed | b19fb3b | ["java/org/apache/el/lang/ELArithmetic.java", "test/org/apache/el/lang/TestELArithmetic.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-04T14:22:52Z" | "2010-12-19T23:06:40Z" |
50,025 | Bug 50025 getConnection method in class DataSourceProxy is ignoring credentials | null | resolved fixed | 59b17c1 | ["modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/PoolConfiguration.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/PoolProperties.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/PooledConnection.java", "modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.java", "modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/AlternateUsernameTest.java", "modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/driver/Connection.java", "modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/driver/Driver.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2011-01-03T22:14:21Z" | "2010-09-29T14:20:00Z" |
50,503 | Bug 50503 Engine level Clustering does not work correctly if the web application has a version. | In Engine level clustering, the name of the cluster manager is "HostName#contextName". SimpleTcpCluster#getManagerName(String, Manager) is as follows. ==== public String getManagerName(String name, Manager manager) { String clusterName = name ; if ( clusterName == null ) clusterName = manager.getContainer().getName(); if(getContainer() instanceof Engine) { Container context = manager.getContainer() ; if(context != null && context instanceof Context) { Container host = ((Context)context).getParent(); if(host != null && host instanceof Host && clusterName!=null && !(clusterName.indexOf("#")>=0)) clusterName = host.getName() +"#" + clusterName ; } } return clusterName; } ==== In this method, clusterName.indexOf("#") >= 0 is checked. Because the context name becomes contextName##version if the web application has a version, the name of the cluster manager doesn't become a format of "HostName#contextName". As a result, Engine level Clustering doesn't work correctly. Best regards. | resolved fixed | 701d5dc | ["java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2010-12-21T06:56:09Z" | "2010-12-21T05:40:00Z" |
13,731 | Bug 13731 Final request, response, session and other variables. | Provide a capability to declare request, response, session and other variables in jspService function as final. As tunable feature, just like others, in tomcat`s web.xml file. Why need this feature? To use request, response, session variables in anonymous implementations of classes. For example - declaration of iterator through elements, which includes some other JSP file (statically). And usage of this iterator in other JSP file. | resolved fixed | 73531cb | ["java/org/apache/jasper/compiler/Generator.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2010-12-16T23:35:17Z" | "2002-10-17T18:40:00Z" |
10,972 | Bug 10972 <Realm> without className in server.xml produces NullPointerException | If the className attribute is not included with the <Realm> tag in server.xml, the server dies with a cryptic NullPointerException. It would be nice if it produced a more meaningful error message (like "Missing className attribute for <Realm> tag"). | resolved fixed | 71ad1bd | ["java/org/apache/catalina/startup/Catalina.java", "java/org/apache/tomcat/util/digester/Digester.java", "java/org/apache/tomcat/util/digester/ObjectCreateRule.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2010-12-15T17:58:05Z" | "2002-07-19T06:26:40Z" |
10,526 | Bug 10526 Authenticators do not always cache the Principal | Once a user is authenticated a Principal object is supposed to be cached for the duration of the user's session. This is especially important when using JDBCRealm or JNDIRealm to reduce the load on external authentication services. Most authenticators (BasicAuthenticator, SSLAuthenticator and DigestAuthenticator) call AuthenticatorBase.register()to cache the Principal. However register() does nothing if a session object does not already exist, so caching does not occur when the application does not create a session object itself. The problem can be seen by setting a security constraint on tomcat-docs and then browsing the Tomcat documentation - the external authentication service is hit on every request. The problem does not occur with form based login, because FormAuthenticator caches the Principal itself and creates a new session if necessary to do it. Probably the best fix would be to change AuthenticatorBase.register() to create a new session by calling getSession(request, true) instead of getSession (request, false). However, perhaps there is a reason why this is not being done - though if so I cannot see what it is. An alternative is to change the concrete authentication classes to make sure a session exists before calling register(), e.g. --- BasicAuthenticator.java 23 Mar 2002 17:52:16 -0000 1.12 +++ BasicAuthenticator.java 6 Jul 2002 12:46:30 -0000 @@ -160,6 +160,7 @@ String password = parsePassword(authorization); principal = context.getRealm().authenticate(username, password); if (principal != null) { + Session session = getSession(request, true); register(request, response, principal, Constants.BASIC_METHOD, username, password); return (true); Similar patches would be required for SSLAuthenticator and DigestAuthenticator of course. | resolved fixed | ca34a30 | ["java/org/apache/catalina/authenticator/AuthenticatorBase.java"] | Tomcat | https://github.com/apache/tomcat | apache/tomcat | java | null | null | null | "2010-12-15T16:41:31Z" | "2002-07-06T18:26:40Z" |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.