Possible bug with end conversation ?
diegocoronel May 7, 2008 8:19 PMI got some problems using end conversation before redirect false, because it appends in url the conversationID parameter, so, im not ending conversation because my next page join a conversation, i was reading the code:
private String encodeConversationIdParameter(String url, String paramName, String paramValue) { if ( Session.instance().isInvalid() || containsParameter(url, paramName) ) { return url; } else if (destroyBeforeRedirect) { if ( isNestedConversation() ) { return new StringBuilder( url.length() + paramName.length() + 5 ) .append(url) .append( url.contains("?") ? '&' : '?' ) .append(paramName) .append('=') .append( encode( getParentConversationId() ) ) .toString(); } else { return url; } } else { StringBuilder builder = new StringBuilder( url.length() + paramName.length() + 5 ) .append(url) .append( url.contains("?") ? '&' : '?' ) .append(paramName) .append('=') .append( encode(paramValue) ); if ( isNestedConversation() && !isReallyLongRunningConversation() ) { builder.append('&') .append(parentConversationIdParameter) .append('=') .append( encode( getParentConversationId() ) ); } return builder.toString(); } }
and i can see when before is true it do not append conversation id, making my next page get new conversationID, but when using before redirect false im getting same conversationID, i think to make same concept before redirect false should append a New conversationID, so this way, ill at really end my conversation and start a new one. I dont know if it will make equals to before redirect true, can anyone help me to understand this ? Or, is there any date to create kill conversation with before redirect false ?
sry about english.
ty