Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL encoded password not accepted with "-L" mosquitto_pub #1472

Open
kmwoley opened this issue Oct 24, 2019 · 0 comments
Open

URL encoded password not accepted with "-L" mosquitto_pub #1472

kmwoley opened this issue Oct 24, 2019 · 0 comments

Comments

@kmwoley
Copy link

kmwoley commented Oct 24, 2019

I would expect a URL encoded password to be accepted with the "-L" option.

Repro:

  1. Set a password with a character that requires encoding, such as p@ssword
  2. Publish a message using the -L flag, with the password properly URI encoded. Example: mosquitto_pub -L "mqtt:https://mosquitto:p%[email protected]:1883/topic/phone" -m hello

Result: Connection error: Connection Refused: not authorised.

Note, passing the password (unencoded) works fine with the -P switch:
mosquitto_pub -u mosquitto -P p@ssword -h 10.1.1.10 -p 1883 -t topic/phone -m hello

Found on mosquitto_pub version 1.6.7 running on libmosquitto 1.6.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant