You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/05/02 23:24:00 UTC

[jira] [Commented] (QPID-8165) [Broker-J][WMC] Validation of configured object names is too restrictive in Web Management Console

    [ https://issues.apache.org/jira/browse/QPID-8165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461723#comment-16461723 ] 

ASF subversion and git services commented on QPID-8165:
-------------------------------------------------------

Commit c8fae15492a09155039a61d11bf7d2dbdc280c65 in qpid-broker-j's branch refs/heads/master from [~alex.rufous]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-broker-j.git;h=c8fae15 ]

QPID-8165: [Broker-J][WMC] Fix RegEx to allow more characters in configured object names


> [Broker-J][WMC] Validation of configured object names is too restrictive in Web Management Console
> --------------------------------------------------------------------------------------------------
>
>                 Key: QPID-8165
>                 URL: https://issues.apache.org/jira/browse/QPID-8165
>             Project: Qpid
>          Issue Type: Bug
>          Components: Broker-J
>    Affects Versions: qpid-java-6.1.6, qpid-java-broker-7.0.3, qpid-java-broker-7.0.2, qpid-java-6.0, qpid-java-6.0.1, qpid-java-6.0.2, qpid-java-6.0.3, qpid-java-6.0.4, qpid-java-6.0.5, qpid-java-6.1, qpid-java-6.0.6, qpid-java-6.1.1, qpid-java-6.1.2, qpid-java-6.0.7, qpid-java-6.1.3, qpid-java-6.0.8, qpid-java-6.1.4, qpid-java-broker-7.0.0, qpid-java-6.1.5, qpid-java-broker-7.0.1
>            Reporter: Alex Rudyy
>            Priority: Major
>             Fix For: qpid-java-broker-7.1.0, qpid-java-broker-7.0.4
>
>
> WMC only allows to create (or edit) configured objects with names consisting only from any mixture of digits, letters, and underscores. This restriction was added into Web Management Console to meet the requirements of AMQP 0-8 protocol. The queue and exchange names in  domain definition are defined as  name consisting only from digits, letters, and underscores.
> {quote}
> The queue name identifies the queue within the vhost.  Queue
>     names may consist of any mixture of digits, letters, and
>     underscores.
> {quote}
> {quote}
> The exchange name is a client-selected string that identifies
>       the exchange for publish methods.  Exchange names may consist
>       of any mixture of digits, letters, and underscores.  Exchange
>       names are scoped by the virtual host.
> {quote}
> However, in definitions of declare commands for queue and exchange  the AMQP 0-8 specifies a regular expression for the names allowing more characters:
> {code}
> ^[a-zA-Z0-9-_.:]*$
> {code}
> The same regular expression is defined in specifications for AMQP 0-9 and 0-9-1.
> The names of virtual hosts in specifications for AMQP 0-8 and AMQP 0-9 should match regular expression (as per documentation of connection open)
> {code}
> ^[a-zA-Z0-9-_.:]*$
> {code}
> AMQP 0-10 allows more characters in queue name
> {quote}
>  Queue names must have a length
>         of between 1 and 255 characters inclusive, must start with a digit, letter or underscores
>         ('_') character, and must be otherwise encoded in UTF-8.
> {quote}
> As a minimum, the Web Management Console should allow creation of queues, exchanges with names matching {{^[a-zA-Z0-9-_.:]*$}}. The virtual host names matching regular expression {{^[a-zA-Z0-9/-_]+$}} should be allowed . The names of other configured objects can be unrestricted. 
> Alternatively, we can add some sort of AMQP compatibility modes to Web Management Console and management API when required level compatibility can be configured by the user and different validation rules can apply based on required compatibility.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org