[ https://issues.apache.org/jira/browse/PROTON-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13905544#comment-13905544 ]
Andrew Stitcher commented on PROTON-506: ---------------------------------------- I believe the problem is that the current "parser" parses the wrong syntax. [ <scheme> :// ] [ <user> [ : <password> ] @ ] <host> [ : <port> ] [ / <path> ] where <user>, <password> cannot contain '@' or ':' but can contain '/' I believe the correct syntax is: [ <scheme> :// ] [ <user> [ : <password> ] @ ] <host> [ : <port> ] [ / <path> ] where <user>, <password>, <host>, <port> cannot contain any of '@', ':', '/' <path> can contain any character Notice the difference is in the allowed character classes for the identifiers. > Queue names with '@' symbol cause incorrect hostname lookup > ----------------------------------------------------------- > > Key: PROTON-506 > URL: https://issues.apache.org/jira/browse/PROTON-506 > Project: Qpid Proton > Issue Type: Bug > Components: python-binding > Affects Versions: 0.6 > Reporter: Brian Bouterse > Assignee: Rafael H. Schloming > Fix For: 0.7 > > Attachments: proton-506.diff > > > I have need to create a queue with the following name (no quotes): > "cel...@dhcp129-138.rdu.redhat.com.celery.pidbox" > I try to subscribe using the string > 'amqp://localhost/cel...@dhcp129-138.rdu.redhat.com.celery.pidbox' > I receive the following error: > Unrecoverable error: MessengerException('[-2]: unable to connect to > amqp://localhost/cel...@dhcp129-138.rdu.redhat.com.celery.pidbox: > getaddrinfo(dhcp129-138.rdu.redhat.com.celery.pidbox, 5672): Name or service > not known',) > I expected the hostname to be 'localhost', but instead the hostname being > used is 'dhcp129-138.rdu.redhat.com.celery.pidbox' which is not an actual > hostname. > Better interpretation of the string would resolve this. -- This message was sent by Atlassian JIRA (v6.1.5#6160)