espressif / esp-mqtt

ESP32 mqtt component
Apache License 2.0
610 stars 257 forks source link

URL's query-string portion is getting cut off. (IDFGH-3565) #161

Closed klisevich closed 4 years ago

klisevich commented 4 years ago

Hi! I'm using MQTT over WebSocket in order to connect to amazon's endpoint with SigV4 pre-signed URL. There is an issue with ignoring query-string in mqtt_client.c:764 client->config->path = create_string(uri + puri.field_data[UF_PATH].off, puri.field_data[UF_PATH].len); I'm getting path like wss://<endpoint>.iot.<region>.amazonaws.com/mqtt instead of wss://<endpoint>.iot.<region>.amazonaws.com/mqtt?Action=ListUsers&Version=2010-05-08. What would you advise?

ESP-Marius commented 4 years ago

Hi @klisevich

Thanks for making us aware of this issue. I've created a MR to allow the query part of the uri to be added to the path. We'll update this issue when it's been merged.