-
-
Notifications
You must be signed in to change notification settings - Fork 389
Closed
Labels
contribution wantedthis feature is wanted but won't be implemented by core team due to limited resourcesthis feature is wanted but won't be implemented by core team due to limited resourcesfixed & releasednew feature
Description
Clear description of my expectations versus reality
Deleting an object with no history stored throws an exception:
org.javers.common.exception.JaversException: CANT_DELETE_OBJECT_NOT_FOUND: failed to delete object XXXXXXX, it doesn't exists in JaversRepository
This looks like the issue reported in #461 and fixed with merge of #477, the test is still there, but an exception is still being thrown.
Javers' Version
6.0.1
Additional context
Full stacktrace:
org.javers.common.exception.JaversException: CANT_DELETE_OBJECT_NOT_FOUND: failed to delete object XXXXXXX, it doesn't exists in JaversRepository
at org.javers.core.commit.CommitFactory.lambda$createTerminalByGlobalId$1(CommitFactory.java:58)
at java.util.Optional.orElseThrow(Optional.java:290)
at org.javers.core.commit.CommitFactory.createTerminalByGlobalId(CommitFactory.java:58)
at org.javers.core.commit.CommitFactory.createTerminal(CommitFactory.java:66)
at org.javers.core.JaversCore.commitShallowDelete(JaversCore.java:150)
at org.javers.spring.jpa.JaversTransactionalDecorator.commitShallowDelete(JaversTransactionalDecorator.java:95)
at org.javers.spring.jpa.JaversTransactionalDecorator$$FastClassBySpringCGLIB$$acb40bd0.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
at org.javers.spring.jpa.JaversTransactionalDecorator$$EnhancerBySpringCGLIB$$7f93ca29.commitShallowDelete(<generated>)
at org.javers.spring.auditable.aspect.JaversCommitAdvice.commitShallowDelete(JaversCommitAdvice.java:87)
at org.javers.spring.auditable.aspect.JaversCommitAdvice.commitDeleteMethodArguments(JaversCommitAdvice.java:62)
at org.javers.spring.auditable.aspect.JaversAuditableAspect.commitDeleteAdvice(JaversAuditableAspect.java:52)
at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
contribution wantedthis feature is wanted but won't be implemented by core team due to limited resourcesthis feature is wanted but won't be implemented by core team due to limited resourcesfixed & releasednew feature