You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you upload a TIFF into the Grid it is silently converted to a PNG and the original file is NOT stored. The hash of the file stored does not match that of the image ID.
This means that it is currently impossible to reindex TIFF images in the Grid.
This was discovered whilst reviewing the work done in bbc#55
Fix the underlying issue by not overwriting the original
Look at adding some tests to this functionality given that it is somewhat critical
Understand the impact by looking at how many TIFF images have been uploaded since this PR (Justinrowles/add more logging #2909) was merged (7th April 2020).
Carry out any remediation work
The text was updated successfully, but these errors were encountered:
Short description
When you upload a TIFF into the Grid it is silently converted to a PNG and the original file is NOT stored. The hash of the file stored does not match that of the image ID.
This means that it is currently impossible to reindex TIFF images in the Grid.
This was discovered whilst reviewing the work done in bbc#55
We are tracking this work internally on Trello
Steps to reproduce
Actual results
Expected results
Analysis
This behaviour was inadvertently changed in https://github.com/guardian/grid/pull/2900/files#diff-3fa8fa8b16b2fa76a800844ca8df58a51ac954474da1b2612daa24f52d580b5bR261 by moving the place that the optimised file was generated in such a way that the optimised file is sometimes stored as the original instead of the original. The original is uploaded on line 249 of the above. It is overwritten on 257 by the optimised image (which is different in the case of it being a TIFF in our case).
Actions
The text was updated successfully, but these errors were encountered: