Project

General

Profile

Actions

task #8201

open

test all delete functionality in the RegistrationUI

Added by Andreas Kohlbecker about 5 years ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Highest
Category:
cdm-vaadin
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
major

Files

picture949-1.png (67.7 KB) picture949-1.png Wolf-Henning Kusber, 07/08/2019 10:36 AM
picture257-1.png (73.5 KB) picture257-1.png Wolf-Henning Kusber, 07/08/2019 10:50 AM
display_deleted_reference.PNG (30.7 KB) display_deleted_reference.PNG Wolf-Henning Kusber, 03/01/2023 01:41 PM

Related issues

Related to EDIT - bug #8377: TypeDesignationsEditors: Delete must not be allowe before the workingset is saved ClosedAndreas Kohlbecker

Actions
Actions #1

Updated by Andreas Kohlbecker almost 5 years ago

  • Target version changed from Release 5.7 to Release 5.8
Actions #2

Updated by Andreas Kohlbecker almost 5 years ago

  • Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber
Actions #3

Updated by Wolf-Henning Kusber almost 5 years ago

Saved specimen type in Registration (preparation): full functionality.
Saved name specimen type in Registration (preparation): full functionality.

Saved name: Delete button is available, delete functionality is not available, but gives back the following error (screenshot).

Actions #4

Updated by Wolf-Henning Kusber almost 5 years ago

Article not linked to any registration can be deleted without problem.

Actions #5

Updated by Wolf-Henning Kusber almost 5 years ago

Delete button is available for references with registrations. Trying to delete (which realy does not any sense) produced the following error.
Question: should we omitt this button for references with registrations?
For references without registrations deletion is functioning and makes sense, see above)

com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc
    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:162)
    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
    at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:437)
    at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:402)
    at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:273)
    at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:90)
    at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
    at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1435)
    at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:380)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor1446.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)
    ... 66 more
Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of method buttonClick in eu.etaxonomy.vaadin.mvp.AbstractPopupEditor$$Lambda$96/1738621814 failed.
    at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:533)
    at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)
    at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)
    at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1015)
    at com.vaadin.ui.Button.fireClick(Button.java:377)
    at com.vaadin.ui.Button$1.click(Button.java:54)
    ... 70 more
Caused by: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:148)
    at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:266)
    at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:68)
    at eu.etaxonomy.cdm.model.agent.TeamOrPersonBase_$$_jvsteca_63.getNomenclaturalTitle(TeamOrPersonBase_$$_jvsteca_63.java)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getAuthorAndExAuthor(TaxonNameDefaultCacheStrategy.java:255)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getNonCacheAuthorshipCache(TaxonNameDefaultCacheStrategy.java:197)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getAuthorshipCache(TaxonNameDefaultCacheStrategy.java:171)
    at eu.etaxonomy.cdm.model.name.TaxonName.updateAuthorshipCache(TaxonName.java:3605)
    at eu.etaxonomy.cdm.model.name.TaxonName.getTitleCache(TaxonName.java:1504)
    at eu.etaxonomy.cdm.service.CdmStore.lambda$handleDeleteresultInError$1(CdmStore.java:156)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at eu.etaxonomy.cdm.service.CdmStore.handleDeleteresultInError(CdmStore.java:153)
    at eu.etaxonomy.cdm.service.CdmStore.deleteBean(CdmStore.java:126)
    at eu.etaxonomy.vaadin.mvp.CdmEditorPresenterBase.deleteBean(CdmEditorPresenterBase.java:287)
    at eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter.onEditorDeleteEvent(AbstractEditorPresenter.java:118)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.vaadin.spring.events.internal.MethodListenerWrapper.publish(MethodListenerWrapper.java:78)
    at org.vaadin.spring.events.internal.ListenerCollection.publish(ListenerCollection.java:167)
    at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:116)
    at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:109)
    at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor.delete(AbstractPopupEditor.java:428)
    at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor.lambda$new$fad408e6$3(AbstractPopupEditor.java:184)
    at sun.reflect.GeneratedMethodAccessor1434.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
    ... 75 more
Actions #6

Updated by Wolf-Henning Kusber almost 5 years ago

Wolf-Henning Kusber wrote:

Article not linked to any registration can be deleted without problem.

... but is not deleted

Kusber: Überflüssige Arbeit
Kusber Zweiter überflüssiger Beitrag

The first reference appeared in the reference dropdown list.
The second entry was entered without author than deleted. The "delete" title was searched by "überflüssiger" and processed by adding the author "Kusber". After saving the article was opened again, "delete" button was clicked without any result.

Actions #7

Updated by Andreas Kohlbecker almost 5 years ago

  • Related to bug #8377: TypeDesignationsEditors: Delete must not be allowe before the workingset is saved added
Actions #8

Updated by Andreas Kohlbecker almost 5 years ago

  • Target version changed from Release 5.8 to Release 5.10
Actions #9

Updated by Andreas Kohlbecker over 4 years ago

  • Target version changed from Release 5.10 to Release 5.11
Actions #10

Updated by Andreas Kohlbecker over 4 years ago

  • Target version changed from Release 5.11 to Release 5.12
Actions #11

Updated by Andreas Kohlbecker over 4 years ago

  • Target version changed from Release 5.12 to Release 5.13
Actions #12

Updated by Andreas Kohlbecker about 4 years ago

  • Target version changed from Release 5.13 to Release 5.14
Actions #13

Updated by Andreas Müller about 4 years ago

  • Target version changed from Release 5.14 to Release 5.15
Actions #14

Updated by Andreas Müller almost 4 years ago

  • Target version changed from Release 5.15 to Release 5.18
Actions #15

Updated by Andreas Kohlbecker over 3 years ago

  • Target version changed from Release 5.18 to Phycobank ready for submitters
Actions #16

Updated by Andreas Kohlbecker about 2 years ago

  • Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber
Actions #17

Updated by Andreas Müller about 1 year ago

  • Tags changed from phycobank to phycobank, phycobank-ready-for-submitters
Actions #18

Updated by Andreas Müller about 1 year ago

  • Status changed from New to In Progress
Actions #19

Updated by Wolf-Henning Kusber about 1 year ago

Test in Vaadin test (20023-03-01):

Article not linked to any registration can be deleted without problem.

... but is not deleted in the drop down list

Article consists of
select "empty team"
Title: Titel zum Löschen
Journal: Zeitschrift für Tümpelkunde

Reference databased
Reference deleted
Search for "titel zum Löschen" found immediately in the drop down menue "Choose from existing publications" and "contains"

Actions #20

Updated by Wolf-Henning Kusber about 1 year ago

  • Assignee changed from Wolf-Henning Kusber to Andreas Müller
Actions #21

Updated by Andreas Müller about 1 year ago

WHK:

All above issues are solved except for #note-19 (Eine Reference ist in der Cache-Anzeige nachdem sie gelöscht wurde (zwar nicht mehr auswählbar aber in der Anzeige)

Actions

Also available in: Atom PDF