Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3615

Delete Users fails for a number of accounts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.5.4
    • Fix Version/s: 12.5.5
    • Component/s: None
    • Labels:
      None

      Description

      When deleting some users via REST interface the users are not deleted completely and the following errors show up:

      data for and element::CommentAndRatingUserDataManager. Aboring delete process, user partially deleted, but not yet marked as deleted ^%^ >>>stack of 1.cause::javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.core.commons.services.commentAndRating.model.UserRatingImpl.modifiedDate ->  at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:149) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:157) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:164) at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:1004) at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:929) at org.hibernate.internal.SessionImpl.remove(SessionImpl.java:3357) at org.olat.core.commons.services.commentAndRating.manager.UserRatingsDAO.deleteRatings(UserRatingsDAO.java:293) at org.olat.core.commons.services.commentAndRating.manager.CommentAndRatingUserDataManager.deleteUserData(CommentAndRatingUserDataManager.java:81) at org.olat.admin.user.delete.service.UserDeletionManager.deleteIdentity(UserDeletionManager.java:278) at org.olat.user.restapi.UserWebService.delete(UserWebService.java:925) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)>>>stack of 2.cause::org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.core.commons.services.commentAndRating.model.UserRatingImpl.modifiedDate ->  at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:92) at org.hibernate.event.internal.DefaultDeleteEventListener.deleteEntity(DefaultDeleteEventListener.java:261) at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:142) at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:56) at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:993) at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:929) at org.hibernate.internal.SessionImpl.remove(SessionImpl.java:3357) at org.olat.core.commons.services.commentAndRating.manager.UserRatingsDAO.deleteRatings(UserRatingsDAO.java:293) at org.olat.core.commons.services.commentAndRating.manager.CommentAndRatingUserDataManager.deleteUserData(CommentAndRatingUserDataManager.java:81) at org.olat.admin.user.delete.service.UserDeletionManager.deleteIdentity(UserDeletionManager.java:278) at org.olat.user.restapi.UserWebService.delete(UserWebService.java:925)

       

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              d.haag Daniel Haag
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m