Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2025E10D0F for ; Sun, 2 Feb 2014 18:54:11 +0000 (UTC) Received: (qmail 64217 invoked by uid 500); 2 Feb 2014 18:54:10 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 64120 invoked by uid 500); 2 Feb 2014 18:54:09 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 64107 invoked by uid 99); 2 Feb 2014 18:54:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Feb 2014 18:54:09 +0000 Date: Sun, 2 Feb 2014 18:54:09 +0000 (UTC) From: "Guy Allard (JIRA)" To: commits@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (APLO-349) Empty STOMP Header Name is Allowed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Guy Allard created APLO-349: ------------------------------- Summary: Empty STOMP Header Name is Allowed Key: APLO-349 URL: https://issues.apache.org/jira/browse/APLO-349 Project: ActiveMQ Apollo Issue Type: Bug Components: apollo-stomp Affects Versions: 1.7 Environment: apache-apollo-99-trunk-20140130.205836-254-unix-distro.tar.gz Ubuntu 12.04 LTS Open JDK 6 Reporter: Guy Allard Priority: Minor A minor grouch. Apollo allows and supports empty STOMP Header Names. If I read the BNF correctly, header names need at least one character. Recreating this should be trivial, but I can supply code if needed. Stomp log excerpt showing this behavior: 2014-02-02 13:31:56,957 received frame: StompFrame(CONNECT,List((login,guest), (passcode,guest), (accept-version,1.2), (host,localhost), (content-length,0)),NilContent,true,List()) 2014-02-02 13:31:56,961 sending frame: StompFrame(CONNECTED,List((version,1.2), (server,apache-apollo/99-trunk-SNAPSHOT), (host-id,broker), (session,broker-7), (heart-beat,100,10000)),NilContent,false,List()) 2014-02-02 13:31:56,963 received frame: StompFrame(SEND,List((destination,/queue/snge.common.queue), (userkey1,uservalue1), (userkey2,uservalue3), (,EMPTY_HEADER_KEY_HERE), (userkey3,uservalue3), (content-length,20)),BufferContent(ascii: publish: message: 1),true,List()) 2014-02-02 13:31:56,968 received frame: StompFrame(DISCONNECT,List((receipt,5f41d5a1-c247-400b-bc11-b8c1f6e0fb3a), (content-length,0)),NilContent,true,List()) 2014-02-02 13:31:56,968 stomp protocol resources released 2014-02-02 13:31:56,970 sending frame: StompFrame(RECEIPT,List((receipt-id,5f41d5a1-c247-400b-bc11-b8c1f6e0fb3a)),NilContent,false,List()) 2014-02-02 13:32:07,733 received frame: StompFrame(CONNECT,List((login,guest), (passcode,guest), (accept-version,1.2), (host,localhost), (content-length,0)),NilContent,true,List()) 2014-02-02 13:32:07,736 sending frame: StompFrame(CONNECTED,List((version,1.2), (server,apache-apollo/99-trunk-SNAPSHOT), (host-id,broker), (session,broker-8), (heart-beat,100,10000)),NilContent,false,List()) 2014-02-02 13:32:07,739 received frame: StompFrame(SUBSCRIBE,List((destination,/queue/snge.common.queue), (ack,auto), (id,88b6e788-dab0-4358-a5c1-35f4e8e46c66), (content-length,0)),NilContent,true,List()) 2014-02-02 13:32:07,744 sending frame: StompFrame(MESSAGE,List((message-id,broker-71), (destination,/queue/snge.common.queue), (userkey1,uservalue1), (userkey2,uservalue3), (,EMPTY_HEADER_KEY_HERE), (userkey3,uservalue3), (content-length,20)),BufferContent(ascii: publish: message: 1),true,List((subscription,88b6e788-dab0-4358-a5c1-35f4e8e46c66), (ack,2))) 2014-02-02 13:32:07,747 received frame: StompFrame(UNSUBSCRIBE,List((id,88b6e788-dab0-4358-a5c1-35f4e8e46c66), (content-length,0)),NilContent,true,List()) 2014-02-02 13:32:07,748 received frame: StompFrame(DISCONNECT,List((receipt,e666faee-e233-4903-ac5d-a9d798b6e061), (content-length,0)),NilContent,true,List()) 2014-02-02 13:32:07,748 stomp protocol resources released 2014-02-02 13:32:07,748 sending frame: StompFrame(RECEIPT,List((receipt-id,e666faee-e233-4903-ac5d-a9d798b6e061)),NilContent,false,List()) -- This message was sent by Atlassian JIRA (v6.1.5#6160)