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

URL encoding of query string values in attachment URLS #1863

Closed
ggalmazor opened this issue Jul 12, 2018 · 1 comment
Closed

URL encoding of query string values in attachment URLS #1863

ggalmazor opened this issue Jul 12, 2018 · 1 comment

Comments

@ggalmazor
Copy link

Hi, ODK Briefcase maintainer here.

I've run a quick search for this issue and, since I haven't found anything similar, I've decided to file an issue, just in case. Feel free to dismiss :)

We've received error reports from Briefcase users trying to pull forms from Kobo.

We've investigated the issue and it turns out that it might have to do with the filenames of submission media attachments that go in the download URLs as query string parameters. Those filenames are not URL encoded and break when the filenames have, for example, a space character. Example of one of the URLs that have produced an error:

https://server.com/attachment/original?media_file=formId/attachments/someHash/someUUID/2018-07-10 09.50.50-9_51_0.jpg
(I've redacted sensible information in the URL)

As you can see, the media_file query string argument has a value that ends with a filename that contains a space. This value could be URL encoded to avoid having to do so client-side.

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

No branches or pull requests

2 participants