Rally v2.0 Warning "It is no longer necessary to append \".js\" to WSAPI resources"

StackOverflow https://stackoverflow.com/questions/23652158

  •  22-07-2023
  •  | 
  •  

문제

Since upgrading to Rally v2.0 I've been repeatedly getting the following warning "It is no longer necessary to append \".js\" to WSAPI resources." (No errors).

Any help will be much appreciated.

도움이 되었습니까?

해결책

In what circumstances do you get this warning?

For a general case, e.g. a browser, browser REST client, the answer is not append .js to the endpoints. For example:

https://rally1.rallydev.com/slm/webservice/1.43/defect/2222.js?rankAbove=/defect/3333.js&fetch=Name,FormattedID,Rank

becomes

https://rally1.rallydev.com/slm/webservice/v2.0/defect/2222?rankAbove=/defect/3333.js&fetch=Name,FormattedID,Rank

But I saw this warning when using java toolkit, when using v2.0 and '.js' was not appended anywhere.

String[] warningList;
warningList = createResponse.getWarnings();
for (int w = 0; w < warningList.length; w++){
    System.out.println(warningList[w]);
}

I submitted a bug.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top