Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric Geofence names cause nightmare situation - DO NOT TRY WITHOUT READING #220

Open
comstud opened this issue Feb 5, 2024 · 0 comments

Comments

@comstud
Copy link

comstud commented Feb 5, 2024

Creating a geofence and using a name that is only numbers will replace an existing record with that geofence id.

(For the record, I don't want only numeric names.. I just discovered this by chance. It'd be fine if the fix was to disallow them.)

Thank goodness for db backups, eh?

Steps to reproduce in admin interface:

  1. Find or create a geofence you don't care to lose. Go edit it and grab id from url. Pick a normal name for this one.
  2. To make it easy to spot the issue later: Find or create a 2nd geofence, also with a normal name, and set the geofence in Step 1 as the parent. In list of geofences, you'll see the geofence in Step 1 as the parent for this new one.
  3. Now the fun: Create a new geofence. For the name, use the id from Step 1. Save it.
  4. Look around at your geofences. The geofence in Step 1 looks gone. The geofence in Step 2 will have the new geofence as parent, showing that the new fence received the same id as what was created in Step 1.

NOTE: renaming an existing geofence to one that has all numbers does not seem to be a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant