OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (MQTT-76) Should "+" be allowed at the beginning of the topic filter in a subscription?


    [ http://tools.oasis-open.org/issues/browse/MQTT-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34499#action_34499 ] 

Nick O'Leary commented on MQTT-76:
----------------------------------

To be even more picky, I don't like the use of 'Therefore' in normative sections. I do like everything you propose other than that sentence.

The section being discussed, 4.5.1.3, includes a non-normative section (starting line 1308 in WD10) which lists valid and invalid examples that cover most of the cases from the 'therefore' sentence.

Proposal:
----------------------------------------
4.5.1.3 Single level wildcard 
The plus sign ('+' 0x2B) is a wildcard character that matches only one topic level. 

The single-level wildcard can be used at any level in the topic filter, including first and last levels. Where it is used it MUST occupy an entire level of the filter.  It can be used at more than one level in the topic filter and can be used in conjunction with the multilevel wildcard.

[ First non-normative comment "For example, sport/tennis/+ matches...." unchanged ] 

[Second non-normative comment has the following example added to cover the use of both + and # in a filter] : 
 - +/tennis/# is valid
----------------------------------------


> Should "+" be allowed at the beginning of the topic filter in a subscription?
> -----------------------------------------------------------------------------
>
>                 Key: MQTT-76
>                 URL: http://tools.oasis-open.org/issues/browse/MQTT-76
>             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
>          Issue Type: Improvement
>          Components: core
>            Reporter: Andrew Banks
>
> Draft09 says 
> 4.5.1.3 Single level wildcard
> The plus sign ('+' 0x2B) is a wildcard character that matches only one topic level. 
> The single-level wildcard can be used at any level in the topic filter. It can be used in conjunction with the multilevel wildcard. 
> It MUST be the only character between two topic level separators, or the last level, or on its own. 
> The input Specification says:
> The single-level wildcard can be used at any level in the topic tree, and in
> conjunction with the multilevel wildcard. It must be used next to the topic level
> separator, except when it is specified on its own. Therefore, + and finance/+ are
> both valid, but finance+ is not valid. The single-level wildcard can be used at the
> end of the topic tree or within the topic tree. For example, finance/+ and
> finance/+/ibm are both valid.
> Apparently the intent of the input specification was to mean "either end of the topic tree" ie at the beginning or the end, 
> hence +/finance would be a valid topic filter.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]