xFormList Hash

Hello Team,

Please assist, What information do we hash in the xform,
i.e md5:b2b43e2b439d7181dfeb9edc540c25f6, do we md5 file name or what information? and in which format ?,am asking this because every time on ODK Collect get blank form says "This is an update to a form you have", while there is no change in md5 hash from new form and the previous downloaded form.


Hi @chopoti

it's a hash of your entire form. If you constantly see

that means a form you have is different or has different media files.
Are you sure they are the same? If so what server do you use?

You mean form like this buildings.xml (7.3 KB), then we open and hash all contents of it. I have no media files and using local server

Yes it's a hash of the entire content of such a form.
We compare that hash with the value provided by the server. When hashes are different the mentioned message is displayed.
Local server... you mean aggregate?

We create our own local hosted aggregate, form submission is working perfect, form list is listing available forms and odk collect able to download the form, but if you click again get blank forms it always see as a new updated form available while am using the same hash from the previous download, i tried :- to hash only version failed, hash form id failed and now trying to copy entire form contents from <?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head> to the end .... </h:body>
</h:html>, But still getting the same message.

Managed after hashing full contents as you advice, but using buffer type/stream of the contents.

1 Like