RE: Tomcat SSL stops working after an undetermined amount of time

2021-05-26 Thread Mysore, Raghunath
To track if BC is configured in your environment, you may want to assess if BC is listed as a "security.provider" in the following "java.security" file File : /jre/lib/security/java.security Check for record (example below) :

Re: apache-tomcat-8.5.59 too many open files on Linux 8

2021-05-26 Thread Christopher Schultz
André, On 5/26/21 05:12, André Warnier (tomcat/perl) wrote: Maybe I am missing something, but at first sight it looks like lsof, inside the container, can also not get more information about these "sock" things. I am running out of ideas. If you search in Google for precisely this : lsof

Re: Tomcat SSL stops working after an undetermined amount of time

2021-05-26 Thread Christopher Schultz
Ezsra, On 5/26/21 18:11, Ezsra McDonald wrote: Well, I still have issues. I think it is the same thing hit by these guys: https://jira.atlassian.com/browse/BAM-21157 https://stackoverflow.com/questions/65691480/nullpointerexception-at-org-bouncycastle-crypto-signers-psssigner-generatesignat

Re: Tomcat SSL stops working after an undetermined amount of time

2021-05-26 Thread Ezsra McDonald
Well, I still have issues. I think it is the same thing hit by these guys: https://jira.atlassian.com/browse/BAM-21157 https://stackoverflow.com/questions/65691480/nullpointerexception-at-org-bouncycastle-crypto-signers-psssigner-generatesignat I'll try their fix. My main concern is that I do not

abandoned connections

2021-05-26 Thread Rob Sargent
I think I have all my calls for new connections in try/with blocks, but things went bump in the night at AWS/RDS yesterday and I'm wondering if I missed one or if the try/with isn't as safe as I thought. 00:10:12.201 [https-jsse-nio-10.0.2.28-15002-exec-11] INFO

Re: Enhancement: Additional user attributes queried by (some) realms

2021-05-26 Thread Mark Thomas
On 26/05/2021 18:56, Mark Thomas wrote: On 26/05/2021 12:00, Carsten Klein wrote: Why does UserDatabaseRealm pass a userPrincipal of type UserDatabasePrincipal? Can't we just drop that and do it like JNDIRealm or DataSourceRealm? I don't see any obvious reason. I'll do some digging in

Re: Enhancement: Additional user attributes queried by (some) realms

2021-05-26 Thread Mark Thomas
On 26/05/2021 12:00, Carsten Klein wrote: 1. How to access the Principal's new attributes Simplest is to provide a getter method, that actually returns the map (optionally with a read-only parameter): Given that the attributes may well be security related, you would need to make sure

Enhancement: Additional user attributes queried by (some) realms

2021-05-26 Thread Carsten Klein
Hi there, as already discussed here: http://mail-archives.apache.org/mod_mbox/tomcat-users/202104.mbox/ajax/%3Cb9a2a913-f00f-f5bf-ca05-8ea4f8663ca9%40datagis.com%3E I'm implementing an enhancement for querying configurable extra user attributes through some of the Realm classes from the "user

Re: apache-tomcat-8.5.59 too many open files on Linux 8

2021-05-26 Thread tomcat/perl
Addendum : Maybe to debug this more efficiently, you could look at this issue from the opposite side : Earlier in the thread of messages, you said this : 1. Did you upgrade anything recently (like Java VM)? [YJ] To support Linux 8, only Postgres was upgraded from version 9.3 to 9.6. Maybe

Re: apache-tomcat-8.5.59 too many open files on Linux 8

2021-05-26 Thread tomcat/perl
Maybe I am missing something, but at first sight it looks like lsof, inside the container, can also not get more information about these "sock" things. I am running out of ideas. If you search in Google for precisely this : lsof "sock" and "protocol : TCP" there are a lot of links which

Re: Tomcat8.5.53: HTTP requests parsing error

2021-05-26 Thread Mark Thomas
On 26/05/2021 09:47, Nada Mahmoud Ahmed Aboueata wrote: Dear Mark, Thanks for your reply, I have tried to address the issue of invalid characters by adding relaxedQueryChars parameter in the connector placed in server.xml , but still I am getting this exception!! relaxedQueryChars="" You

RE: [ALERT: Non-QU Sender] Re: Tomcat8.5.53: HTTP requests parsing error

2021-05-26 Thread Nada Mahmoud Ahmed Aboueata
Dear Mark, Thanks for your reply, I have tried to address the issue of invalid characters by adding relaxedQueryChars parameter in the connector placed in server.xml , but still I am getting this exception!! relaxedQueryChars="" Please note that we didn't face this issue with tomcat 7.x, and

Re: Tomcat8.5.53: HTTP requests parsing error

2021-05-26 Thread Mark Thomas
On 26/05/2021 09:02, Nada Mahmoud Ahmed Aboueata wrote: Dear all, We are using Tomcat 8.5.53, and I have been noticing the attached below exceptions in my logs. After looking deeply what kind of requests that caused these exception, I noticed that some request include Null http protocol and

Tomcat8.5.53: HTTP requests parsing error

2021-05-26 Thread Nada Mahmoud Ahmed Aboueata
Dear all, We are using Tomcat 8.5.53, and I have been noticing the attached below exceptions in my logs. After looking deeply what kind of requests that caused these exception, I noticed that some request include Null http protocol and some special characters that cannot be handled by Tomcat.

RE: [External] Re: Zip file upload corruption on Linux

2021-05-26 Thread Scott,Tim
Hi Chris, > Mine is coming up on 20 years old. That's worthy of an extra slice of cake :-). > The code you posted shows imports and then your interaction with the > fileupload library. Do you know what else happens before this line of code? > ServletRequestContext requestContext = new