W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[Bug 13777] New: The WebSocket protocol draft (hybi-10) restricts the value of subprotocols as follows: The elements that comprise this value MUST be non- empty strings with characters in the range U+0021 to U+007E not including separator characters as defined

From: <bugzilla@jessica.w3.org>
Date: Mon, 15 Aug 2011 08:27:07 +0000
To: public-webapps@w3.org
Message-ID: <bug-13777-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13777

           Summary: The WebSocket protocol draft (hybi-10) restricts the
                    value of subprotocols as follows:     The elements
                    that comprise this value MUST be non-     empty
                    strings with characters in the range U+0021 to U+007E
                    not     including separator characters as defined
           Product: WebAppsWG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: WebSocket API (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


Specification: http://dev.w3.org/html5/websockets/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
The WebSocket protocol draft (hybi-10) restricts the value of subprotocols as
follows:

    The elements that comprise this value MUST be non-
    empty strings with characters in the range U+0021 to U+007E not
    including separator characters as defined in [RFC2616], and MUST
    all be unique strings."

Current WebSocket API does not fully enforce the above limitations. I think
API should be in line with the protocol spec on limitation of subprotocols.

This affects the following snippets of text from WS API:

"The subprotocol names must all be non-empty ASCII strings with no control
characters and no spaces in them (i.e. only characters in the range U+0021 to
U+007E)."

This statement should mention:
- Subprotocol names must not contain separator characters.
- Each subprotocol name must be unique.

"If any of the values in protocols occur more than once or contain characters
with Unicode code points less than U+0021 or greater than U+007E (i.e. the
space character or any characters that are not printable ASCII characters),
then throw a SYNTAX_ERR exception and abort these steps."

This statement should mention:
- Any of subprotocol names must not be empty.
- Subprotocol names must not contain separator characters.
- SYNTAX_ERR must be thrown in these cases.

Posted from: 2401:fa00:4:1000:baac:6fff:fe99:adfb
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like
Gecko) Chrome/15.0.849.0 Safari/535.1

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 15 August 2011 08:27:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT