You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a thumbnail using drag and drop fails when the user clicks the Add thumbnailbutton.
http://localhost:8080/geonetwork/srv/eng/resource.upload.and.link
org.springframework.dao.InvalidDataAccessApiUsageException: id parameter of findByIdString must be parsable to an integer. It was 'null'; nested exception is java.lang.IllegalArgumentException: id parameter of findByIdString must be parsable to an integer. It was 'null'
at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:296)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:108)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:403)
Issue was related to having same ids set for upload thumbnail and resources. Setting the url options fixed that.
Misc improvements:
* Clean duplicated ids between directives
* Add missing translation
* Restrict to one file only (to be done for the drop zone)
* Fix UFO setting wrong link for upload resources
* Clear form after upload
Adding a thumbnail using drag and drop fails when the user clicks the
Add thumbnail
button.Adding the thumbnail with the file selector looks fine (the service call is different than in previous case http://localhost:8080/geonetwork/srv/eng/md.thumbnail.upload)
The text was updated successfully, but these errors were encountered: