Skip to content

Commit

Permalink
Merge pull request #1039 from kongslove/branch-1.1.1
Browse files Browse the repository at this point in the history
Branch 1.1.1
  • Loading branch information
zqburde authored Mar 18, 2024
2 parents d608084 + da20e35 commit c5b0fdb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.webank.wedatasphere.dss.standard.app.sso.request.SSORequestOperation;
import com.webank.wedatasphere.dss.standard.common.exception.operation.ExternalOperationFailedException;
import com.webank.wedatasphere.dss.standard.sso.utils.SSOHelper;
import org.apache.commons.lang.StringUtils;
import org.apache.linkis.httpclient.request.HttpAction;
import org.apache.linkis.httpclient.response.HttpResult;
import org.slf4j.Logger;
Expand Down Expand Up @@ -52,7 +53,8 @@ public static String getHttpResult(String url,
SSOUrlBuilderOperation ssoUrlBuilderOperation = getSSORequestOperation(url, workspace);
action.setUrl(ssoUrlBuilderOperation.getBuiltUrl());
HttpResult previewResult = ssoRequestOperation.requestWithSSO(ssoUrlBuilderOperation, action);
if (previewResult.getStatusCode() == 200 || previewResult.getStatusCode() == 0) {
if (StringUtils.isNotBlank(previewResult.getResponseBody())
&& (previewResult.getStatusCode() == 200 || previewResult.getStatusCode() == 0) ) {
return previewResult.getResponseBody();
} else {
logger.error("request Schedulis failed, responseBody is {}.", previewResult.getResponseBody());
Expand Down

0 comments on commit c5b0fdb

Please sign in to comment.