Skip to content

Commit

Permalink
oast: include more info on interaction not found
Browse files Browse the repository at this point in the history
Include the handler and the source to help identify the interaction.

Signed-off-by: thc202 <thc202@gmail.com>
  • Loading branch information
thc202 committed Dec 16, 2024
1 parent 29ddbc2 commit 5fcc01f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions addOns/oast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Changed
- Update minimum ZAP version to 2.16.0.
- Maintenance changes.
- Include the handler and source when logging interactions not found in the permanent database.

## [0.20.0] - 2024-09-17
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ private void activeScanAlertOastRequestHandler(OastRequest request) {

AlertEntity alertEntity = getPermanentDatabase().getAlertForPayload(uri);
if (alertEntity == null) {
LOGGER.warn("Not raising alert, the interaction {} was not found.", uri);
LOGGER.warn(
"Not raising alert, the interaction {} through '{}' from {} was not found.",
uri,
request.getHandler(),
request.getSource());
return;
}

Expand Down

0 comments on commit 5fcc01f

Please sign in to comment.