Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errore codice IPA non valido #147

Closed
trinko opened this issue Oct 12, 2023 · 4 comments
Closed

Errore codice IPA non valido #147

trinko opened this issue Oct 12, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@trinko
Copy link
Contributor

trinko commented Oct 12, 2023

Salve,

segnalo che effettuando la validazione ottengo il seguente errore sul codice IPA:
"SPID Compliant Certificates Value for name attribute [Unknown OID, 2.5.4.97] must match ^PA:IT-\S{1,11}$"

Ma il codice IPA della mia scuola è più lungo di 11 caratteri (credo sia così per tutte le scuole): istsc_catf04000p

Il codice IPA in questione è ovviamente corretto: pagina consultazione IPA

Se serve, posso allegare l'XML con i metadati completi.

@trinko trinko added the bug Something isn't working label Oct 12, 2023
@peppelinux
Copy link
Member

Please provide a PR to extend this REGEXP if you can, consider me available for a revision and a merge

@peppelinux
Copy link
Member

@peppelinux
Copy link
Member

I read

In base al §5.1.4 punto 3 della suddetta norma, valorizzato con il prefisso
‘PA:IT-’ seguito dal codice IPA dell’Ente — ad esempio, per il Comune di Roma (codice
IPA ‘c_h501’) tale estensione è valorizzata come “PA:IT-c_h501”

then the PR should change the regex to PUB_SECTOR_PATTERN = r'^PA:IT-\S{1,16}$'

if you want to do that, then we can do a release together

trinko added a commit to trinko/spid-compliant-certificates-python that referenced this issue Oct 12, 2023
@peppelinux
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants