2009-08-19 3 views
0

안녕하십니까. 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 방지합니까?

+0

너무 적어서 IBM Junkies가 너무 적습니다. 16 시간 후에 답이없는 질문에 대한 6 번 견해. –

답변

0

암호화 된 매개 변수는 wc-server.xml의 NonEncryptedParameters 노드에서 제어합니다. 해당 노드에 일반 텍스트로 유지하려는 url 매개 변수를 추가하면 암호화되지 않습니다.

<NonEncryptedParameters display="false"> 
    <Parameter name="storeId"/> 
    <Parameter name="langId"/> 
    <Parameter name="catalogId"/> 
    <Parameter name="categoryId"/> 
    <Parameter name="productId"/> 
</NonEncryptedParameters> 

나는 IBM's Forum에 답 캐시 목적으로이 일에 대해 이야기 NonEncryptedParameters Node의 사용을 detaling 링크를 발견했다.