fix(back-end): file error handling
This commit is contained in:
@@ -22,4 +22,5 @@ spring.servlet.multipart.max-request-size=200MB
|
|||||||
# ClamAV Configuration
|
# ClamAV Configuration
|
||||||
clamav.host=${CLAMAV_HOST:clamav}
|
clamav.host=${CLAMAV_HOST:clamav}
|
||||||
clamav.port=${CLAMAV_PORT:3310}
|
clamav.port=${CLAMAV_PORT:3310}
|
||||||
|
clamav.enabled=${CLAMAV_ENABLED:false}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class TestConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@Primary
|
@Primary
|
||||||
public ClamAVService mockClamAVService() {
|
public ClamAVService mockClamAVService() {
|
||||||
return new ClamAVService("localhost", 3310) {
|
return new ClamAVService("localhost", 3310, true) {
|
||||||
@Override
|
@Override
|
||||||
public boolean scan(InputStream inputStream) {
|
public boolean scan(InputStream inputStream) {
|
||||||
return true; // Always clean for tests
|
return true; // Always clean for tests
|
||||||
|
|||||||
@@ -13,11 +13,6 @@ services:
|
|||||||
- DB_USERNAME=printcalc
|
- DB_USERNAME=printcalc
|
||||||
- DB_PASSWORD=printcalc_secret
|
- DB_PASSWORD=printcalc_secret
|
||||||
- SPRING_PROFILES_ACTIVE=local
|
- SPRING_PROFILES_ACTIVE=local
|
||||||
- FILAMENT_COST_PER_KG=22.0
|
|
||||||
- MACHINE_COST_PER_HOUR=2.50
|
|
||||||
- ENERGY_COST_PER_KWH=0.30
|
|
||||||
- PRINTER_POWER_WATTS=150
|
|
||||||
- MARKUP_PERCENT=20
|
|
||||||
- TEMP_DIR=/app/temp
|
- TEMP_DIR=/app/temp
|
||||||
- PROFILES_DIR=/app/profiles
|
- PROFILES_DIR=/app/profiles
|
||||||
- CLAMAV_HOST=clamav
|
- CLAMAV_HOST=clamav
|
||||||
|
|||||||
Reference in New Issue
Block a user