Skip to content

Commit

Permalink
Handle login.html incorrect validation for PL
Browse files Browse the repository at this point in the history
  • Loading branch information
satviksr-db committed Sep 3, 2024
1 parent e00d328 commit f3402f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,17 @@ public DatabricksConfig setAzureUseMsi(boolean azureUseMsi) {
return this;
}

/** @deprecated Use {@link #getAzureUseMsi()} instead. */
/**
* @deprecated Use {@link #getAzureUseMsi()} instead.
*/
@Deprecated()
public boolean getAzureUseMSI() {
return azureUseMsi;
}

/** @deprecated Use {@link #setAzureUseMsi(boolean)} instead. */
/**
* @deprecated Use {@link #setAzureUseMsi(boolean)} instead.
*/
@Deprecated
public DatabricksConfig setAzureUseMSI(boolean azureUseMsi) {
this.azureUseMsi = azureUseMsi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public String errorMessage() {

public static boolean isPrivateLinkRedirect(Response resp) {
return resp.getUrl().getPath().equals("/login.html")
&& resp.getUrl().getQuery().contains("error=private-link-validation-error");
&& (resp.getUrl().getQuery() != null
&& resp.getUrl().getQuery().contains("error=private-link-validation-error"));
}

static PrivateLinkValidationError createPrivateLinkValidationError(Response resp) {
Expand Down

0 comments on commit f3402f7

Please sign in to comment.