- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.4k
HBASE-28501 Support non-SPNEGO authentication methods and implement s… #5881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
      
        
              This comment was marked as outdated.
        
        
      
    
  This comment was marked as outdated.
| * @throws ClientTrustStoreInitializationException if the trust store file can not be loaded | ||
| */ | ||
| public Client(Cluster cluster, Configuration conf, String trustStorePath, | ||
| public Client(Cluster cluster, Configuration conf, boolean sslEnabled, String trustStorePath, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sslEnabled argument is not mentioned in the Javadoc nor used in the constructor either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is also incorrect, as this sets sticky to false.
I will fix the comment as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { | ||
| String tmpdir = | ||
| Files.createTempDirectory("hbase_rest_client_truststore").toFile().getAbsolutePath(); | ||
| String trustStoreLocation = tmpdir + File.separator + "truststore.jks"; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using Path for concatenation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| throw new IOException(e); | ||
| } | ||
| if (stickyContext != null) { | ||
| // We set the cookie twice, but it shouldn't be a problem | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed this comment is invalid.
| 🎊 +1 overall 
 
 This message was automatically generated. | 
| 🎊 +1 overall 
 
 This message was automatically generated. | 
| 🎊 +1 overall 
 
 This message was automatically generated. | 
| 🎊 +1 overall 
 
 This message was automatically generated. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…ession handling in REST java client library
| I forgot to add the signed-off header. | 
…ession handling in REST java client library (#5881) Signed-off-by: Peter Somogyi <[email protected]> (cherry picked from commit 716adf5)
…ession handling in REST java client library (#5881) Signed-off-by: Peter Somogyi <[email protected]> (cherry picked from commit 716adf5)
…ession handling in REST java client library (#5881) Signed-off-by: Peter Somogyi <[email protected]> (cherry picked from commit 716adf5)
…ession handling in REST java client library (#5881) Signed-off-by: Peter Somogyi <[email protected]> (cherry picked from commit 716adf5)
…ession handling in REST java client library (#5881) Signed-off-by: Peter Somogyi <[email protected]> (cherry picked from commit 716adf5)
…ession handling in REST java client library (apache#5881)
…ession handling in REST java client library (apache#5881) Signed-off-by: Peter Somogyi <[email protected]> (cherry picked from commit 716adf5) (cherry picked from commit cc0bcb4) "This commit does not contain secrets"
…ession handling in REST java client library