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

fixes #438 #443

Merged
merged 1 commit into from
Jul 3, 2023
Merged

fixes #438 #443

merged 1 commit into from
Jul 3, 2023

Conversation

sadiqkhoja
Copy link
Contributor

fixes #438: if URI is given in proxy_pass then nginx decodes and re-encodes path
which breaks submission attachment with special characters in webform more details: https://trac.nginx.org/nginx/ticket/2506

What has been done to verify that this works as intended?

Manually verified it locally and on Dev server

Why is this the best possible solution? Were any other approaches considered?

This is simplest and safest fix. I am going to create separate issue to investigate encoding protocol between Central and Enketo.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

None

Does this change require updates to documentation? If so, please file an issue here and include the link below.

None

Before submitting this PR, please make sure you have:

  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

…ncodes path

which breaks submission attachment with special characters in webform
more details: https://trac.nginx.org/nginx/ticket/2506
@sadiqkhoja sadiqkhoja marked this pull request as ready for review June 30, 2023 23:12
@sadiqkhoja sadiqkhoja requested a review from matthew-white June 30, 2023 23:12
@matthew-white matthew-white changed the base branch from master to next July 3, 2023 16:09
@matthew-white
Copy link
Member

Targeting the next branch because I think we'll release the patch off of next.

Copy link
Member

@matthew-white matthew-white left a comment

Choose a reason for hiding this comment

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

This seems like a reasonable approach for now, and I can't think of any downsides. This approach causes nginx to behave how we already thought it was. It's also more similar to how we use proxy_pass for Backend.

We've discussed how Enketo has unexpected requirements related to URL encoding. However, we're not sure yet how big changing that in Enketo would be. I'd be glad for us to continue that discussion, but I think this is a nice change for now.

@sadiqkhoja sadiqkhoja merged commit afa740b into next Jul 3, 2023
@matthew-white matthew-white deleted the fix/438 branch July 3, 2023 21:10
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.

Image with $ sign in the name is broken in Enketo
2 participants