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

Wrap encodeURIComponent to queueName in store methods #87

Merged
merged 2 commits into from
Mar 27, 2020
Merged

Wrap encodeURIComponent to queueName in store methods #87

merged 2 commits into from
Mar 27, 2020

Conversation

worotyns
Copy link
Contributor

When you have "/" characters in queue names like:
@domain/queueName

Then UI will prepare requests like:
http://localhost:3000/ui/queues/@func/queueName/clean/failed

and server will resolve this as "404".

This fix uses urlEncode on queuName before we send request.
http://localhost:3000/ui/queues/%40func%2FqueueName/clean/failed

and server resolve with "200" status.

PS. I was use encodeURIComponent() instead of qs.encode() couse of compiling problems - need webpack reconfigurations.

Copy link
Contributor

@vcapretz vcapretz left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! Can you just rebase master here so the branch is updated before I merge it?

@worotyns
Copy link
Contributor Author

Ok ;)

@vcapretz vcapretz merged commit fff938f into felixmosh:master Mar 27, 2020
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.

2 participants