fix: exif gps parsing of malformed data (#23551)

* fix: exif gps parsing of malformed data

* chore: e2e test
This commit is contained in:
Daniel Dietzler
2025-11-03 15:02:41 +01:00
committed by GitHub
parent 619de2a5e4
commit 517c3e1d4c
3 changed files with 17 additions and 9 deletions

View File

@@ -1140,6 +1140,16 @@ describe('/asset', () => {
},
},
},
{
input: 'metadata/gps-position/empty_gps.jpg',
expected: {
type: AssetTypeEnum.Image,
exifInfo: {
latitude: null,
longitude: null,
},
},
},
];
it.each(tests)(`should upload and generate a thumbnail for different file types`, async ({ input, expected }) => {