+6
Planned

Images are sometimes duplicating drafts

sernikk 3 years ago updated by GCDroid Support 3 years ago 6

I noticed a bug after my last trip. When you add an image to the draft and submit the draft (auto), it seems to be fine in GCDroid, like here:

Image 331

Every cache seems to be counted once, everything is fine.


But when you go into the drafts on the website there is a duplicate:
I use an addon called GC Little Helper II which shows duplicates in red.

Image 330



When going into the drafts of "Skarby Lasu 080", one draft looks like this:


Image 332

The other one like this:


Image 333

So what is happening, GCDroid uploads two drafts - one with the photo, and one without the photo. In some cases, there are more than two drafts for the same cache, and only one of them contains the photo uploaded through the app:

Image 334

Probable cause:

During this geo-trip, I was deep in the forest, and sometimes there was no cellular reception. This probably caused errors while uploading photos, and when an error happened, the app pushed an empty draft, and then tried again the whole process. I've not known about this till I got home - there was no information inside the app - and to be honest, I understand that because it's some background process.

I hope you can fix that, cause this is doing some mess. I guess one of the options would be to disable auto-upload of drafts to geocaching.com and upload them manually later on when you have good internet access, but that's only a workaround, not a solution.

EDIT: I found a duplicate case, wherein both of the drafts there was the same photo uploaded

EDIT2: I also see a duplicate case when in one draft there are 2 photos and in the other one all 4 photos I wanted to add.

Answer

+2
Answer
Planned

I already had started working on a redo of logging with images. I think I noticed this bug and I will likely have a fix soon.

it will NOT be in 2.3.0 since that is basically ready and I don't want to hold it up. my plan is to have this fixed in 2.3.1

+2
Answer
Planned

I already had started working on a redo of logging with images. I think I noticed this bug and I will likely have a fix soon.

it will NOT be in 2.3.0 since that is basically ready and I don't want to hold it up. my plan is to have this fixed in 2.3.1

+1

@sernikk: impressive write-up. This makes it very easy for me to understand the issue and then fix it. Thank you very much for taking the time to do this!

Bumping the problem it seems that now none of the drafts is uploading with a photo, and every upload is creating a new draft, which creates the same draft for 1 cache, hellaaaaalot of times. Needs to be fixed really fast or disabled for some time.

Wait for v2.3.1 😉😁 until than : no logs or drafts with pictures... You can always add pictures thru the geocaching website! 


V2.3.1 does not fix the problem, we have to wait for V2.3.2.....

2.3.1 was a quick bugfix release for new bugs in 2.3.0

this is a bigger topic but I am working on it...