You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Schreibman (JIRA)" <ji...@apache.org> on 2016/02/09 19:03:18 UTC
[jira] [Created] (THRIFT-3606) TSaslClientTransport props typed too
strongly
David Schreibman created THRIFT-3606:
----------------------------------------
Summary: TSaslClientTransport props typed too strongly
Key: THRIFT-3606
URL: https://issues.apache.org/jira/browse/THRIFT-3606
Project: Thrift
Issue Type: Bug
Components: Java - Library
Affects Versions: 0.9.3
Reporter: David Schreibman
Priority: Minor
The constructor in TSaslClientTransport.java with signature:
public TSaslClientTransport(
String mechanism,
String authorizationId, String protocol,
String serverName,
Map<String, String> props,
CallbackHandler cbh,
TTransport transport)
Is passing along the props Map to Sasl.createSaslClient(....). However, createSaslClient actually accepts props as Map<String, ?>. Having the props as Map<String, String> means that we cannot pass legitimate non-string property values. For example, you cannot pass in the JGSS javax.security.sasl.policy.credentials property which is an object of type GSSCredential.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)