question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When an encrypted form has a space in its formID, submission to data server fails with 404

See original GitHub issue

v2.7.3

Describe the bug When an encrypted form has a space in its formID, submission to data server fails with 404. See Central issue and original ODK forum report from LSHTM. We suspect this would affect any formID that needs to be URL-encoded.

To Reproduce

  1. Create a form definition with a space in its formID and an encryption key on a data server
  2. Successfully create a link for and open the form in Enketo
  3. Fill out the form and try to submit it
  4. See Submission service on data server not found. (404)

Expected behavior Forms with any formID can be encrypted.

Suspicious: https://github.com/enketo/enketo-express/blob/3f353ea44934045e185db71e26ec331146ec2610/public/js/src/module/controller-webform.js#L268

My next step would be to try this locally to see what is actually being sent to the data server. I can’t find a way to do that on a production server.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lognaturelcommented, Apr 27, 2021

To be clear, this /only/ affects encrypted forms. FormIDs with spaces work fine generally. That’s why that line which relates only to encrypted forms seems like a very likely culprit.

1reaction
MartijnRcommented, Apr 28, 2021

Thanks. Possible link with https://github.com/enketo/enketo-express/issues/35 (but probably not).

Read more comments on GitHub >

github_iconTop Results From Across the Web

change to encrypted form once already started data ...
As outlined above new forms work fine, just the form which was already live and had some submissions before encryption doesnt work.
Read more >
The 404 or the site is not secure messages in both Chrome ...
Technically, this warning means that you cannot get a SSL(Secure Socket Layer) connection. Your browser sends a request to the server where the ......
Read more >
Object Storage Service:HTTP 404 status code
This topic describes the types of error messages returned with HTTP status code 404, and the common causes of and solutions to these...
Read more >
Encrypted Forms and How to Use Them
It means that your encrypted data is lost forever, there is no copy of the same on our servers, and it is impossible...
Read more >
In Introduction to HTTP Basics
If the request-URI does not exist, the server will return an error message "404 Not Found". You have to issue a proper request-URI,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found