Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 5.0.0
    • Component/s: Core
    • Labels:
    • Environment:

      Appc CLI NPM: 4.1.0-1
      Appc CLI Core: 4.1.0-3
      Arrow: 1.1.0-1
      Node: v0.10.38
      OS: Yosemite (10.10.3)

    • Severity:
      Major
    • Story Points:
      1
    • Sprint:
      2015 Sprint 16 Tooling

      Description

      Details: When you login with the token flag, "token missing in API definition" error is returned. This flag should be removed since it is not supported anymore. Snippet from the Arrow flow:

      JeffH
      this is not a github token.
      this is a security server token.
      i don’t think it’s fully supported anymore and we shoudl probably remove it until it is. we don’t support github login tokens

      Steps to reproduce:

      1. In terminal, login with the token flag: appc login --username <EMAIL> --password <PASSWORD> -t <RANDOM_STUFF>

      Actual: Error: body parameters: token missing in API definition error is returned:

      WilsonComputer:~ wluu$ DEBUG=* appc login --username wluu@appcelerator.com --password bnorhwe -t f2e3003619b67949be01f85b23a1c92a005cec1b -l trace
        appc:bin install bin is '/Users/wluu/.appcelerator/install/4.1.0-3/package/bin/appc' +0ms
        appc:bin main subcommand login +3ms
        appc:run run with env={"DEBUG":"*","TERM_PROGRAM":"Apple_Terminal","SHELL":"/bin/bash","TERM":"xterm-256color","TMPDIR":"/var/folders/g9/bw6h6yr11t79h_mw4q1r87pm0000gp/T/","Apple_PubSub_Socket_Render":"/private/tmp/com.apple.launchd.Y7RzG9OKmY/Render","TERM_PROGRAM_VERSION":"343.7","TERM_SESSION_ID":"63C09CC1-B073-462E-988B-EB3D646667A1","USER":"wluu","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.7hwuWSXue4/Listeners","__CF_USER_TEXT_ENCODING":"0x1F6:0x0:0x0","PATH":"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Applications/android-sdk-macosx/tools:/Applications/android-sdk-macosx/platform-tools:/Applications/VMware Fusion.app/Contents/Library/:/Users/wluu/mongodb-osx-x86_64-2.6.7/bin:/usr/local/mysql-5.6.25-osx10.8-x86_64/bin","PWD":"/Users/wluu","LANG":"en_US.UTF-8","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"0","SHLVL":"1","HOME":"/Users/wluu","LOGNAME":"wluu","_":"/usr/local/bin/appc","APPC_NPM_VERSION":"4.1.0-1","npm_config_cache":"/Users/wluu/.appcelerator/.npm","npm_config_prefix":"/Users/wluu/.appcelerator/.npm","APPC_INSTALL_DIR":"/Users/wluu/.appcelerator/install","APPC_INSTALL_BIN_DIR":"/Users/wluu/.appcelerator/install/4.1.0-3/package/bin/appc","APPC_CONFIG_PROXY":"","NODE_PATH":"/Users/wluu/.appcelerator/install/4.1.0-3/package/node_modules:/Users/wluu/.appcelerator/cache/node_modules:"}, args=[ '/Users/wluu/.appcelerator/install/4.1.0-3/package/bin/appc', 'login', '--username', 'wluu@appcelerator.com', '--password', 'bnorhwe', '-t', 'f2e3003619b67949be01f85b23a1c92a005cec1b', '-l', 'trace' ] +0ms
      Appcelerator Command-Line Interface, version 4.1.0-3
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
        appc:sdk set production to https://platform.appcelerator.com +0ms
      __command__ search paths:
      [
        "/Users/wluu/.appcelerator/install/4.1.0-3/package",
        "/Users/wluu/.appcelerator/install/4.1.0-3/package/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/4.1.0-3/package/appc.js
        appc:sdk set production to https://platform.appcelerator.com +0ms
      [PLUGIN-LOAD] 447ms /Users/wluu/.appcelerator/install/4.1.0-3/package/node_modules/appc-cli-titanium/appc.js
      [PLUGIN-LOAD] 0ms /Users/wluu/.appcelerator/install/4.1.0-3/package/node_modules/arrow/appc.js
        appc:sdk set production to https://platform.appcelerator.com +0ms
      log level set to "trace"
      executing command "login"
        appc:sdk set preproduction to https://360-preprod.cloud.appctest.com +403ms
      set environment to {"registry":"https://software-preprod.cloud.appctest.com","security":"https://security-preprod.cloud.appctest.com","baseurl":"https://360-preprod.cloud.appctest.com"}
      noPlugins set for command "login"
      executing command "login" with no plugins
      arrow:sdk sending request to https://software-preprod.cloud.appctest.com/api/login
      arrow:sdk response received err=null, body={ message: 'body parameters: token missing in API definition',
        code: 400,
        success: false,
        'request-id': 'abfe10d0-f61b-48ed-ba2c-cdada5ad9ba6' }, status code=400
      registry result 400 application/json false undefined true 1
      registry returned { message: 'body parameters: token missing in API definition',
        code: 400,
        success: false,
        'request-id': 'abfe10d0-f61b-48ed-ba2c-cdada5ad9ba6' }
      login returned { [Error: body parameters: token missing in API definition] code: 400 } { message: 'body parameters: token missing in API definition',
        code: 400,
        success: false,
        'request-id': 'abfe10d0-f61b-48ed-ba2c-cdada5ad9ba6' }
      ERROR  | Error: body parameters: token missing in API definition
          at Request._callback (/Users/wluu/.appcelerator/install/4.1.0-3/package/lib/appc-registry-server-sdk/index.js:975:13)
          at Request.self.callback (/Users/wluu/.appcelerator/install/4.1.0-3/package/node_modules/request/request.js:197:22)
          at Request.emit (events.js:98:17)
          at Request.<anonymous> (/Users/wluu/.appcelerator/install/4.1.0-3/package/node_modules/request/request.js:1050:14)
          at Request.emit (events.js:117:20)
          at IncomingMessage.<anonymous> (/Users/wluu/.appcelerator/install/4.1.0-3/package/node_modules/request/request.js:996:12)
          at IncomingMessage.emit (events.js:117:20)
          at _stream_readable.js:944:16
          at process._tickCallback (node.js:448:13)
      

      Expected: Token flag should be removed since it is not supported anymore.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code