Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
765ce51c
Commit
765ce51c
authored
Dec 12, 2016
by
Vipin Rathor
Committed by
Vimal Sharma
Dec 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Credential Provider utility does not work with fully qualified local/HDFS jceks path
parent
d612d75f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
release-log.txt
release-log.txt
+1
-0
CredentialProviderUtility.java
...java/org/apache/atlas/util/CredentialProviderUtility.java
+1
-9
CredentialProviderUtilityIT.java
...st/java/org/apache/atlas/CredentialProviderUtilityIT.java
+5
-5
No files found.
release-log.txt
View file @
765ce51c
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ALL CHANGES:
ATLAS-1340 Credential Provider utility does not work with fully qualified local/HDFS jceks path (vrathor via svimal2106)
ATLAS-1363 Upgrade front end maven plugin to 1.0 (sumasai)
ATLAS-1363 Upgrade front end maven plugin to 1.0 (sumasai)
ATLAS-1358 NPE Fix for search filter changes & callAPI related fixes (apoorvnaik via sumasai)
ATLAS-1358 NPE Fix for search filter changes & callAPI related fixes (apoorvnaik via sumasai)
ATLAS-1357: Fixes for test failures from ATLAS-1307 (apoorvnaik via sumasai)
ATLAS-1357: Fixes for test failures from ATLAS-1307 (apoorvnaik via sumasai)
...
...
webapp/src/main/java/org/apache/atlas/util/CredentialProviderUtility.java
View file @
765ce51c
...
@@ -145,16 +145,8 @@ public class CredentialProviderUtility {
...
@@ -145,16 +145,8 @@ public class CredentialProviderUtility {
String
providerPath
=
textDevice
.
readLine
(
"Please enter the full path to the credential provider:"
);
String
providerPath
=
textDevice
.
readLine
(
"Please enter the full path to the credential provider:"
);
if
(
providerPath
!=
null
)
{
if
(
providerPath
!=
null
)
{
File
file
=
new
File
(
providerPath
);
if
(
file
.
exists
())
{
textDevice
.
printf
(
"%s already exists. You will need to specify whether existing entries should be "
+
"overwritten "
+
"(default is 'yes')\n"
,
providerPath
);
}
String
providerURI
=
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
providerPath
;
Configuration
conf
=
new
Configuration
(
false
);
Configuration
conf
=
new
Configuration
(
false
);
conf
.
set
(
CredentialProviderFactory
.
CREDENTIAL_PROVIDER_PATH
,
provider
URI
);
conf
.
set
(
CredentialProviderFactory
.
CREDENTIAL_PROVIDER_PATH
,
provider
Path
);
return
CredentialProviderFactory
.
getProviders
(
conf
).
get
(
0
);
return
CredentialProviderFactory
.
getProviders
(
conf
).
get
(
0
);
}
}
...
...
webapp/src/test/java/org/apache/atlas/CredentialProviderUtilityIT.java
View file @
765ce51c
...
@@ -57,7 +57,7 @@ public class CredentialProviderUtilityIT {
...
@@ -57,7 +57,7 @@ public class CredentialProviderUtilityIT {
}
}
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
return
finalTestPath
.
toString
();
return
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
finalTestPath
.
toString
();
}
}
@Override
@Override
...
@@ -113,7 +113,7 @@ public class CredentialProviderUtilityIT {
...
@@ -113,7 +113,7 @@ public class CredentialProviderUtilityIT {
}
}
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
return
finalTestPath
.
toString
();
return
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
finalTestPath
.
toString
();
}
}
@Override
@Override
...
@@ -166,7 +166,7 @@ public class CredentialProviderUtilityIT {
...
@@ -166,7 +166,7 @@ public class CredentialProviderUtilityIT {
}
}
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
return
finalTestPath
.
toString
();
return
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
finalTestPath
.
toString
();
}
}
@Override
@Override
...
@@ -217,7 +217,7 @@ public class CredentialProviderUtilityIT {
...
@@ -217,7 +217,7 @@ public class CredentialProviderUtilityIT {
}
}
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
return
finalTestPath
.
toString
();
return
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
finalTestPath
.
toString
();
}
}
@Override
@Override
...
@@ -239,7 +239,7 @@ public class CredentialProviderUtilityIT {
...
@@ -239,7 +239,7 @@ public class CredentialProviderUtilityIT {
}
}
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
public
String
readLine
(
String
fmt
,
Object
...
args
)
{
return
i
++
==
0
?
finalTestPath
.
toString
()
:
"y"
;
return
i
++
==
0
?
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
finalTestPath
.
toString
()
:
"y"
;
}
}
@Override
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment