Skip to content

Commit

Permalink
Closes: #133
Browse files Browse the repository at this point in the history
[GovWayCore]
Tentando di avviare la piattaforma GovWay sotto Windows, si ottiene un errore causato dal mancato supporto agli attributi posix: "java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute"
  • Loading branch information
andreapoli committed Jun 15, 2023
1 parent b9d25a3 commit 876725a
Show file tree
Hide file tree
Showing 119 changed files with 2,004 additions and 2,080 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2023-06-15 Andrea Poli <apoli@link.it>

* [GovWayCore]
Risolto Bug OP-1598
(https://github.com/link-it/govway/issues/133)
Tentando di avviare la piattaforma GovWay sotto Windows, si ottiene un errore causato dal mancato supporto agli attributi posix:
"java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute"

2023-06-15 Andrea Poli <apoli@link.it>

* [ProtocolloModIPA]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.util.Properties;

import org.openspcoop2.utils.UtilsException;
import org.openspcoop2.utils.properties.InstanceProperties;
import org.slf4j.Logger;

Expand All @@ -38,7 +39,7 @@ public class DAOFactoryInstanceProperties extends InstanceProperties {
private static final String PROPERTIES = "DAO_FACTORY_PROPERTIES";
public static final String OPENSPCOOP2_LOCAL_HOME = "GOVWAY_HOME";

DAOFactoryInstanceProperties(Properties reader,Logger log) throws Exception{
DAOFactoryInstanceProperties(Properties reader,Logger log) throws UtilsException {
super(OPENSPCOOP2_LOCAL_HOME,reader, log);

// Leggo directory di configurazione
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public DAOFactoryProperties(Logger log) throws Exception{
private String getProperty(String name,boolean required, boolean convertEnvProperty) throws Exception{
String tmp = null;
if(convertEnvProperty){
tmp = this.reader.getValue_convertEnvProperties(name);
tmp = this.reader.getValueConvertEnvProperties(name);
}else{
tmp = this.reader.getValue(name);
}
Expand Down Expand Up @@ -269,9 +269,9 @@ public String getDatasourceJNDIName(IProjectInfo tipoDAO) throws Exception {
}
private static final String PROP_DATASOURCE_JNDI_CONTEXT = "db.datasource.jndiContext";
public Properties getDatasourceJNDIContext(IProjectInfo tipoDAO) throws Exception {
Properties p = this.reader.readProperties_convertEnvProperties(PREFIX_FACTORY+tipoDAO.getProjectName()+"."+PROP_DATASOURCE_JNDI_CONTEXT);
Properties p = this.reader.readPropertiesConvertEnvProperties(PREFIX_FACTORY+tipoDAO.getProjectName()+"."+PROP_DATASOURCE_JNDI_CONTEXT);
if(p==null || p.size()<=0){
p = this.reader.readProperties_convertEnvProperties(PROP_DATASOURCE_JNDI_CONTEXT);
p = this.reader.readPropertiesConvertEnvProperties(PROP_DATASOURCE_JNDI_CONTEXT);
}
return p;
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AlarmConfigInstanceProperties extends InstanceProperties {
public static final String ALARM_PROPERTIES_LOCAL_PATH = "allarmi_configurazione_local.properties";
public static final String ALARM_PROPERTIES = "ALLARMI_CONFIGURAZIONE_PROPERTIES";

AlarmConfigInstanceProperties(Properties reader,Logger log,String confDir) throws Exception{
AlarmConfigInstanceProperties(Properties reader,Logger log,String confDir) {
super(org.openspcoop2.utils.Costanti.OPENSPCOOP2_LOCAL_HOME,reader, log);
super.setLocalFileImplementation(
ALARM_PROPERTIES, ALARM_PROPERTIES_LOCAL_PATH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public AlarmConfigProperties(org.slf4j.Logger log,String filePat, String confDir
public String getProperty(String name,String defaultValue, boolean convertEnvProperty) throws UtilsException{
String tmp = null;
if(convertEnvProperty){
tmp = this.reader.getValue_convertEnvProperties(name);
tmp = this.reader.getValueConvertEnvProperties(name);
}else{
tmp = this.reader.getValue(name);
}
Expand All @@ -154,7 +154,7 @@ public String getProperty(String name,String defaultValue, boolean convertEnvPro
public String getProperty(String name,boolean required, boolean convertEnvProperty) throws UtilsException{
String tmp = null;
if(convertEnvProperty){
tmp = this.reader.getValue_convertEnvProperties(name);
tmp = this.reader.getValueConvertEnvProperties(name);
}else{
tmp = this.reader.getValue(name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import org.openspcoop2.monitor.engine.constants.CostantiConfigurazione;
import org.openspcoop2.utils.Costanti;
import org.openspcoop2.utils.UtilsException;
import org.openspcoop2.utils.properties.InstanceProperties;
import org.slf4j.Logger;

Expand All @@ -36,7 +37,7 @@
*/
public class MonitorInstanceProperties extends InstanceProperties {

MonitorInstanceProperties(Properties reader,Logger log) throws Exception{
MonitorInstanceProperties(Properties reader,Logger log) throws UtilsException {
super(Costanti.OPENSPCOOP2_LOCAL_HOME,reader, log);

// Leggo directory di configurazione
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public MonitorProperties(org.slf4j.Logger log) throws EngineException{
public String getProperty(String name,String defaultValue, boolean convertEnvProperty) throws UtilsException{
String tmp = null;
if(convertEnvProperty){
tmp = this.reader.getValue_convertEnvProperties(name);
tmp = this.reader.getValueConvertEnvProperties(name);
}else{
tmp = this.reader.getValue(name);
}
Expand All @@ -130,7 +130,7 @@ public String getProperty(String name,String defaultValue, boolean convertEnvPro
public String getProperty(String name,boolean required, boolean convertEnvProperty) throws UtilsException{
String tmp = null;
if(convertEnvProperty){
tmp = this.reader.getValue_convertEnvProperties(name);
tmp = this.reader.getValueConvertEnvProperties(name);
}else{
tmp = this.reader.getValue(name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,21 +337,21 @@ public String toString(){
bf.append(Utilities.convertBytesToFormatString(this.bytesBandaEsterna));
bf.append("] latenza-totale[");
if(this.latenzaTotale>=0){
bf.append(Utilities.convertSystemTimeIntoString_millisecondi(this.latenzaTotale,true));
bf.append(Utilities.convertSystemTimeIntoStringMillisecondi(this.latenzaTotale,true));
}
else{
bf.append("N.D.");
}
bf.append("] latenza-servizio[");
if(this.latenzaServizio>=0){
bf.append(Utilities.convertSystemTimeIntoString_millisecondi(this.latenzaServizio,true));
bf.append(Utilities.convertSystemTimeIntoStringMillisecondi(this.latenzaServizio,true));
}
else{
bf.append("N.D.");
}
bf.append("] latenza-porta[");
if(this.latenzaPorta>=0){
bf.append(Utilities.convertSystemTimeIntoString_millisecondi(this.latenzaPorta,true));
bf.append(Utilities.convertSystemTimeIntoStringMillisecondi(this.latenzaPorta,true));
}
else{
bf.append("N.D.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,28 @@ public StatisticsForceIndexConfig(Properties p) throws IOException {

public StatisticsForceIndexConfig(InstanceProperties p) throws IOException, UtilsException {

String tmpRepo = p.getValue_convertEnvProperties(StatisticsForceIndexConfig.P_REPO);
String tmpRepo = p.getValueConvertEnvProperties(StatisticsForceIndexConfig.P_REPO);
Properties pRepoExternal = this.getExternalRepository(tmpRepo);

String groupByNumeroDimensione = p.getValue_convertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_NUMERO_DIMENSIONE);
String groupByNumeroDimensione = p.getValueConvertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_NUMERO_DIMENSIONE);
if(groupByNumeroDimensione!=null){
groupByNumeroDimensione = groupByNumeroDimensione.trim();
}
this.transazioniForceIndexGroupByNumeroDimensione = this.getIndexList(StatisticsForceIndexConfig.P_GROUPBY_NUMERO_DIMENSIONE, groupByNumeroDimensione, pRepoExternal);

String groupByLatenza = p.getValue_convertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_LATENZA);
String groupByLatenza = p.getValueConvertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_LATENZA);
if(groupByLatenza!=null){
groupByLatenza = groupByLatenza.trim();
}
this.transazioniForceIndexGroupByLatenze = this.getIndexList(StatisticsForceIndexConfig.P_GROUPBY_LATENZA, groupByLatenza, pRepoExternal);

String groupCustomByNumeroDimensione = p.getValue_convertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_CUSTOM_NUMERO_DIMENSIONE);
String groupCustomByNumeroDimensione = p.getValueConvertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_CUSTOM_NUMERO_DIMENSIONE);
if(groupCustomByNumeroDimensione!=null){
groupCustomByNumeroDimensione = groupCustomByNumeroDimensione.trim();
}
this.transazioniForceIndexGroupByCustomNumeroDimensione = this.getIndexList(StatisticsForceIndexConfig.P_GROUPBY_CUSTOM_NUMERO_DIMENSIONE, groupCustomByNumeroDimensione, pRepoExternal);

String groupCustomByLatenza = p.getValue_convertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_CUSTOM_LATENZA);
String groupCustomByLatenza = p.getValueConvertEnvProperties(StatisticsForceIndexConfig.P_GROUPBY_CUSTOM_LATENZA);
if(groupCustomByLatenza!=null){
groupCustomByLatenza = groupCustomByLatenza.trim();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public class ClassNameInstanceProperties extends InstanceProperties {

ClassNameInstanceProperties(Properties reader,Logger log) throws Exception{
ClassNameInstanceProperties(Properties reader,Logger log) {
super(CostantiPdD.OPENSPCOOP2_LOCAL_HOME,reader, log);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class ConfigLocalProperties extends InstanceProperties {

private boolean configLocal = false;

public ConfigLocalProperties(Logger log,String confDir,Properties prop) throws Exception {
public ConfigLocalProperties(Logger log,String confDir,Properties prop) {

super(CostantiPdD.OPENSPCOOP2_LOCAL_HOME,new Properties(), log); // L'originale del file config non esiste, e' su file XML o su database

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@

import java.util.Properties;

import org.slf4j.Logger;
import org.openspcoop2.pdd.core.CostantiPdD;
import org.openspcoop2.utils.UtilsException;
import org.openspcoop2.utils.properties.InstanceProperties;
import org.slf4j.Logger;

/**
* MsgDiagnosticiInstanceProperties
Expand All @@ -40,7 +39,7 @@ public class MsgDiagnosticiInstanceProperties extends InstanceProperties {



public MsgDiagnosticiInstanceProperties(Properties reader,Logger log,String confDir) throws UtilsException{
public MsgDiagnosticiInstanceProperties(Properties reader,Logger log,String confDir) {
super(CostantiPdD.OPENSPCOOP2_LOCAL_HOME,reader, log);
super.setLocalFileImplementation(CostantiPdD.OPENSPCOOP2_MSGDIAGNOSTICI_PROPERTIES,CostantiPdD.OPENSPCOOP2_MSGDIAGNOSTICI_LOCAL_PATH, confDir);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import org.slf4j.Logger;
import org.openspcoop2.pdd.core.CostantiPdD;
import org.openspcoop2.utils.UtilsException;
import org.openspcoop2.utils.properties.InstanceProperties;


Expand All @@ -37,7 +38,7 @@
*/
class OpenSPCoop2InstanceProperties extends InstanceProperties {

OpenSPCoop2InstanceProperties(Properties reader,Logger log,Properties localProperties) throws Exception{
OpenSPCoop2InstanceProperties(Properties reader,Logger log,Properties localProperties) throws UtilsException {
super(CostantiPdD.OPENSPCOOP2_LOCAL_HOME,reader, log);

// Leggo directory di configurazione
Expand Down
Loading

0 comments on commit 876725a

Please sign in to comment.