1
Fork 0
photoview/api
Kostiantyn df9af39a16
Validate incoming GPS data (#951)
* Validate incoming GPS data and throw an error if it is incorrect, storing Null values

* Extracted GPS data processing to function in external parser; optimized IF in internal parser; removed unnecessary comments; set exact values for positive test

* Add the migration for removing existing invalid GPS data and its test; added better errors to asserts in the GPS validation test

* Install FFmpeg and ExifTool on the API unit-test environment

* Fix 'stripped.jpg', 'IncorrectGPS.jpg', and 'CorrectGPS.jpg' tests for the external parser

* Optimized data validation in the external parser, returned error by the internal parser for invalid data, updated test to expect errors and handle them

* Switched from error to log entry in case of incorrect GPS data, as error handling is not so transparent in the internal parser

---------

Co-authored-by: Konstantin Koval
2024-06-29 10:32:48 +03:00
..
.vscode Properly merge SiteInfo in Apollo cache 2020-12-09 16:58:40 +01:00
data/models Start on face detection 2021-02-15 17:35:28 +01:00
database Validate incoming GPS data (#951) 2024-06-29 10:32:48 +03:00
dataloader Batch exiftool runs + scanner package restructuring 2021-05-06 22:01:48 +02:00
graphql Optimize user's album filter. #705 (#962) 2024-06-27 21:21:09 +02:00
routes use Clean() but not Abs() to prevent directory traversal 2023-02-10 21:05:17 +08:00
scanner Validate incoming GPS data (#951) 2024-06-29 10:32:48 +03:00
server Make photoview work without providing the PHOTOVIEW_PUBLIC_ENDPOINT environment variable 2021-03-01 22:03:57 +01:00
test_utils Fix scanner queue tests 2022-03-28 18:43:00 +02:00
tools Fix audit issues in production (#933) 2024-04-11 22:21:08 +01:00
utils Make it compile again 2022-03-02 17:26:06 +01:00
example.env Completely remove PHOTOVIEW_PUBLIC_ENDPOINT 2021-03-01 22:11:58 +01:00
go.mod Update GO version in the `go.mod` and read it by the job to setup the testing environment for unit tests (#980) 2024-06-28 14:59:31 +02:00
go.sum Bump go version and modules. (#976) 2024-06-28 10:10:18 +03:00
gqlgen.yml Sidebar: people section + album path 2021-10-19 23:28:23 +02:00
server.go Start on big scanner code refactoring 2022-02-14 23:57:45 +01:00