posm / OpenMapKitAndroid

http://openmapkit.org
BSD 3-Clause "New" or "Revised" License
128 stars 38 forks source link

List of available deployments is inappropriately cached #162

Open mojodna opened 7 years ago

mojodna commented 7 years ago

When I reproduced yesterday, "VUB" was in the list, which is the name of the deployment I created last time I was using OMK with this MicroSD card mounted. "VUB" is no longer a valid deployment, though OMK still allowed me to download it.

My gut says that the list of deployments should be refreshed each time that screen appears, or something almost as aggressive.

http://posm.io (the internet-accessible one) is configured to return 200s for all requests, so the downloads succeeded but did not contain the data that was expected, putting my OMK instance in an unstable state (#161).

To check: if non-200 responses would have produced the same result (maybe, since posm.io was an alias for export.posm.io when this first occurred).

mojodna commented 7 years ago

Related to this, there's no obvious way to refresh the list of deployments w/o clicking the wifi factory icon and re-saving the OMK endpoint.