Steps to replicate the issue (include links if applicable):
- Take a deleted file: https://commons.wikimedia.org/w/index.php?title=Special:Log&page=File%3AAQUA+%26+AVATALON+BRAHMAN.jpg
- Look up the structured data, it correctly returns nothing https://commons.wikimedia.org/entity/M115454371.rdf
- Query for the same ID in the SPARQL engine: https://w.wiki/5YT6 .
What happens?:
It returns data that shouldn't be visible anymore
What should have happened instead?: The query shouldn't return anything at all
Pointed out at https://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=680579554#Structured_data_on_deleted_images . Tagged it with privacy too because this has the potential of exposing deleted data.