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

CLI doesn't relay the error message to Studio when login failed

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.3.1
    • Fix Version/s: CLI Release 8.0.0
    • Component/s: Core
    • Labels:
    • Story Points:
      5
    • Sprint:
      2017 Sprint 17 Tooling, 2017 Sprint 18 Tooling, 2017 Sprint 19 Tooling, 2017 Sprint 20 Tooling, 2017 Sprint 21 Tooling, 2017 Sprint 22 Tooling, 2017 Sprint 23 Tooling, 2017 Sprint 24 Tooling, 2017 Sprint 25 Tooling, 2017 Sprint 26 Tooling, 2018 Sprint 01 Tooling, 2018 Sprint 02 Tooling, 2018 Sprint 03 Tooling, 2018 Sprint 04 Tooling, 2018 Sprint 05 Tooling, 2018 Sprint 06 Tooling, 2018 Sprint 07 Tooling, 2018 Sprint 18 Tooling, 2018 Sprint 19 Tooling, 2018 Sprint 20 Tooling, 2018 Sprint 21, 2018 Sprint 22, 2018 Sprint 23

      Description

      Studio and CLI will exchange the data in the form of json format through socket connection.

      If a trial plan is expired, studio is keep asking for login credential without showing what was wrong with the credentials. As studio depends on CLI for login, CLI should return the error message as part of the socket communication message protocol.

      For example:
      CLI request for login prompt:

      {"type":"question","question":[{"type":"input","name":"username","message":"Appcelerator ID:"},{"type":"password","name":"password","message":"Password:"}]}
      

      Studio response to process the login:

      {"username":"test@appcelerator.com","password":"test1234"}
      

      If the password is wrong or it was unable to login due to some other issue(ex: trial account expired),CLI should also send the error message.

      Here is my proposal for expected response:

      {"type":"question","question":[{"type":"input","name":"username","message":"Appcelerator ID:"},{"type":"password","name":"password","message":"Password:"}], "errormessage":"Unable to login, your trial plan is expired. Renew your subscription today!"}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                kkolipaka Kondal Kolipaka (Inactive)
                Reviewer:
                Kondal Kolipaka (Inactive)
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration