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

Metadata editor / Add thumbnail with drag and drop fails #769

Closed
josegar74 opened this issue Feb 2, 2015 · 1 comment
Closed

Metadata editor / Add thumbnail with drag and drop fails #769

josegar74 opened this issue Feb 2, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@josegar74
Copy link
Member

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)

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)

@josegar74 josegar74 added the bug label Feb 2, 2015
@josegar74 josegar74 added this to the 3.0.0 milestone Feb 2, 2015
@fxprunayre
Copy link
Member

It looks like the thumbnail drag&drop is using the online source drag&drop config. Not sure why.

fxprunayre pushed a commit that referenced this issue Mar 3, 2015
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
@fxprunayre fxprunayre self-assigned this Mar 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants