newtonandebe / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

collect crashes if form name contains a single quote #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you download a form with a filename that contains a single quote character, 
ODK Collect crashes 
when it tries to do subsequent management operations.  This is because the 
SQLite queries aren't 
properly escaped.  I'm attaching a patch that I think resolves the issue.  
Apply to FileDbAdapter.java.

While testing, I also noticed issues with Cursor finalization under the 
debugger.  I think these are 
unrelated to the escaping problem and to my fix, and they don't seem to be a 
problem when 
running on the actual device.

Original issue reported on code.google.com by yanokwa on 29 Apr 2010 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by yanokwa on 29 Apr 2010 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by carlhart...@gmail.com on 7 Jun 2011 at 10:39

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 7 Jun 2011 at 11:26

GoogleCodeExporter commented 9 years ago
FileDbAdapter.java no longer exists.  Also I tried creating forms with quotes 
in the name and it seems to work.

Original comment by carlhart...@gmail.com on 10 Jun 2011 at 12:39