Skip to content

OSCMessage and invalid addresses #67

Open
@BryanEnneking

Description

@BryanEnneking

I believe there is an inconsistency between the spec and the implementation of invalid address checking on messages. In short, the characters '*', ',', '?', '[', ']', '{', '}' should all be allowed in the address. Where these characters are not allowed is in method names (i.e. addresses implemented on the server). An OSC client is allowed to send addresses containing these characters for the purpose of wildcarding and pattern matching. The server then interprets these patterns in order to invoke multiple methods. Therefore, OSCMessage should allow addresses with these characters. Currently, an exception is thrown whenever these characters are in the address. There does not appear to be a way around this. Maybe these characters should be removed from the ILLEGAL_ADDRESS_CHAR regular expression or a constructor could be provided that allows checkAddress to be false.

Here are the relevant links to the spec:
Method Matching
Example

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions