peterservice-rnd/robotframework-rabbitmq

Problem get message queue with name queue contains /

Opened this issue · 1 comments

Hi. I have problem in get message in queue that contains / for example CUSTOMER_ANALYSIS_COMPLETED/EXCHANGE, the response is 405. I try pass this mode CUSTOMER_ANALYSIS_COMPLETED%2FEXCHANGE, but lib transform in CUSTOMER_ANALYSIS_COMPLETED%252FEXCHANGE.

Hi, could you tell please why do you need to quote / character?
Now queue names are quoted via https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
here

path = f'/queues/{self._quote_vhost(vhost)}/{quote(queue_name)}/get'

so / is safe parameter by default.