Examples: Access the default VHost not possible
- Vorherrschende Sprache
- C++
- Sterne
- 106
- Forks
- 32
- Ø Merge
- 9 Std. 4 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
**Describe the bug**
Its not possible to access the default vhost with e.g. `rmqhelloworld_producer`
**To Reproduce**
Steps to reproduce the behavior:
1. Call `rmqhelloworld_producer amqp://guest:guest@localhost:5672/`
2. See Error: `Error: Connection error NOT_ALLOWED - vhost not found, rc: 530`
**Expected behavior**
It would not use "" as vhost but rather the default "/" vhost
**Additional context**
Could be fixed in `ConnectionString::parseParts` function or Within the getter `SimpleEndpoint::vhost` by using `/` as vhost if it is empty.
Beitragsleitfaden
Rechercherichtung
Beginne mit ConnectionString::parseParts und dem Getter SimpleEndpoint::vhost, wie im Issue angegeben. Führe rmqhelloworld_producer mit amqp://guest:guest@localhost:5672/ aus und verfolge, wie der leere vhost behandelt wird. Erledigt ist die Aufgabe, wenn der Befehl eine Verbindung mit RabbitMqs standardmäßigem / vhost herstellt, statt einen leeren vhost anzufordern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, rabbitmq
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 52/100