Fixed paramter name.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -116,19 +116,19 @@ public class AmqpAuthenticationMessageHandler extends BaseAmqpService {
|
|||||||
*
|
*
|
||||||
* @param secruityToken
|
* @param secruityToken
|
||||||
* the security token which holds the target ID to check on
|
* the security token which holds the target ID to check on
|
||||||
* @param localArtifact
|
* @param artifact
|
||||||
* the local artifact to verify if the given target is allowed to
|
* the artifact to verify if the given target is allowed to
|
||||||
* download this artifact
|
* download it
|
||||||
*/
|
*/
|
||||||
private void checkIfArtifactIsAssignedToTarget(final TenantSecurityToken secruityToken,
|
private void checkIfArtifactIsAssignedToTarget(final TenantSecurityToken secruityToken,
|
||||||
final org.eclipse.hawkbit.repository.model.Artifact localArtifact) {
|
final org.eclipse.hawkbit.repository.model.Artifact artifact) {
|
||||||
|
|
||||||
if (secruityToken.getControllerId() != null) {
|
if (secruityToken.getControllerId() != null) {
|
||||||
checkByControllerId(localArtifact, secruityToken.getControllerId());
|
checkByControllerId(artifact, secruityToken.getControllerId());
|
||||||
} else if (secruityToken.getTargetId() != null) {
|
} else if (secruityToken.getTargetId() != null) {
|
||||||
checkByTargetId(localArtifact, secruityToken.getTargetId());
|
checkByTargetId(artifact, secruityToken.getTargetId());
|
||||||
} else {
|
} else {
|
||||||
LOG.info("anonymous download no authentication check for artifact {}", localArtifact);
|
LOG.info("anonymous download no authentication check for artifact {}", artifact);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user