Fix path in AMQP auth. (#544)
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -218,7 +218,7 @@ public class AmqpAuthenticationMessageHandler extends BaseAmqpService {
|
|||||||
cache.put(downloadId, downloadCache);
|
cache.put(downloadId, downloadCache);
|
||||||
authentificationResponse.setDownloadUrl(UriComponentsBuilder
|
authentificationResponse.setDownloadUrl(UriComponentsBuilder
|
||||||
.fromUri(hostnameResolver.resolveHostname().toURI()).path("/api/v1/downloadserver/downloadId/")
|
.fromUri(hostnameResolver.resolveHostname().toURI()).path("/api/v1/downloadserver/downloadId/")
|
||||||
.path(tenantAware.getCurrentTenant()).path(downloadId).build().toUriString());
|
.path(tenantAware.getCurrentTenant()).path("/").path(downloadId).build().toUriString());
|
||||||
authentificationResponse.setResponseCode(HttpStatus.OK.value());
|
authentificationResponse.setResponseCode(HttpStatus.OK.value());
|
||||||
} catch (final BadCredentialsException | AuthenticationServiceException | CredentialsExpiredException e) {
|
} catch (final BadCredentialsException | AuthenticationServiceException | CredentialsExpiredException e) {
|
||||||
LOG.error("Login failed", e);
|
LOG.error("Login failed", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user