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 {
try (Manager manager = getManager()) {
RepositoryConnection repository =
manager.getRepositoryRegistry().createRepositoryConnection(repositories.getFdo());
repository.setTokenAuthenticationInfo(new TokenAuthenticationInfo(getToken()));
if (getToken() != null && !getToken().isBlank()) {
repository.setTokenAuthenticationInfo(new TokenAuthenticationInfo(getToken()));
}
FdoProfile profile = manager.getDefaultProfile();
FDO fdo =
manager.createFDO(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment