Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-1360

JCMA: App Assessment UI won't load properly if the admin user has an invalid or NULL email address

    XMLWordPrintable

Details

    • 10
    • Severity 3 - Minor
    • 30

    Description

      Issue Summary

      If the Jira Admin user running the migration in JCMA has an invalid (or empty/NULL) email address, the App Assessment UI in JCMA won't load properly and an error pop-up will surface.
      By "load properly", this means the user won't have the Assess your apps/Prepare your apps menus nor the View app assessment button available.

      The Attachments size count will also show "NaN undefined" instead of the actual size.

      This is reproducible on Data Center:

      Steps to Reproduce

      1. Log in to Jira Server/DC with an Admin User that does not have a valid email address
      2. Try to create a plan in the Jira Cloud Migration Assistant App

      Expected Results

      1. JCMA's UI load properly and trigger this invalid email problem under the Assess and prepare your users.

      Actual Results

      JCMA's home page will not allow the App Assessment area to load properly and an error pop up will surface on the left bottom portion of the UI, without any indication of the actual problem.

      Log errors

      The below exceptions are thrown in the atlassian-jira.log file:

      2023-04-17 19:19:12,967+0000 http-nio-8080-exec-11 WARN jira_admin_username 1159x559x1 10lqbgk 111.222.333.444,127.0.0.1 /rest/migration/latest/mas/event/ui [c.a.cmpt.crypto.BcryptAnalyticsEmailHasher] Malformed email address
      java.lang.IllegalArgumentException: Malformed email address. Does not contain only one mandatory symbol @
              at com.atlassian.cmpt.crypto.BcryptAnalyticsEmailHasher.cleanEmail(BcryptAnalyticsEmailHasher.java:45)
      (...)
              at com.atlassian.cmpt.analytics.events.EventDto$Builder.email(EventDto.java:141)
              at com.atlassian.jira.migration.assessment.AppAssessmentAnalyticsEventService.saveEventsForAction(AppAssessmentAnalyticsEventService.kt:66)
              at com.atlassian.jira.migration.assessment.AppAssessmentAnalyticsEventService.saveAppsFetchedEvent(AppAssessmentAnalyticsEventService.kt:32)
              at com.atlassian.jira.migration.assessment.AppAssessmentService.buildAppSummaries(AppAssessmentService.kt:119)
              at com.atlassian.jira.migration.assessment.AppAssessmentService.buildAppSummaries$default(AppAssessmentService.kt:107)
              at com.atlassian.jira.migration.assessment.AppAssessmentService.getAppsAssessment(AppAssessmentService.kt:47)
              at com.atlassian.jira.migration.assessment.rest.AppAssessmentResource.getAppAssessments(AppAssessmentResource.kt:32)
      
      2023-04-17 19:19:12,969+0000 http-nio-8080-exec-11 ERROR jira_admin_username 1159x559x1 10lqbgk 111.222.333.444,127.0.0.1 /rest/migration/latest/mas/event/ui [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: CacheLoader returned null for key .
      com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key .
              at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2314)
      

      Workaround

      Use the public doc below to find and fix any invalid (or empty/NULL) email addresses on Jira Server/DC:

      Attachments

        Issue Links

          Activity

            People

              71b86c5d7f97 Clive Karsten Lim
              omedeiros@atlassian.com Osimar Medeiros
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: