Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-14243

Person Doc - not able to edit person with existing delegate

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.2
    • Fix Version/s: 2.6
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-6935If you access person maintenance or role maintenace and add a delegation with a future Active From Date then you cannot see that delegation exists to verify or edit after submit.
      KULRICE-13941Person Doc - The Delegation Type Code column header is replaced by Actions column header
      KULRICE-8254Editing Delegations does not work correctly
      KULRICE-14289SQLIntegrityConstraintViolationException when editing person with delegations
      KULRICE-11045Delegations throws exception when selecting role in Person Maintenance
      KULRICE-3898Unable to add a Group to a Person via the Person document - access error received
      KULRICE-13002Object on EntityTypeContactInfoBo are not update able from the UI
      KULRICE-7744MAINTENANCE: New person record stuck in ENROUTE status
      KULRICE-4310Checking if a person was returned before attempting to set them as a delegator in ActionItemDAOOjbImpl
      KULRICE-8542Person, role & group docs should not allow multiple docs editing the same record to be saved at the same time
    • Rice Team:
      Middleware
    • Sprint:
      Rice Sprint 2015-04-15
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes
    • Story Points:
      1

      Description

      The fix for KULRICE-14235 included changing the fix made for KULRICE-12124- Submitting a Person document causes a stacktrace even though the document goes final. Due to that, I did some testing of the person document and found another issue.

      I verified that this error also occurs before any code changes were made for KULRICE-14235.

      After you create a person with a delegate, it is not possible to edit the person without getting an optimistic lock exception.

      ******************Stack Trace-Only shown when not in production*****************
      org.springframework.orm.jpa.JpaOptimisticLockingFailureException: Exception [EclipseLink-5010] (Eclipse Persistence Services - 2.6.0.v20140809-296a69f): org.eclipse.persistence.exceptions.OptimisticLockException
      Exception Description: The object [org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember@1918f45a[serialVersionUID=1,delegationMemberId=10000,roleMemberId=KR1000,roleMemberMemberId=,roleMemberMemberTypeCode=,roleMemberName=guest,roleMemberNamespaceCode=,delegationId=10000,memberId=10000,memberTypeCode=P,memberNamespaceCode=,memberName=sam,delegationTypeCode=P,serialVersionUID=9042706897191231671,active=true,edit=true,serialVersionUID=9042706897191231670,documentNumber=3048,serialVersionUID=1451642350593233282,versionNumber=1,objectId=a0d97ca7-62b8-485a-93e5-942f999741b2,newCollectionRecord=false,serialVersionUID=5563310175227245001,_persistence_shouldRefreshFetchGroup=false]] cannot be merged because it has changed or been deleted since it was last read. 
      Class> org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember; nested exception is javax.persistence.OptimisticLockException: Exception [EclipseLink-5010] (Eclipse Persistence Services - 2.6.0.v20140809-296a69f): org.eclipse.persistence.exceptions.OptimisticLockException
      Exception Description: The object [org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember@1918f45a[serialVersionUID=1,delegationMemberId=10000,roleMemberId=KR1000,roleMemberMemberId=,roleMemberMemberTypeCode=,roleMemberName=guest,roleMemberNamespaceCode=,delegationId=10000,memberId=10000,memberTypeCode=P,memberNamespaceCode=,memberName=sam,delegationTypeCode=P,serialVersionUID=9042706897191231671,active=true,edit=true,serialVersionUID=9042706897191231670,documentNumber=3048,serialVersionUID=1451642350593233282,versionNumber=1,objectId=a0d97ca7-62b8-485a-93e5-942f999741b2,newCollectionRecord=false,serialVersionUID=5563310175227245001,_persistence_shouldRefreshFetchGroup=false]] cannot be merged because it has changed or been deleted since it was last read. 
      Class> org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember
      	at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:404)
      	at org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:122)
      	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:417)
      	at org.kuali.rice.krad.data.jpa.KradEntityManagerFactoryBean.translateExceptionIfPossible(KradEntityManagerFactoryBean.java:533)
      	at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
      	at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
      	at org.kuali.rice.krad.data.jpa.JpaPersistenceProvider.doWithExceptionTranslation(JpaPersistenceProvider.java:555)
      	at org.kuali.rice.krad.data.jpa.JpaPersistenceProvider.save(JpaPersistenceProvider.java:187)
      	at sun.reflect.GeneratedMethodAccessor782.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      	at com.sun.proxy.$Proxy45.save(Unknown Source)
      	at org.kuali.rice.krad.data.provider.impl.ProviderBasedDataObjectService.save(ProviderBasedDataObjectService.java:155)
      

        Issue Links

          Activity

          Hide
          Shannon Hess added a comment -

          To reproduce the problem:

          • Create a new person with a delegate.
          • Edit the person you just created
          • Add a desc, and submit the doc.
          Show
          Shannon Hess added a comment - To reproduce the problem: Create a new person with a delegate. Edit the person you just created Add a desc, and submit the doc.
          Hide
          Shannon Hess added a comment -
          Show
          Shannon Hess added a comment - Pull request created - https://github.com/kuali/rice/pull/135

            People

            • Assignee:
              Shannon Hess
              Reporter:
              Shannon Hess
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Structure Helper Panel