research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
27 stars 14 forks source link

Restrict MIME types for image table #1243

Closed ewan-escience closed 4 months ago

ewan-escience commented 4 months ago

Restrict MIME types for image table

Changes proposed in this pull request:

How to test:

Note: you might have the non-existing MIME type image/jpg in the database. Before applying this in production, you should run the following SQL query:

UPDATE IMAGE SET mime_type = 'image/jpeg' WHERE mime_type = 'image/jpg';

Closes #1241

PR Checklist:

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed for 'rsd-database'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 4 months ago

Quality Gate Failed Quality Gate failed for 'rsd-frontend'

Failed conditions
6.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud