Skip to content

Commit f4b1749

Browse files
committed
修复exchangis cookie bug
1 parent ef82ab6 commit f4b1749

File tree

1 file changed

+1
-1
lines changed
  • dss-framework/dss-framework-ctyun-service/src/main/java/com/webank/wedatasphere/dss/framework/admin/service

1 file changed

+1
-1
lines changed

dss-framework/dss-framework-ctyun-service/src/main/java/com/webank/wedatasphere/dss/framework/admin/service/DssExchangeService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public DssExchangeTaskRes queryExchangeTask(int projectId, String userName, int
9595
public String getSellScript(int taskId, int projectId) {
9696
String shellScript = "str=`curl -X GET --data '{\"project_id\":" + projectId + ",\"task_id\":" + taskId + "}' " +
9797
"--header 'Content-Type: application/json' --header 'Accept: application/json' " +
98-
"--header 'Cookie:UM-SSO-BDP=" + ProjectConf.EXCHANGE_ADMIN_COOKIE.getValue() + "' " + ProjectConf.EXCHANGE_URL.getValue() +
98+
"--header 'Cookie:" + ProjectConf.EXCHANGE_ADMIN_COOKIE.getValue() + "' " + ProjectConf.EXCHANGE_URL.getValue() +
9999
"/api/v1/jobinfo/runTask/" + taskId + "?userName=admin`;if [[ ${str} =~ 'job execution successed' ]];then exit 0;else exit 1;fi";
100100
return shellScript;
101101
}

0 commit comments

Comments
 (0)