When an encrypted form has a space in its formID, submission to data server fails with 404
See original GitHub issuev2.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
- Create a form definition with a space in its formID and an encryption key on a data server
- Successfully create a link for and open the form in Enketo
- Fill out the form and try to submit it
- See
Submission service on data server not found. (404)
Expected behavior Forms with any formID can be encrypted.
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:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Thanks.
Possible link with https://github.com/enketo/enketo-express/issues/35 (but probably not).