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

Support url/uri encoding of topic-name for http-request #160

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

rdhabalia
Copy link
Contributor

Motivation

Based on #148 (creating patch on branch-1.15): Broker has lookup and admin REST-api on top of JAX-RS which doesn't follow urlencoding spec while decoding query-param.
application/x-www-form-urlencoded uses + and properly encoded URIs use %20. So, if client sends request with url-encoded query-param (topicName) then broker may not decode it properly due to jax-rs limitation. Therefore, broker should use url-decoder which can handle decoding properly. ( both + and %20 can be decoded into space)

Modifications

Take encoded topic-name query-param from the http-request and decodes it using url-encoder.

Result

Broker can support both url/uri encoded topic-name request (lookup and admin rest-api).

@rdhabalia rdhabalia added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jan 3, 2017
@rdhabalia rdhabalia self-assigned this Jan 3, 2017
@yahoocla
Copy link

yahoocla commented Jan 3, 2017

CLA is valid!

1 similar comment
@yahoocla
Copy link

yahoocla commented Jan 3, 2017

CLA is valid!

@rdhabalia rdhabalia merged commit 62f759e into apache:branch-1.15 Jan 4, 2017
@rdhabalia rdhabalia deleted the url_encode branch January 23, 2017 21:59
sijie added a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
* Set delay delivery when publishing a message

* Fixed indentations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants