Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10685

[WINDOWS] TestKeyStoreKeyProvider fails on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.1, 0.99.0
    • test
    • None
    • Reviewed

    Description

      Fails because of lack of URI escaping:

      java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in authority at index 8: jceks://D:\w\hbbk\hbase-common\target\test-data\78c21f3c-80a6-4cd7-9706-0098a1d33496\keystore.jks?passwordFile=D%3A%5Cw%5Chbbk%5Chbase-common%5Ctarget%5Ctest-data%5C78c21f3c-80a6-4cd7-9706-0098a1d33496%5Ckeystore.pw
      	at org.apache.hadoop.hbase.io.crypto.KeyStoreKeyProvider.init(KeyStoreKeyProvider.java:149)
      	at org.apache.hadoop.hbase.io.crypto.TestKeyStoreKeyProvider.testKeyStoreKeyProviderWithPasswordFile(TestKeyStoreKeyProvider.java:100)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
      Caused by: java.net.URISyntaxException: Illegal character in authority at index 8: jceks://D:\w\hbbk\hbase-common\target\test-data\78c21f3c-80a6-4cd7-9706-0098a1d33496\keystore.jks?passwordFile=D%3A%5Cw%5Chbbk%5Chbase-common%5Ctarget%5Ctest-data%5C78c21f3c-80a6-4cd7-9706-0098a1d33496%5Ckeystore.pw
      	at java.net.URI$Parser.fail(URI.java:2810)
      	at java.net.URI$Parser.parseAuthority(URI.java:3148)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3059)
      	at java.net.URI$Parser.parse(URI.java:3015)
      	at java.net.URI.<init>(URI.java:577)
      	at org.apache.hadoop.hbase.io.crypto.KeyStoreKeyProvider.init(KeyStoreKeyProvider.java:139)
      

      Attachments

        1. hbase-10685_v1.patch
          2 kB
          Enis Soztutar

        Activity

          People

            enis Enis Soztutar
            enis Enis Soztutar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: