Skip to content
Snippets Groups Projects
Verified Commit 1bc4d4b0 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX: blank token overrides pre-configured repo password

parent 14f6c213
No related branches found
No related tags found
1 merge request!4FIX: blank token overrides pre-configured repo password
Pipeline #55398 passed
...@@ -86,7 +86,9 @@ public class FDOApiImpl extends BaseController implements FdoApi { ...@@ -86,7 +86,9 @@ public class FDOApiImpl extends BaseController implements FdoApi {
try (Manager manager = getManager()) { try (Manager manager = getManager()) {
RepositoryConnection repository = RepositoryConnection repository =
manager.getRepositoryRegistry().createRepositoryConnection(repositories.getFdo()); manager.getRepositoryRegistry().createRepositoryConnection(repositories.getFdo());
if (getToken() != null && !getToken().isBlank()) {
repository.setTokenAuthenticationInfo(new TokenAuthenticationInfo(getToken())); repository.setTokenAuthenticationInfo(new TokenAuthenticationInfo(getToken()));
}
FdoProfile profile = manager.getDefaultProfile(); FdoProfile profile = manager.getDefaultProfile();
FDO fdo = FDO fdo =
manager.createFDO( manager.createFDO(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment