Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-869

In preprod, you cannot import a mobile project with a non-platform guid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Component/s: Core
    • Labels:
    • Environment:

      Appc CLI NPM: 4.2.1
      Appc CLI Core: 5.1.0-42
      Arrow: 1.3.18
      SDK: 5.1.0.v20151028190028
      Node: v4.2.1
      OS: El Capitan (10.11.1)

    • Severity:
      Major
    • Story Points:
      5
    • Sprint:
      2015 Sprint 22 Tooling

      Description

      Details: In preprod, you cannot import a mobile project with a non-platform guid.

      Notes:

      • If you point the current 5.1.0 stack to production, you cannot reproduce this issue.
      • The workaround is to create another mobile project in preprod and use that project's guid.
      • Even though importing a mobile project a non-platform guid works in production and a workaround is available, this makes testing in preprod with AppcStudio very difficult.

      Steps to reproduce:

      1. Download and unzip XMLModule.zip
      2. Make sure you are pointing to preprod
      3. Run: appc new --import --project-dir <PATH_TO>/XMLModule -l trace

      Actual: You will not be able to import the project. Login required error will be returned:

      MonkeyLord:XML wluu$ ls
      QE Automator	XMLModule	XML_timob8953
      MonkeyLord:XML wluu$ appc new --import --project-dir XMLModule -l trace
      Appcelerator Command-Line Interface, version 5.1.0-42
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      __command__ search paths:
      [
        "/Users/wluu/.appcelerator/install/5.1.0-42/package",
        "/Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules",
        "/Users/wluu/fromGit/qe-FeatureTest/XML/node_modules",
        "/Users/wluu/fromGit/qe-FeatureTest/node_modules",
        "/Users/wluu/fromGit/node_modules",
        "/Users/wluu/node_modules",
        "/Users/node_modules",
        "/node_modules",
        "/Users/wluu/.appcelerator/.npm/lib/node_modules"
      ]
      [PLUGIN-LOAD] 1ms /Users/wluu/.appcelerator/install/5.1.0-42/package/appc.js
      [PLUGIN-LOAD] 380ms /Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/appc-cli-titanium/appc.js
      [PLUGIN-LOAD] 1ms /Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/arrow/appc.js
      log level set to "trace"
      executing command "new"
      Preproduction Environment Active
       
      set environment to {"registry":"https://software-preprod.cloud.appctest.com","security":"https://security-preprod.cloud.appctest.com","baseurl":"https://360-preprod.cloud.appctest.com"}
      checking credentials for existing session
      Attempting to load session info from config file
      check if session is invalidated
      session expiry 1447181641060 false
      Arrow Cloud config file: /Users/wluu/.acs
      found Arrow Cloud login { mid: '3e8e500eed0014075e9a77f8d20f588530f37118',
        publishPort: 443,
        publishHost: 'https://admin.cloudapp-enterprise-preprod.appctest.com',
        username: 'wluu@appcelerator.com',
        cookie: [ 'connect.sid=s%3AJRKPO6kCgw4GA0cj7eNvvZVY.6Tz85LOBa79BUXRkKNT7numEiyaJWBA6cQwz%2FHpjHTo; Path=/; Expires=Tue, 17 Nov 2015 18:54:34 GMT; HttpOnly' ],
        defaultEP: 
         { publishHost: 'https://admin.cloudapp-enterprise-preprod.appctest.com',
           publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise-preprod.appctest.com
      Arrow Cloud cookie expiry [ 1447786474000 ]
      session already loaded in opts.session
      getCredentials() session:
      {
        "ipaddress": "10.0.12.200",
        "username": "wluu@appcelerator.com",
        "password": "<OMITTED>",
        "session": "<OMITTED>",
        "nonce": "<OMITTED>",
        "environment": {
          "name": "production",
          "isProduction": true,
          "acsBaseUrl": "https://preprod-api.cloud.appctest.com",
          "acsAuthBaseUrl": "https://dolphin-secure-identity.cloud.appcelerator.com",
          "nodeACSEndpoint": "https://admin.cloudapp-enterprise-preprod.appctest.com"
        },
        "token": "<OMITTED>",
        "fingerprint": "3e8e500eed0014075e9a77f8d20f588530f37118",
        "fingerprint_description": "Mac OSX Serial Number: C02JG4WDDV35",
        "org_id": 100001711,
        "expiry": 1447181641060
      }
      loading plugins for command "new"
      new search paths:
      [
        "/Users/wluu/.appcelerator/install/5.1.0-42/package",
        "/Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules",
        "/Users/wluu/fromGit/qe-FeatureTest/XML/node_modules",
        "/Users/wluu/fromGit/qe-FeatureTest/node_modules",
        "/Users/wluu/fromGit/node_modules",
        "/Users/wluu/node_modules",
        "/Users/node_modules",
        "/node_modules",
        "/Users/wluu/.appcelerator/.npm/lib/node_modules"
      ]
      [PLUGIN-LOAD] 0ms /Users/wluu/.appcelerator/install/5.1.0-42/package/appc.js
      [PLUGIN-LOAD] 126ms /Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/appc-cli-titanium/appc.js
      new plugin: /Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/appc-cli-titanium
      [PLUGIN-LOAD] 0ms /Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/arrow/appc.js
      new plugin: /Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/arrow
      loading plugin "titanium" for command "new" CLI options via function
      loading plugin "arrow" for command "new" CLI options via array
      Duplicate option "name" for command "new", removing...
      Duplicate option "force" for command "new", removing...
      Duplicate option "services" for command "new", removing...
      Duplicate option "colors" for command "new", removing...
      executing command "new" with the following plugins:
      ["titanium","arrow"]
      Attempting to load session info from config file
      check if session is invalidated
      session expiry 1447181641060 false
      session already loaded in opts.session
      "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.1.0-42/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" sdk -o json
      checking for titanium, result:
       { activeSDK: '5.1.0.v20151028190028',
        defaultInstallLocation: '/Users/wluu/Library/Application Support/Titanium',
        installLocations: 
         [ '/Users/wluu/Library/Application Support/Titanium',
           '/Library/Application Support/Titanium' ],
        installed: 
         { '5.1.0.v20151028190028': '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.v20151028190028',
           '5.0.2.GA': '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA' },
        sdks: 
         { '5.1.0.v20151028190028': 
            { name: '5.1.0.v20151028190028',
              manifest: [Object],
              path: '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.v20151028190028' },
           '5.0.2.GA': 
            { name: '5.0.2.GA',
              manifest: [Object],
              path: '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA' } } }
      after provision start app
      after provision app Titanium SDK (JavaScript) titanium
      titanium provisioned called app
      after provision start completed
      after provision completed Titanium SDK (JavaScript) titanium
      titanium provisioned called completed
      calling App.find on guid  2405184a-8944-4a4c-ba16-d25f9e2cb025
      Unable to register the new app with Appcelerator Platform either due to limited connectivity or other unexpected problem. Please retry later using the command 'appc new --import --project-dir /path/to/project' { [Error: Login Required]
        success: false,
        description: 'Login Required',
        code: 401,
        internalCode: undefined }
      done with plugin undefined
       
      *** new completed. ***
       
      MonkeyLord:XML wluu$ appc whoami
      Appcelerator Command-Line Interface, version 5.1.0-42
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Preproduction Environment Active
       
      wluu@appcelerator.com in organization qe_test_org_preprod_enterprise (100001711)
      MonkeyLord:XML wluu$ 
      

      Expected: Should be able to import a mobile project with a non-platform guid in preproduciton.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
                Reviewer:
                Feon Sua Xin Miao
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code