frtrotta / app-registrazione

0 stars 0 forks source link

Creazione Utente #9

Closed lrgazzella closed 8 years ago

lrgazzella commented 8 years ago

Nella creazione di un utente, con corpo della richiesta {"password":"prova","gettoneAutenticazione":null,"gettoneAutenticazioneScadeIl":null,"nome":"prova","cognome":"prova","sesso":"M","natoIl":"1995/06/12","email":"prova@gmail.com","telefono":"01234567890","eAmministratore":false,"facebookId":null}, il server risponde con l'errore Incoherent data. The data you provided did not meet expectations: please checkt and try again.

frtrotta commented 8 years ago

Fixed in the latest release

lrgazzella commented 8 years ago

Creando un nuovo utente senza specificare il campo id, il server risponde ancora con l'errore Incoherent data. The data you provided did not meet expectations: please checkt and try again.

frtrotta commented 8 years ago

If the issue has not been solved yet, do not forget to reopen it.

Besides the misprint ("checkt"), the problem is not caused by the missing. Indeed one of the tests (#52) consists in a POST request with the JSON body {"password":"prova","gettoneAutenticazione":null,"gettoneAutenticazioneScadeIl":null,"nome":"prova","cognome":"prova","sesso":"M","natoIl":"1995/06/12","email":"delete_prova@gmail.com","telefono":"01234567890","eAmministratore":false,"facebookId":null}

The request succeeds.

Check your code again or post your request here.

lrgazzella commented 8 years ago

Tutte le date devono avere il formato yyyy/MM/dd o yyyy-MM-dd (secondo la definizione di formato del filtro date di AngularJS)