Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2818

Cloud foundry login command ignores cloudControllerUrl parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: @ ROO SHELL
    • Labels:
    • Environment:
      osx 10.6.8
      jdk 1.6.0_26

      Description

      im trying to use the cloud foundry addon, against a micro CF and agains a custom cloud foundry (installed from source on amazon ec2, with real DNS)

      when i try to log in i get the following error in both case:

      roo> cloud foundry login --email foo@bar.com --password XXXXXX --cloudControllerUrl http://api.lalyos.info

      Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted)
      java.lang.IllegalStateException: Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted)
      at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login(UaaAwareAppCloudClient.java:469)
      at com.vmware.appcloud.client.AppCloudClient.loginIfNeeded(AppCloudClient.java:194)
      at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.loginIfNeeded(UaaAwareAppCloudClient.java:479)

      it seems that in the login method, it was using the UaaAwareAppCloudClient always connectiong to constants CLOUD_FOUNDRY_URL (http://api.cloudfoundry.com) instead using the 'cloudControllerUrl' parameter

      applying the attached patch does make it able to connect to custom CF instances:

      roo> cloud foundry login --email foo@bar.com --password XXXXXX --cloudControllerUrl http://api.lalyos.info
      Credentials saved.
      Logged in successfully with email address 'foo@bar.com'

      cheers,
      lalyos

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            lalyos lajos papp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified