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

JCMA cloud token can't be renewed when the authentication has expired for the Prepare Your App page.

    XMLWordPrintable

Details

    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Issue Summary

      The app authentication token might expire, but the logging doesn't show any error. When the token created for app assessment expires, an attempt to create the migration plan results in a message stating, "Your Cloud Token has expired" as shown in the screenshot. Furthermore, when trying to reconnect to the cloud leads to an endless loop, with the error message consistently reappearing. Even the review domain page fails to reconnect to the cloud site.

      Actual Results

      1. Perform an assessment of the apps and create a plan for their migration.
      2. Allow the token to expire on the 21st day.
      3. Now, when you attempt to create a migration plan, an exception is thrown indicating that the token has expired.
      4. When you renew the token, it continues to display the same error.

      Expected Results

      The logs should display the authentication expired for the app assessment page or both pages should use only one token.

      Actual Results

      Preflight checks do not complete with cloud token expired message. Migration cannot move forward, and authentication reappears to an endless loop. The below exception is thrown in the application log file:

      /rest/migration/latest/check/plan/ee483fd9-64ed-4ff5-8d29-167fb846b0a2 [c.a.j.migration.scope.MigrationScopeManager] Error while fetching activationId. Container token might be invalid.
      com.atlassian.jira.migration.httpclient.exceptions.UnexpectedStatusCodeException: Received an unexpected status code; expected [200], but received 401: {"code":401,"message":"Unauthorized"}
      	at com.atlassian.jira.migration.httpclient.exceptions.ExceptionsKt.unexpectedStatusCode(Exceptions.kt:7)
      	at com.atlassian.jira.migration.httpclient.AbstractPluginHttpClient.checkExpectedResponseCode(AbstractPluginHttpClient.kt:213)
      	at com.atlassian.jira.migration.httpclient.AbstractPluginHttpClient.execute(AbstractPluginHttpClient.kt:72)
      	at com.atlassian.jira.migration.migrationservice.MigrationServiceClient.getActivationId(MigrationServiceClient.kt:81)
      	at com.atlassian.jira.migration.scope.MigrationScopeManager.getMigrationScopeForExecutionContext(MigrationScopeManager.kt:66)
      	at com.atlassian.jira.migration.preflight.PreflightService.createContext(PreflightService.kt:546)
      	at com.atlassian.jira.migration.preflight.PreflightService.createContext$default(PreflightService.kt:488)
      	at com.atlassian.jira.migration.preflight.PreflightService.executeChecksForPlan(PreflightService.kt:190)
      	at com.atlassian.jira.migration.preflight.PreflightService.executeChecksForPlan$default(PreflightService.kt:158)
      	at com.atlassian.jira.migration.preflight.rest.PreflightResource.executeChecksOnSavedPlan(PreflightResource.kt:131)
      

      Workaround

      1. Navigate to the JCMA dashboard, then click on 'Migration Assistant Home'. After that, click on 'Prepare Your Apps'. Proceed by clicking the 'Back' button until you reach the section where you need to select the 'Choose Cloud Site' page.
      2. Authenticate the user on this page and then create a new migration plan.

      Attachments

        Activity

          People

            Unassigned Unassigned
            54bf2707b706 Deepak Pandey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: