Skip to content

Commit

Permalink
BUGS vari
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Jan 8, 2016
1 parent 1f68bbf commit c41a222
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Expand Up @@ -374,7 +374,7 @@ public void signDocuments(ActionContext context, FirmaOTPBulk firmaOTPBulk, List
throw new ApplicationException("Errore nella lettura dei certificati!\nVerificare Nome Utente e Password!");
String codiceFiscale = subjectDN.get("SERIALNUMBER").substring(3);
UtenteBulk utente = ((CNRUserInfo)context.getUserInfo()).getUtente();
if (controlloCodiceFiscale != null && controlloCodiceFiscale.equalsIgnoreCase("Y") && !utente.getCodiceFiscaleLDAP().equalsIgnoreCase(codiceFiscale)) {
if (controlloCodiceFiscale != null && controlloCodiceFiscale.equalsIgnoreCase("Y") && utente.getCodiceFiscaleLDAP() != null && !utente.getCodiceFiscaleLDAP().equalsIgnoreCase(codiceFiscale)) {
throw new ApplicationException("Il codice fiscale \"" + codiceFiscale + "\" presente sul certicato di Firma, " +
"è diverso da quello dell'utente collegato \"" + utente.getCodiceFiscaleLDAP() +"\"!");
}
Expand Down
Expand Up @@ -170,7 +170,7 @@ public String getDisplayFunzioniAbilitate() {
@Override
public void validate() throws ValidationException {
super.validate();
if (getTitoloFirma().equalsIgnoreCase(TITOLO_FIRMA_DELEGATO) && getDelegatoDa() == null){
if (getTitoloFirma() != null && getTitoloFirma().equalsIgnoreCase(TITOLO_FIRMA_DELEGATO) && getDelegatoDa() == null){
throw new ValidationException("Valorizzare il delegato!");
}
}
Expand Down
Expand Up @@ -281,5 +281,8 @@

<findFieldProperty
name="cd_utente" />

<findFieldProperty
name="cd_utente_uid"
label="Codice Utente Ufficiale CNR (nome.cognome)" />

</bulkInfo>

0 comments on commit c41a222

Please sign in to comment.