Salvatore La Manna 4 anni fa
parent
commit
0858d0eeab
  1. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  2. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java

@ -2480,9 +2480,8 @@ public class ValidazionePraticaUtil {
options.setLocation(urlPdfExtractor); options.setLocation(urlPdfExtractor);
options.setPost(true); options.setPost(true);
List<FilePart> fileParts = new ArrayList<>(); List<FilePart> fileParts = new ArrayList<>();
// TODO perché cazzo non funziona il contentType??? // Complimenti all'ignoto autore di questo magnifico TODO
// FilePart filePart = new FilePart("file", fileName, fileBytes, // TODO perché cazzo non funziona il contentType???
// ContentType.P7M.getContentType(), "UTF-8");
FilePart filePart = new FilePart("file", fileName, fileBytes, "application/pkcs7-signature", "UTF-8"); FilePart filePart = new FilePart("file", fileName, fileBytes, "application/pkcs7-signature", "UTF-8");
fileParts.add(filePart); fileParts.add(filePart);
options.setFileParts(fileParts); options.setFileParts(fileParts);

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java

@ -2216,7 +2216,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
JSONObject snapshot = jsonObjectResponse.getJSONObject("Snapshot"); JSONObject snapshot = jsonObjectResponse.getJSONObject("Snapshot");
int responseVersion = snapshot.getInt("version"); int responseVersion = snapshot.getInt("version");
if (responseVersion != version) { if (responseVersion != version) {
_log.error("Le versioni non corrispondono"); _log.error("Le versioni non corrispondono " + responseVersion + "/" + version);
} }
JSONObject jsonFields = snapshot.getJSONObject("fields"); JSONObject jsonFields = snapshot.getJSONObject("fields");
for (String hiddenField : PraticaUtil.getDettPraticaHiddenFields()) { for (String hiddenField : PraticaUtil.getDettPraticaHiddenFields()) {
@ -2239,6 +2239,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
} else { } else {
_log.error(options.getLocation() + ": " + options.getResponse().getResponseCode()); _log.error(options.getLocation() + ": " + options.getResponse().getResponseCode());
} }
// return "{\"values\":[],\"Snapshot\":{\"version\":0,\"fields\":{}}}";
return StringPool.BLANK; return StringPool.BLANK;
} }

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2414 build.number=2415
build.date=1600684750317 build.date=1600698455241
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva