Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: #XXX fix high findings #1226

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.eclipse.tractusx.traceability.policies.infrastructure;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.eclipse.tractusx.irs.edc.client.policy.Constraint;
import org.eclipse.tractusx.irs.edc.client.policy.Constraints;
import org.eclipse.tractusx.irs.edc.client.policy.Operator;
Expand Down Expand Up @@ -46,7 +47,6 @@
import java.time.ZoneOffset;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;

import static org.eclipse.tractusx.traceability.common.config.RestTemplateConfiguration.IRS_ADMIN_TEMPLATE;
Expand All @@ -72,8 +72,8 @@ public Map<String, List<IrsPolicyResponse>> getPolicies() {

if (body != null) {
body.forEach((key, valueList) -> {
log.info("Key: {}", key);
valueList.forEach(value -> log.info("Policy: {}", value));
log.info("Key: {}", StringUtils.normalizeSpace(key));
valueList.forEach(value -> log.info("Policy: {}", StringUtils.normalizeSpace(value.toString())));
});
} else {
log.info("No policies retrieved from IRS Policy Store");
Expand Down
Loading