Resolved conflicts while syncing with the master branch
This commit is contained in:
@@ -1805,6 +1805,7 @@ public class ApplicationEvaluationDao {
|
|||||||
.orElseThrow(() -> new ResourceNotFoundException(Status.NOT_FOUND,
|
.orElseThrow(() -> new ResourceNotFoundException(Status.NOT_FOUND,
|
||||||
Translator.toLocale(GepafinConstant.APPLICATION_EVALUATION_NOT_FOUND)));
|
Translator.toLocale(GepafinConstant.APPLICATION_EVALUATION_NOT_FOUND)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ApplicationEvaluationResponse updateApplicationEvaluation(
|
public ApplicationEvaluationResponse updateApplicationEvaluation(
|
||||||
Long assignedApplicationId,
|
Long assignedApplicationId,
|
||||||
List<EvaluationDocumentRequest> docRequest) {
|
List<EvaluationDocumentRequest> docRequest) {
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.net.URLDecoder;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -118,12 +120,15 @@ public class AmazonS3ServiceImpl implements AmazonS3Service {
|
|||||||
public InputStream getFile(String s3Folder, String filePath) {
|
public InputStream getFile(String s3Folder, String filePath) {
|
||||||
try {
|
try {
|
||||||
String fileName = Utils.extractFileName(filePath);
|
String fileName = Utils.extractFileName(filePath);
|
||||||
String path = s3Folder + "/" + fileName;
|
// Decode the file name to handle special characters like '+' correctly
|
||||||
|
String decodedFileName = URLDecoder.decode(fileName, StandardCharsets.UTF_8.toString());
|
||||||
|
|
||||||
|
String path = s3Folder + "/" + decodedFileName;
|
||||||
GetObjectRequest getObjectRequest = new GetObjectRequest(bucketName, path);
|
GetObjectRequest getObjectRequest = new GetObjectRequest(bucketName, path);
|
||||||
S3Object s3Object = amazonS3.getObject(getObjectRequest);
|
S3Object s3Object = amazonS3.getObject(getObjectRequest);
|
||||||
log.info("File fetched successfully from Amazon S3: {}", fileName);
|
log.info("File fetched successfully from Amazon S3: {}", fileName);
|
||||||
return s3Object.getObjectContent();
|
return s3Object.getObjectContent();
|
||||||
} catch (AmazonS3Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Error occurred while getting file from Amazon S3: {}", e);
|
log.error("Error occurred while getting file from Amazon S3: {}", e);
|
||||||
throw new CustomValidationException(Status.VALIDATION_ERROR,
|
throw new CustomValidationException(Status.VALIDATION_ERROR,
|
||||||
Translator.toLocale(GepafinConstant.GET_ERROR_S3));
|
Translator.toLocale(GepafinConstant.GET_ERROR_S3));
|
||||||
|
|||||||
@@ -29,4 +29,4 @@ appointment.portal.user=UtenzaAPIPortal@621
|
|||||||
appointment.portal.password=u13nzaAP1P0rtal
|
appointment.portal.password=u13nzaAP1P0rtal
|
||||||
appointment.portal.source=GEPAFINPORTAL
|
appointment.portal.source=GEPAFINPORTAL
|
||||||
appointment.portal.context=GEPAFINPORTAL
|
appointment.portal.context=GEPAFINPORTAL
|
||||||
flagDaFirmare=true
|
flagDaFirmare=false
|
||||||
@@ -335,4 +335,4 @@ upload.document.is.only.for.gepafin = Document cant be uploaded, this is only av
|
|||||||
appointment.created.successfully = Appointment created successfully.
|
appointment.created.successfully = Appointment created successfully.
|
||||||
error.try.again = Service call error while performing the operation. Please try again.
|
error.try.again = Service call error while performing the operation. Please try again.
|
||||||
document.uploading.is.in.progress = Document uploading is in progress.
|
document.uploading.is.in.progress = Document uploading is in progress.
|
||||||
all.document.checked.and.one.checklist.checked=All document should be checked and at least one checklist should be checked.
|
all.document.checked.and.one.checklist.checked=All document should be checked and at least one checklist should be checked.
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ beneficiary.call.duplicate = Una chiamata preferita con questo ID di chiamata e
|
|||||||
user.must.be.associated.with.company.to.create.application=Devi essere associato a un'azienda per poter presentare domanda per questa applicazione.
|
user.must.be.associated.with.company.to.create.application=Devi essere associato a un'azienda per poter presentare domanda per questa applicazione.
|
||||||
company.id.required.for.preferred.call=ID azienda obbligatorio quando si richiedono solo chiamate preferite.
|
company.id.required.for.preferred.call=ID azienda obbligatorio quando si richiedono solo chiamate preferite.
|
||||||
response.days.not.null=I giorni di risposta non devono essere nulli e maggiori di zero.
|
response.days.not.null=I giorni di risposta non devono essere nulli e maggiori di zero.
|
||||||
application.cannot.approved.or.rejected=La domanda non può essere approvata o rifiutata perché l'emendamento è attivo.
|
application.cannot.approved.or.rejected=La domanda non pu<EFBFBD> essere approvata o rifiutata perch<EFBFBD> l'emendamento <EFBFBD> attivo.
|
||||||
atleast.one.id.required=Almeno uno tra companyId o applicationId deve essere fornito.
|
atleast.one.id.required=Almeno uno tra companyId o applicationId deve essere fornito.
|
||||||
|
|
||||||
#Appointment flow messages
|
#Appointment flow messages
|
||||||
@@ -324,5 +324,5 @@ appointment.creation.is.only.for.gepafin = La creazione degli appuntamenti ? con
|
|||||||
upload.document.is.only.for.gepafin = Il documento non pu? essere caricato, questa operazione ? disponibile solo per il Hub GEPAFIN.
|
upload.document.is.only.for.gepafin = Il documento non pu? essere caricato, questa operazione ? disponibile solo per il Hub GEPAFIN.
|
||||||
appointment.created.successfully = Appuntamento creato con successo.
|
appointment.created.successfully = Appuntamento creato con successo.
|
||||||
error.try.again = Errore di chiamata di servizio durante l'esecuzione dell'operazione. Riprovare.
|
error.try.again = Errore di chiamata di servizio durante l'esecuzione dell'operazione. Riprovare.
|
||||||
document.uploading.is.in.progress = Il documento è in fase di caricamento.
|
document.uploading.is.in.progress = Il documento <EFBFBD> in fase di caricamento.
|
||||||
all.document.checked.and.one.checklist.checked=Tutti i documenti devono essere controllati e almeno una checklist deve essere controllata.
|
all.document.checked.and.one.checklist.checked=Tutti i documenti devono essere controllati e almeno una checklist deve essere controllata.
|
||||||
|
|||||||
Reference in New Issue
Block a user