Resolved conflicts while syncing with the master branch

This commit is contained in:
rajesh
2024-12-20 11:30:49 +05:30
5 changed files with 13 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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));

View File

@@ -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

View File

@@ -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.