Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1616

Proxy credentials validation is missing in OkHttpCommandExecutorService API request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • jclouds-drivers

    Description

      Hi,
      In our project, Azure ComputeServiceContext is constructed with proxy setting properties (includes credentials) as below,

      overrides.setProperty(Constants.PROPERTY_PROXY_HOST, "...");
      overrides.setProperty(Constants.PROPERTY_PROXY_PORT, "..");
      overrides.setProperty(Constants.PROPERTY_PROXY_TYPE, Proxy.Type.HTTP.name());
      overrides.setProperty(Constants.PROPERTY_PROXY_USER, "...");
      overrides.setProperty(Constants.PROPERTY_PROXY_PASSWORD, "...");

      ComputeServiceContext context = ContextBuilder.newBuilder("azurecompute-arm").credentials(identity, credential)
      .overrides(overrides).buildView(ComputeServiceContext.class);

      When the API request is called, OkHttpCommandExecutorService.invoke method doesn't populate the credentials in the proxyAuthenticator during okHttpClient builder.
      Therefore validation of credentials is ignored.

      Attachments

        Activity

          People

            Unassigned Unassigned
            satyanan Anand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m