[Bug 47410] Using Request#getStream() while reading parameters

2017-09-19 Thread Volkan Yazıcı
Hello, When you try to access the raw InputStream of a x-www-form-urlencoded servlet request, the stream could have already been indirectly consumed by a prior access to the parameters (e.g., via ServletRequest#getParameterMap()) of the request. This feature (bug?) has already been documented in t

Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Peddi, Radhika (Radhika)
Hi, We have upgraded RHEL 7.2 to RHEL 7.4. After upgrade when we are running performance testing of our application we are seeing below error in catalina.out. java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4 Attached is the t

Re: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Zdeněk Henek
Hi, try configure HTTP NIO https://tomcat.apache.org/tomcat-7.0-doc/config/http.html#NIO_specific_configuration or upgrade to Tomcat 8 where HTTP NIO is on by default. This could help in case your server is able to process the requests e.g. you have spike where you have to process thousands of re

RE: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Peddi, Radhika (Radhika)
Thanks for the response we will try this. Regards, Radhika -Original Message- From: Zdeněk Henek [mailto:vrab...@gmail.com] Sent: Tuesday, September 19, 2017 2:27 PM To: users@tomcat.apache.org Subject: Re: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread E

Re: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Mark Thomas
On 19/09/17 09:51, Peddi, Radhika (Radhika) wrote: > Hi, > > We have upgraded RHEL 7.2 to RHEL 7.4. After upgrade when we are running > performance testing of our application we are seeing below error in > catalina.out. > > java.lang.OutOfMemoryError: unable to create new native thread Exceptio

[SECURITY] CVE-2017-12616 Apache Tomcat Information Disclosure

2017-09-19 Thread Mark Thomas
CVE-2017-7674 Apache Tomcat Information Disclosure Severity: Important Vendor: The Apache Software Foundation Versions Affected: Apache Tomcat 7.0.0 to 7.0.80 Description: When using a VirtualDirContext it was possible to bypass security constraints and/or view the source code of JSPs for resou

[SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload

2017-09-19 Thread Mark Thomas
CVE-2017-7674 Apache Tomcat Remote Code Execution via JSP Upload Severity: Important Vendor: The Apache Software Foundation Versions Affected: Apache Tomcat 7.0.0 to 7.0.79 Description: When running on Windows with HTTP PUTs enabled (e.g. via setting the readonly initialisation parameter of the

[CORRECTION][SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload

2017-09-19 Thread Mark Thomas
The body of the original advisory referred to CVE-2017-7674. This was incorrect. It was a copy and paste error from a previous Tomcat advisory. The correct CVE reference is CVE-2017-12615, as per the subject line. On 19/09/17 11:58, Mark Thomas wrote: > CVE-2017-12615 Apache Tomcat Remote Code E

[CORRECTION][SECURITY] CVE-2017-12616 Apache Tomcat Information Disclosure

2017-09-19 Thread Mark Thomas
The body of the original advisory referred to CVE-2017-7674. This was incorrect. It was a copy and paste error from a previous Tomcat advisory. The correct CVE reference is CVE-2017-12616, as per the subject line. On 19/09/17 11:58, Mark Thomas wrote: > CVE-2017-7674 Apache Tomcat Information Dis

Fwd: [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload

2017-09-19 Thread tomcat
Hello. Did the issue below also affect the DAV application ? And if yes, also only under Windows ? Forwarded Message Subject: [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload Date: Tue, 19 Sep 2017 11:58:44 +0100 From: Mark Thomas Reply-To: Tomcat

Re: Fwd: [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload

2017-09-19 Thread Mark Thomas
On 19/09/17 14:00, André Warnier (tomcat) wrote: > Hello. > > Did the issue below also affect the DAV application ? Yes, as the WebDAV servlet also processes HTTP PUT requests. The WebDAV servlet extends the Default servlet so they actually share the implementation. > And if yes, also only unde

RE: [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload

2017-09-19 Thread Thakur, Gulam (IBM)
Hi, This we require in windows systems. We will be looking at Windows 10. Springboot application in Microsoft Azure based. Many thanks, Gulam Thakur Software Developer, Synapse Dev Squad BP Sunbury, Bldg H, 1st floor TW16 7LN Mobile: +44 (0) 7443 243808 E-mail: gulam.tha...@bp.com

RE: Fwd: [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload

2017-09-19 Thread Thakur, Gulam (IBM)
Hi, This we require in windows systems. We will be looking at Windows 10. Springboot application in Microsoft Azure based. Many thanks, Gulam Thakur Software Developer, Synapse Dev Squad BP Sunbury, Bldg H, 1st floor TW16 7LN Many thanks, Gulam Thakur Software Developer, Synapse Dev

Re: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Suvendu Sekhar Mondal
Radhika, On Tue, Sep 19, 2017 at 2:21 PM, Peddi, Radhika (Radhika) wrote: > Hi, > > We have upgraded RHEL 7.2 to RHEL 7.4. After upgrade when we are running > performance testing of our application we are seeing below error in > catalina.out. > > java.lang.OutOfMemoryError: unable to create new

tomcat ssl setup

2017-09-19 Thread John Ellis
I have been trying to setup SSL for tomcat 9.00.M26 on a RHEL (version 6.4) server for testing purposes. I downloaded & installed Tomcat9 fine and I get a proper webpage on port 8080 but when I used the keytool commands and created a certificate from cacert.org and then edited the server.xml file t

Re: tomcat ssl setup

2017-09-19 Thread tomcat
On 19.09.2017 17:31, John Ellis wrote: I have been trying to setup SSL for tomcat 9.00.M26 on a RHEL (version 6.4) server for testing purposes. I downloaded & installed Tomcat9 fine and I get a proper webpage on port 8080 but when I used the keytool commands and created a certificate from cace

Re: tomcat ssl setup

2017-09-19 Thread Alejandro Vargas M.
Do you see what's on the log files, they can tell you what's the problem in. Maybe you can share those files too. I also saw on line 117 this "|||-->|" Looks like there's left over. On 09/19/2017 09:31 AM, John Ellis wrote: I have been trying to setup SSL for tomcat 9.00.M26 on a RHEL (vers

Re: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Coty Sutherland
On Tue, Sep 19, 2017 at 9:53 AM, Suvendu Sekhar Mondal wrote: > Radhika, > > On Tue, Sep 19, 2017 at 2:21 PM, Peddi, Radhika (Radhika) > wrote: >> Hi, >> >> We have upgraded RHEL 7.2 to RHEL 7.4. After upgrade when we are running >> performance testing of our application we are seeing below erro

RE: tomcat ssl setup

2017-09-19 Thread John Ellis
Yes I will put the log files on DropBox as well when I get back from lunch. Thanks, John Ellis 405.285.2500 office http://biz-e.io From: Alejandro Vargas M. [mailto:alejandro.var...@kymsolutions.com] Sent: Tuesday, September 19, 2017 11:10 AM To: users@tomcat.apache.org

Re: [Bug 47410] Using Request#getStream() while reading parameters

2017-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Volkan, On 9/19/17 3:07 AM, Volkan Yazıcı wrote: > Hello, > > When you try to access the raw InputStream of a > x-www-form-urlencoded servlet request, the stream could have > already been indirectly consumed by a prior access to the > parameters (e

Re: [Bug 47410] Using Request#getStream() while reading parameters

2017-09-19 Thread Volkan Yazıcı
Hey Christopher, Did not try (or consider) using a Tomcat Valve, since it would make the entire tool Tomcat-specific. I would rather find a way to solve the problem in a container agnostic way. Though, thanks for the idea. Maybe I can release a separate artifact just for Tomcat. Best. On Tue, Se

Re: [Bug 47410] Using Request#getStream() while reading parameters

2017-09-19 Thread Igal @ Lucee.org
Volkan, On 9/19/2017 10:47 AM, Volkan Yazıcı wrote: Did not try (or consider) using a Tomcat Valve, since it would make the entire tool Tomcat-specific. I would rather find a way to solve the problem in a container agnostic way. I had a similar issue so I wrote a simple Filter and named it "Rer

RE: tomcat ssl setup

2017-09-19 Thread John Ellis
Here are the tomcat 9 log file DropBox links- https://www.dropbox.com/s/hlcg3cycddteyaz/catalina.2017-09-08.log?dl=0 https://www.dropbox.com/s/yj93ub9woxdoie0/localhost_access_log.2017-09-19.tx t?dl=0 Thanks, John Ellis 405.285.2500 office http://biz-e.io From

RE: tomcat ssl setup

2017-09-19 Thread John Ellis
Andre at this point Alan, my boss, only has had me setup Tomcat 9 on this server; not jira or confluence. He thought it might be easier to get the SSL port working just on Tomcat first and then work with Jira and Confluence on this server. John Ellis 405.285.2500 office      http://biz-e.io

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-19 Thread Yasser Zamani
On 9/13/2017 10:25 PM, Yasser Zamani wrote: > > > On 9/13/2017 9:49 PM, Mark Thomas wrote: >> On 05/09/2017 19:56, Yasser Zamani wrote: >>> Thanks a lot Mark! >>> >>> Yes I knew these and before tested that a tomcat with 400 max threads >>> "scalabilitaly is equal" to a tomcat with 200 max thre

Re: tomcat ssl setup

2017-09-19 Thread tomcat
On 19.09.2017 20:19, John Ellis wrote: Andre at this point Alan, my boss, only has had me setup Tomcat 9 on this server; not jira or confluence. He thought it might be easier to get the SSL port working just on Tomcat first and then work with Jira and Confluence on this server. Yes, and he is r

Re: tomcat ssl setup

2017-09-19 Thread tomcat
On 19.09.2017 20:17, John Ellis wrote: Here are the tomcat 9 log file DropBox links- https://www.dropbox.com/s/hlcg3cycddteyaz/catalina.2017-09-08.log?dl=0 Well, there you go. It tells you explicitly where you made the mistakes, up to the file and line numbers. I can't see your server.xml, b

Re: [Bug 47410] Using Request#getStream() while reading parameters

2017-09-19 Thread Igal @ Lucee.org
Volkan, On 9/19/2017 11:21 AM, Volkan Yazıcı wrote: Hey Igal, Thanks for the response! I believe having more people suffering from the same limitation makes it more clear that there is a shortcoming that needs to addressed in Tomcat. The problem is that Tomcat is compliant with the Servlet sp