Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B293F9FB for ; Wed, 3 Apr 2013 11:17:17 +0000 (UTC) Received: (qmail 83588 invoked by uid 500); 3 Apr 2013 11:17:16 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 83076 invoked by uid 500); 3 Apr 2013 11:17:16 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 82845 invoked by uid 99); 3 Apr 2013 11:17:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 11:17:15 +0000 Date: Wed, 3 Apr 2013 11:17:15 +0000 (UTC) From: "Christoffer Sawicki (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMQ-4433) Socket parameters are not validated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Christoffer Sawicki created AMQ-4433: ---------------------------------------- Summary: Socket parameters are not validated Key: AMQ-4433 URL: https://issues.apache.org/jira/browse/AMQ-4433 Project: ActiveMQ Issue Type: Bug Reporter: Christoffer Sawicki Priority: Minor Connect parameters are validated in every transport factory with a statement like this: {noformat} if (!options.isEmpty()) { throw new IllegalArgumentException("Invalid connect parameters: " + options); } {noformat} Socket parameters (i.e. connect parameters prefixed with {{socket.}}) are however never validated. They are put away at {noformat} SslTransportFactory(TcpTransportFactory).compositeConfigure(Transport, WireFormat, Map) line: 85 {noformat} and then set at {noformat} SslTransport(TcpTransport).initialiseSocket(Socket) line: 428 {noformat} where there is no check that {{socketOptions}} is empty after the call. I've attached a patch that rectifies this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira