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

Attempting to run login required commands when logged out fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: None
    • Labels:
    • Environment:

      Mac OSX 10.10.3, Windows 8.1
      Appc CLI (NPM): 0.3.55
      Appc CLI (Registry): 0.2.280

    • Severity:
      Blocker
    • Story Points:
      5
    • Sprint:
      2015 Sprint 09 Tooling

      Description

      Description

      When attempting to run a command that requires the user to be logged in, if the user is logged out then the command fails with the below

      ERROR  | TypeError: Cannot read property 'jar' of undefined
          at Function.validateSession (/Users/eharris/.appcelerator/install/0.2.280/package/node_modules/appc-platform-sdk/lib/auth.js:271:18)
          at async.series.opts.session (/Users/eharris/.appcelerator/install/0.2.280/package/lib/registry.js:147:17)
          at /Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:610:21
          at /Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:249:17
          at iterate (/Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:149:13)
          at /Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:160:25
          at /Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:251:21
          at /Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:615:34
          at /Users/eharris/.appcelerator/install/0.2.280/package/lib/registry.js:328:10
          at done (/Users/eharris/.appcelerator/install/0.2.280/package/node_modules/async/lib/async.js:135:19)
      
      

      This is a regression as it works in what is in production(0.2.276) and the previous in preproduction(0.2.279), they will prompt the user to login rather than error out

      Steps To Reproduce

      1. Logout with appc logout
      2. Run appc new or appc run

      Actual Result

      Command fails with above error

      Expected Result

      Command should not fail with the above error

        Attachments

          Activity

            People

            • Assignee:
              mdadu Muhammad Dadu (Inactive)
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Praveen Innamuri (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code