Skip to content

Commit

Permalink
Removed vulnerability of log injection
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed May 8, 2024
1 parent 5763258 commit 4b1c0e9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.tags.Tags;
import it.pagopa.selfcare.commons.base.logging.LogUtils;
import it.pagopa.selfcare.commons.base.security.SelfCareUser;
import it.pagopa.selfcare.dashboard.connector.model.support.SupportResponse;
import it.pagopa.selfcare.dashboard.core.SupportService;
Expand Down Expand Up @@ -40,9 +39,8 @@ public SupportController(SupportService supportService,
public SupportResponse sendSupportRequest(@RequestBody @Valid SupportRequestDto supportRequestDto,
Authentication authentication) {
log.trace("sendSupportRequest start");
log.debug(LogUtils.CONFIDENTIAL_MARKER, "sendSupportRequest request = {}", supportRequestDto);
final SelfCareUser selfCareUser = (SelfCareUser) authentication.getPrincipal();
SupportResponse supportResponse = supportService.sendRequest(supportMapper.toZendeskRequest(supportRequestDto, selfCareUser));
final SupportResponse supportResponse = supportService.sendRequest(supportMapper.toZendeskRequest(supportRequestDto, selfCareUser));
log.debug("sendSupportRequest result = {}", supportResponse.toString());
log.trace("sendSupportRequest end");
return supportResponse;
Expand Down

0 comments on commit 4b1c0e9

Please sign in to comment.