Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 18661 invoked from network); 15 Oct 2002 17:00:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Oct 2002 17:00:25 -0000 Received: (qmail 19570 invoked by uid 97); 15 Oct 2002 17:01:03 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 19451 invoked by uid 97); 15 Oct 2002 17:01:02 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 19366 invoked by uid 50); 15 Oct 2002 17:01:01 -0000 Date: 15 Oct 2002 17:01:01 -0000 Message-ID: <20021015170101.19354.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 13660] New: - HttpServletRequest.getAttributeNames() doesn't return javax.servlet.request.cipher_suite attribute X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13660 HttpServletRequest.getAttributeNames() doesn't return javax.servlet.request.cipher_suite attribute Summary: HttpServletRequest.getAttributeNames() doesn't return javax.servlet.request.cipher_suite attribute Product: Tomcat 4 Version: 4.1.12 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Connector:Coyote HTTP/1.1 AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: jemiller@uchicago.edu Attribute javax.servlet.request.cipher_suite is set on SSL connections. It used to be the case that you could see the name of this attribute when you called HttpServletRequest.getAttributeNames(). This no longer happens. Even though the attribute has a value, it's name isn't returned when you call HttpServletRequest.getAttributeNames(). The following example demonstrates, import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class AttributesServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { resp.setContentType("text/html"); PrintWriter pw = resp.getWriter(); pw.println ("AttributesServlet"); Enumeration e = req.getAttributeNames(); while(e.hasMoreElements()) { String s = (String)e.nextElement(); pw.println("

" + s + ": " + req.getAttribute (s) + "

"); } pw.println("

" + req.getAttribute ("javax.servlet.request.cipher_suite") + "

"); pw.println(""); pw.close(); } catch(Exception e) { e.printStackTrace(); } } } -- To unsubscribe, e-mail: For additional commands, e-mail: