Currently, the organization in which I work uses Glassfish 3.1.2.2 for the hardware (same as software / cloud) load balancer, which is also responsible for terminating SSL . We are currently having problems with Glassfish, not knowing that it is behind an SSL connection and therefore does some things incorrectly. In particular, the following:
- session cookies are not marked as safe
- Redirects created from Glassfish are performed as
http:// instead of https:// request.isSecure() does not return the correct valuerequest.getScheme() does not return the correct value
In theory, we could rewrite all these things in a load balancer, but in previous projects using Tomcat, we were able to solve them all at the container level.
In Tomcat, I can just set the safe flag and schema value in the definition of the HTTP connector, and all is well. But I can not find equivalents on Glassfish.
Anyone have any actions?
source share