안녕하십니까. IBM Commerce Sever를 사용하고 있습니다. 다음과 같은 코드를 통해 한 뷰에서 다른 뷰로 이동하고 있습니다.IBM Commerce Server 6에서 Url 매개 변수의 암호화 (Krypto) 방지
protected void prepareResponse(){
...
String returnUrl = "www.example.com/aNewPage.jsp?aUrlParameter=123&anotherParameter=654"
...
StringBuffer sb = new StringBuffer(returnUrl);
sb.append("&storeId=").append(commandContext.getStoreId());
sb.append("&langId=-1");
responseProperties.put(ECConstants.EC_REDIRECTURL, sb.toString());
responseProperties.put(ECConstants.EC_VIEWTASKNAME, ECConstants.EC_GENERIC_REDIRECTVIEW);
}
우리가 결말되는 URL이 unfortunitly 때문에 우리가 자바 스크립트 URL 매개 변수와 나오긴의 unencryptped 형태를 찾고있는 제 3 자 intergration에 www.example.com/aNewPage.jsp?krypto=ABCDF0LotsOfRandomCharacters 입니다 krypto 매개 변수를 해독 할 수 없습니다.
이 behavour는 documentation 당과 같습니다
Flattening input parameters into a query string for HttpRedirectView All input parameters that are passed to a redirect view command are flattened into a query string for URL redirection. For example, suppose that the input to the redirect view command contains the following properties: URL = "MyView?p1=v1&p2=v2"; ip1 = "iv1"; // input to orginal controller command ip2 = "iv2" ; // input to original controller command op1 = "ov1"; op2 = "ov2"; Based upon the preceding input parameters, the final URL is MyView?p1=v1&p2=v2&ip1=iv1&ip2=iv2&op1=ov1&op2=ov2 Note that if the command is to use SSL, then the parameters are encrypted and the final URL appears as MyView?krypto=encrypted_value_of“p1=v1&p2=v2&ip1=iv1&ip2=iv2&op1=ov1&op2=ov2”
이제 질문 : 방법이 URL 매개 변수가 암호화되고 I 방지합니까?
너무 적어서 IBM Junkies가 너무 적습니다. 16 시간 후에 답이없는 질문에 대한 6 번 견해. –