openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
654 stars 384 forks source link

Phantom selected image, no traces of deletion #1866

Open teolemon opened 5 years ago

teolemon commented 5 years ago

image image

teolemon commented 5 years ago

https://world.openfoodfacts.org/images/products/843/655/186/5089/nutrition_es.3.400.jpg https://world.openfoodfacts.org/images/products/843/655/186/5089/3.jpg

teolemon commented 5 years ago

https://world.openfoodfacts.org/cgi/product.pl?type=edit&code=8436551865089#nutrition_data_table

teolemon commented 5 years ago

https://world.openfoodfacts.org/cgi/product.pl?type=edit&code=8421691714731

stephanegigandet commented 5 years ago

The image has not been deleted, it's still there. Rather it has not been added to the list of images. This is probably a race condition that happens very rarely. I would remove the P1 label.

It may be difficult to solve the race condition, but we can find a way to get back the uploaded image in the list of images of the product.

hangy commented 5 years ago

ACK. Pretty sure it's another instance of the reported "vanishing uploaded images" issues.

This is probably a race condition that happens very rarely. I would remove the P1 label.

I agree on the P1 label. However, I'm not too sure about this issue happening very rarely. IIRC, it is kind of easy to reproduce by uploading several images to an existing product at once. (At least, that's how I used to be able to produce the "already uploaded" #486 error.)