GovernIB / portafib

PortaFIB: Portafirmes Digital de les Illes Balears
7 stars 2 forks source link

No mostra l'error al no posar descripció al crear plantilla de flux #815

Open anadal-fundaciobit opened 4 months ago

anadal-fundaciobit commented 4 months ago

No mostra l'error al no posar descripció al crear plantilla de flux. Hauria de sortir l'error de la mateixa forma que apareix un error web quan fa falta el NOM.

imatge

imatge

Caused by: org.postgresql.util.PSQLException: ERROR: el valor null para la columna «descripcio» viola la restricción not null
  Detail: La fila que falla contiene (213811, null, fundaciobit_anadal, f, null).
        at org.postgresql@42.2.5//org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
        at org.postgresql@42.2.5//org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
        at org.postgresql@42.2.5//org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
        at org.postgresql@42.2.5//org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
        at org.postgresql@42.2.5//org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
        at org.postgresql@42.2.5//org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
        at org.postgresql@42.2.5//org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:120)
        at org.jboss.ironjacamar.jdbcadapters@1.4.11.Final-redhat-00001//org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:537)
        at org.hibernate@5.3.7.Final-redhat-00001//org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:175)