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

Fix/no workflow found #211

Merged
merged 12 commits into from
Oct 23, 2020
Merged

Fix/no workflow found #211

merged 12 commits into from
Oct 23, 2020

Conversation

just-at-uber
Copy link
Contributor

@just-at-uber just-at-uber commented Oct 23, 2020

Error caused by router not escaping forward slashes correctly.
When making API request it would try to double escape the forward slash using encodeURIComponent function which would cause the API to return "workflow not found" error.
This will now enforce at the router level that forward slashes are now correctly escaped ( / => %2F ).

Closes #207

client/main.js Outdated
@@ -137,8 +137,8 @@ const routeOpts = {
component: WorkflowTabs,
props: ({ params }) => ({
domain: params.domain,
runId: params.runId,
workflowId: params.workflowId,
runId: getEscapedForwardSlash(params.runId),

Choose a reason for hiding this comment

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

runID is generated by cadence and is always uuid

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will remove it if thats the case. Thanks!

@just-at-uber just-at-uber merged commit 31f8c8a into master Oct 23, 2020
@just-at-uber just-at-uber deleted the fix/no-workflow branch October 23, 2020 21:10
@just-at-uber just-at-uber mentioned this pull request Oct 26, 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.

workflows including / character in workflow_id fail to fetch
2 participants