-
Notifications
You must be signed in to change notification settings - Fork 227
File-upload-widget not working on ODK Aggregate v2.0.2 #455
Comments
@ggalmazor Since this is a regression, I think we should try to get it into the next point release of Aggregate. Agreed? |
Thanks for reporting the issue! I've been able to reproduce this issue with v2.0.2 and I can confirm too that with v1.7.2 it doesn't happen. In v1.7.2, the SubmissionServlet.doPost() method receives this POST payload:
Then, when I try to send the same submission to a v2.0.2 server, I get this POST payload:
Note that the second part of the multipart payload with the txt file attachment is missing now. This shows that Aggregate is rejecting some parts of the message before even getting to the servlet, which indicates some web configuration issue. I Will continue investigating this issue. |
After being unable to see any meaningful difference in the webapp's configuration between v1.7.2 and v2.0.2, I've verified with ettercap (sniffer) that Collect doesn't send the part that we're missing. This could have to do with the pre-flight HEAD request it does before sending the submission. I'll continue studying that. |
I've found that the responses to the pre-flight HEAD requests Collect makes are different: v1.7.2
v2.0.2
This one is missing the |
I've verified that after restoring the I think we need to discuss this over at Collect, because it seems weird that it wouldn't send a complete request depending on the presence of that header, more so if we aknowledge that the header is not giving Collect any valuable information for sending submissions and that HTTP 204 responses shouldn't have it in the first place. What do you think, @grzesiek2010? |
investigating this report, i think Central is suffering from the same problem. as far as i can tell, we have always suffered from this issue in Central, because we've never supplied this Location header. |
See getodk/collect#3038 for a proposed fix. |
…der_in_HEAD_responses Issue #455 Restore the Location header in HEAD pre-flight responses
Software and hardware versions
Aggregate v2.0.2
Problem is not visible on Aggregate 1.7
Problem description
File-upload-widget not working on ODK Aggregate v2.0.2
Steps to reproduce the problem
fileWidgets.xml.txt
Expected behavior
Other information
Reported on forum: https://forum.opendatakit.org/t/file-upload-widget-not-working-on-odk-aggregate-v2-0-2/19164
The text was updated successfully, but these errors were encountered: