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

Bugfix/password decoding #996

Merged
merged 3 commits into from Mar 8, 2021

Conversation

Yannic92
Copy link
Contributor

@Yannic92 Yannic92 commented Mar 5, 2021

This PR fixes an issue in AMQP password decoding.
Previously the decoding was made by using java.net.URLDecoder which is meant to be used on x-www-form-urlencoded payload.
This decodes the + character to a space.

In this PR all + characters are replaced by their encoded representation %2B before calling the java.net.URLDecoder

Additionally I've made an improvement of the error description for failure when sending messages to or from a thing.

* Furthermore decode the values as URL not as HTML form url body

Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
* The permission is required on the message resource and
  not on the thing resource

Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
@thjaeckle thjaeckle added this to the 2.0.0 milestone Mar 5, 2021
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@thjaeckle thjaeckle merged commit 7640349 into eclipse-ditto:master Mar 8, 2021
@thjaeckle thjaeckle deleted the bugfix/password-decoding branch March 8, 2021 07:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants