getodk / briefcase

ODK Briefcase is a Java application for fetching and pushing forms and their contents. It helps make billions of data points from ODK portable. Contribute and make the world a better place! ✨💼✨
https://docs.getodk.org/briefcase-intro
Other
60 stars 154 forks source link

Metadata files should contain relative file paths #806

Closed ggalmazor closed 5 years ago

ggalmazor commented 5 years ago

Problem description

Current code in master generates metadata.json files with absolute paths to the form files, which make them not portable. Any path should be relative to the briefcase directory.

Steps to reproduce the problem

  1. Pull a form and close Briefcase
  2. Move the SD to another location
  3. Open Briefcase and change the storage location directory in the settings tab.
  4. Try to export the form

You should see that Briefcase freezes and there's an error in the logs

Expected behavior

Briefcase shouldn't freeze or fail.