Copying a space throws [mma.service.MigrationMetadataAggregatorService] error There was an error in updating the metadata for spaceId <id> in MMA

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 9.1.1, 9.2.2
    • 2
    • Severity 3 - Minor
    • 0

      Issue Summary

      When copying a Space through the Space admin ui, an error is thrown in the logs. This does not affect the Space Copy.

      As a corollary, the event SpaceUpdateEvent#getOriginalSpace() will be null. That is

      @EventListener
          public void spaceUpdated(SpaceUpdateEvent spaceUpdateEvent) {
              log.info("spaceUpdatedEvent.getOriginalSpace() = {}", spaceUpdateEvent.getOriginalSpace().toString());
          }
      

      will throw

      [INFO] [talledLocalContainer] java.lang.RuntimeException: Cannot invoke "com.atlassian.confluence.spaces.Space.toString()" because the return value of "com.atlassian.confluence.event.events.space.SpaceUpdateEvent.getOriginalSpace()" is null. Listener: com.atlassian.ecohelp.field.EcohelpEventListener event: com.atlassian.confluence.event.events.space.SpaceUpdateEvent
      

      Steps to Reproduce

      1. Go to Space Admin -> Over View -> Copy Space
      2. Click Copy

      Expected Results

      Space copies with no errors and the SpaceUpdateEvent#getOriginalSpace() is not null.

      Actual Results

      The space copies, but the below exception is thrown in the atlassian-confluence.log file:

      [INFO] [talledLocalContainer] 16:57:47,985 ERROR [pool-30-thread-1] [mma.service.MigrationMetadataAggregatorService] error There was an error in updating the metadata for spaceId 1245186 in MMA: Cannot invoke \"com.atlassian.confluence.spaces.Space.getName()\" because the return value of \"com.atlassian.confluence.event.events.space.SpaceUpdateEvent.getOriginalSpace()\" is null
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            James Richards
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: